• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 791
  • Last Modified:

ubuntu server iptables

in my situation, i don't need iptables. how could i disable iptables, and prevent iptables from starting if i have to reboot the server? i'm running ubuntu server.
0
JeffBeall
Asked:
JeffBeall
3 Solutions
 
wesly_chenCommented:
$ sudo iptables-save > /root/firewall.rules
$ sudo -s
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# iptables -P INPUT ACCEPT
# iptables -P FORWARD ACCEPT
# iptables -P OUTPUT ACCEPT
0
 
upanwarCommented:
The latest version of Ubuntu comes with ufw (now it is the default firewall configuration tool for Ubuntu). It is developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. To disable ufw, enter:
$ sudo ufw disable
You can also use GUI tool to enable or disable Firewall under Ubuntu Linux desktop edition by visiting System > Administration > Firewall configuration option:


Simply unselect "Enabled" option to turn off the firewall.


Source: http://www.cyberciti.biz/faq/ubuntu-server-disable-firewall/
0
 
wesly_chenCommented:
0
What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

 
farzanjCommented:
Simple try this:

iptables -F
chkconfig iptables off


Restart
0
 
wesly_chenCommented:
Ubuntu has chkconfig ?
0
 
JeffBeallAuthor Commented:
thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now