CentOS 6 iptables utility

I just put together a CentOS 6.5 system.  The firewall is blocking most things it appears.  A couple of questions.  I also have an Ubuntu system and both computers have Webmin on them.

1. I have an Ubuntu system that is running fine with iptables set up as I need it.  Is there a way to copy the tables from Ubuntu, edit it to change the IP addresses, and then use it on CentOS?

2. Ubuntu has the Firestarter utility that makes it very easy to set up the iptables firewall.  Is there a similar program for CentOS 6?  I haven't been able to find one.
LVL 84
Dave BaldwinFixer of ProblemsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
savoneConnect With a Mentor Commented:
Although I do not use Ubuntu, you should be able to find a file containing your rules in /etc/iptables/rules.v4.

If you copy that file to the CentOS machine and place it in /etc/sysconfig/iptables that will effectively "copy" the iptables rules from Ubuntu to CentOS.  After copying the files issue the "service iptables restart" command to read the new rules.

As for a GUI for iptables, I never heard of firestarter.  I have seen people use fwbuilder as a GUI front end for iptables.

Try this:

yum install fwbuilder -y
0
 
Dave BaldwinFixer of ProblemsAuthor Commented:
Thanks, I'll check out fwbuilder.
0
 
Dave BaldwinFixer of ProblemsAuthor Commented:
I don't see '/etc/iptables' on either computer.  ??  I installed FWBuilder on CentOS but it wants to know where the 'iptables' are located to import them.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
savoneCommented:
You won't see it on the centos system because the path is /etc/sysconfig/iptables not /etc/iptables.

As for Ubuntu, I don't use it. Bit quick research says it should be /etc/up tables.rules.
0
 
Dave BaldwinFixer of ProblemsAuthor Commented:
Ok, thanks, that's where they were.  Now to figure out what I need to do.
0
 
savoneCommented:
You can copy the file from Ubuntu to CentOS and put it in the location I specified.
0
 
Dave BaldwinFixer of ProblemsAuthor Commented:
That's what I'm going to do.  Then I'll open it in FWBuilder and restart the iptables function with it.  I've already edited the file to change the necessary IP addresses.  Fortunately, SSH was working so I could copy the file from Ubuntu to CentOS.  FTP and HTTP aren't working because until I do this changeover, there are no rules to allow them.
0
 
savoneCommented:
Sounds like you are on your way.  Good luck.
0
 
Dave BaldwinFixer of ProblemsAuthor Commented:
I have one last problem with FWBuilder not being able to login with SSH but I'll figure that out.  Thanks for you help.
0
All Courses

From novice to tech pro — start learning today.