
Sign up to save your podcasts
Or


In this episode I talk about how to build a cheap hosted Mutillidae server to safely hack away on while keeping other Internet prowlers out. Here are the basic commands to run to lock down the Digital Ocean droplet's iptables firewall:
*Flush existing rules*
**sudo iptables -F**
*Allow all concurrent connections*
**sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT**
*Allow specific IPs/hosts to access port 80*
**sudo iptables -A INPUT -p tcp -s F.Q.D.N --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT**
*Allow specific IPs/hosts to access port 22*
**sudo iptables -A INPUT -p tcp -s F.Q.D.N --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT**
*Block all other traffic:*
**sudo iptables -P INPUT DROP**
*Provide the VPS loopback access:*
**sudo iptables -I INPUT 1 -i lo -j ACCEPT**
*Install iptables-persistent to ensure rules survive a reboot:*
**sudo apt-get install iptables-persistent**
*Start iptables-persistent service*
**sudo service iptables-persistent start**
*If you make iptables changes after this and they don't seem to stick, do this:*
**sudo iptables-save > /etc/iptables/rules.v4**
See this Digital Ocean article for more information.
By Brian Johnson4.7
6868 ratings
In this episode I talk about how to build a cheap hosted Mutillidae server to safely hack away on while keeping other Internet prowlers out. Here are the basic commands to run to lock down the Digital Ocean droplet's iptables firewall:
*Flush existing rules*
**sudo iptables -F**
*Allow all concurrent connections*
**sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT**
*Allow specific IPs/hosts to access port 80*
**sudo iptables -A INPUT -p tcp -s F.Q.D.N --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT**
*Allow specific IPs/hosts to access port 22*
**sudo iptables -A INPUT -p tcp -s F.Q.D.N --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT**
*Block all other traffic:*
**sudo iptables -P INPUT DROP**
*Provide the VPS loopback access:*
**sudo iptables -I INPUT 1 -i lo -j ACCEPT**
*Install iptables-persistent to ensure rules survive a reboot:*
**sudo apt-get install iptables-persistent**
*Start iptables-persistent service*
**sudo service iptables-persistent start**
*If you make iptables changes after this and they don't seem to stick, do this:*
**sudo iptables-save > /etc/iptables/rules.v4**
See this Digital Ocean article for more information.

188 Listeners

2,009 Listeners

369 Listeners

375 Listeners

648 Listeners

1,030 Listeners

317 Listeners

421 Listeners

8,051 Listeners

178 Listeners

313 Listeners

192 Listeners

73 Listeners

136 Listeners

45 Listeners