1

[ubuntu] IPTables rules

view story
linux-howto

http://ubuntuforums.org – I'm working on a virtual machine, i wrote this to block all ports except 555 and 443 : {{{{ $ sudo iptables -A INPUT -i eth0 -p tcp --dport 555 -j ACCEPT - $ sudo iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT - $ sudo iptables-save }}}} then I went to /etc/network/interfaces and wrote this as comment: {{{ pre-up iptables-restore < /etc/iptables.rules }}} +++ right now i'm having a problem removing these rules, I tried {{{{ $ sudo iptables -D INPUT -i eth0 -p tcp --dport 555 -j ACCEPT $ sudo iptables -D INPUT -i eth0 -p tcp --dport 443 -j ACCEPT $ sudo iptables-sa (Hardware)