Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CentOS 6 iptables utility

Posted on 2015-01-18
9
Medium Priority
?
352 Views
Last Modified: 2015-01-19
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.
0
Comment
Question by:Dave Baldwin
  • 5
  • 4
9 Comments
 
LVL 23

Accepted Solution

by:
savone earned 2000 total points
ID: 40556210
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
 
LVL 84

Author Comment

by:Dave Baldwin
ID: 40556485
Thanks, I'll check out fwbuilder.
0
 
LVL 84

Author Comment

by:Dave Baldwin
ID: 40556616
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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 23

Expert Comment

by:savone
ID: 40556665
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
 
LVL 84

Author Comment

by:Dave Baldwin
ID: 40556710
Ok, thanks, that's where they were.  Now to figure out what I need to do.
0
 
LVL 23

Expert Comment

by:savone
ID: 40556766
You can copy the file from Ubuntu to CentOS and put it in the location I specified.
0
 
LVL 84

Author Comment

by:Dave Baldwin
ID: 40556830
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
 
LVL 23

Expert Comment

by:savone
ID: 40556853
Sounds like you are on your way.  Good luck.
0
 
LVL 84

Author Closing Comment

by:Dave Baldwin
ID: 40558776
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question