Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to restrict access to the SSH port of a new CentOS 6.2 server to select IP addresses but the Firewall GUI utility seems to be an all-or-nothing scenario. Either the port is firewalled or it is opened.

If I make changes using the IPTABLES commands and save them out, and then later someone uses the Firewall GUI to make other modifications such as opening up access to FTP or the like, will that remove the changes I made using the IPTABLES commands or manual edits to the tables?

share|improve this question
up vote 0 down vote accepted

Yes, the changes in the GUI will overlay /etc/sysconfig/iptables. I found this out the hard way recently.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.