Tell me the easiest way to start iptables in ubuntu?
What should i do to stop iptables?
I have tried
service iptables stop
but it is giving "unrecognized service" .
Why? Tell me the other method?
Best Answer
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