• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 800
  • 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
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
farzanjCommented:
Simple try this:

iptables -F
chkconfig iptables off


Restart
0
 
wesly_chenCommented:
Ubuntu has chkconfig ?
0
 
JeffBeallAuthor Commented:
thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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