How to start/stop iptables on Ubuntu?

I don’t know about “Ubuntu”, but in Linux generally, “iptables” isn’t a service – it’s a command to manipulate the netfilter kernel firewall. You can “disable” (or stop) the firewall by setting the default policies on all standard chains to “ACCEPT”, and flushing the rules.

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F

(You may need to flush other tables, too, such as “nat”, if you’ve used them)

The following article on the Ubuntu website describes setting up iptables for use with NetworkManager: https://help.ubuntu.com/community/IptablesHowTo

Leave a Comment