PDA

View Full Version : [ubuntu] How to clear iptables ?



oygle
April 21st, 2011, 12:32 PM
Hi,

Installing a router, and I need to completely "wipe" iptables (flush I mean) on both computers, and I think I run ufw/gufw on both, so that would need to be uninstalled. The router is very secure, has NAT, etc, etc, and I'd rather setup all that side of things in one point, rather than on each computer.

Can someone please explain how to do this ?

Oygle

stealth.
April 21st, 2011, 01:40 PM
Hi,

Installing a router, and I need to completely "wipe" iptables (flush I mean) on both computers, and I think I run ufw/gufw on both, so that would need to be uninstalled. The router is very secure, has NAT, etc, etc, and I'd rather setup all that side of things in one point, rather than on each computer.

Can someone please explain how to do this ?

Oygle

EDIT: Why do you have to do this, because you installed a router... Please explain?

"sudo iptables -F" <--that will flush iptables
"sudo iptables -Z" <--that will zero it (i think... you should check just in case)

No need to uninstall ufw, just give it a:
"sudo ufw disable"
it should output "ufw: disabled on system startup"

You might need to uninstall GUFW, I'm not 100 percent sure, but I believe it might override ufw.

oygle
April 22nd, 2011, 08:18 AM
EDIT: Why do you have to do this, because you installed a router... Please explain?

Because the internet connection is via a USB dongle directly attached to the computer, hence no 'security', and therefore the need for UFW/GUFW to establish iptables 'rules'.

Now, with the addition of a proper (NAT) router/firewall ( Billion 7404VGPX (http://au.billion.com/product/voip/bipac7404vgpx.php) ), there is no need for iptables rules. All firewalling will be done at the router/modem, at one point.



"sudo iptables -F" <--that will flush iptables
"sudo iptables -Z" <--that will zero it (i think... you should check just in case)

No need to uninstall ufw, just give it a:
"sudo ufw disable"
it should output "ufw: disabled on system startup"

You might need to uninstall GUFW, I'm not 100 percent sure, but I believe it might override ufw.

Okay, thanks for those 2 iptables commands. Yes, it would be safest to uninstall GUFW, as it does alter ufw, which in turn alters iptables.

Thanks,

Oygle