Link to home
Start Free TrialLog in
Avatar of Dave Baldwin
Dave BaldwinFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave Baldwin

ASKER

Thanks, I'll check out fwbuilder.
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.
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.
Ok, thanks, that's where they were.  Now to figure out what I need to do.
You can copy the file from Ubuntu to CentOS and put it in the location I specified.
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.
Sounds like you are on your way.  Good luck.
I have one last problem with FWBuilder not being able to login with SSH but I'll figure that out.  Thanks for you help.