Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.