I'm new to Ubuntu. I want to turn off firewall and make sure that it's turned off and want to turn off iptables.

iptables: Installed: 1.4.21-1ubuntu1 Candidate: 1.4.21-1ubuntu1 Version table: *** 1.4.21-1ubuntu1 0 500 trusty/main amd64 Packages 100 /var/lib/dpkg/status Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destinat 
6

1 Answer

sudo ufw status Status: inactive 

You can turn it off and on with ...

sudo ufw disable sudo ufw enable 

By default it is disabled.


You can check if there are iptables rules active with:

sudo iptables -L 

Your output, with no lines between the target prot opt source destination header and the next Chain, indicates that no rules are active.

If you have iptables active this will cancel it

sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X sudo iptables -t mangle -F sudo iptables -t mangle -X sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT 

If you want a graphical method:

sudo apt-get install gufw 

enter image description here

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy