firewall config file?
Scot L. Harris
webid at cfl.rr.com
Tue Jul 20 17:48:56 UTC 2004
On Tue, 2004-07-20 at 13:37, Jonathan T. Steadman wrote:
> How do I make it so I dont have to redo firewall settings everytime I
> restart, is there a config file? some ports stay open, but like pop and
> imap I have to redo every time manually.
You can do this several different ways.
You can edit the file /etc/sysconfig/iptables and add rules to that
file. When you do issue a service iptables restart to read the file
again.
Another way if you prefer a GUI is to run system-config-securitylevel.
At the bottom of the window you can add what ever ports you need in the
form of 110:tcp, 137:udp, 138:udp, 139:tcp, 445:tcp etc. (note there
are commas between the ports.
The GUI will write out the /etc/sysconfig/iptables file for you and I
believe restarts iptables with the new rules. The GUI also has a few
standard ports you can just select like ftp, ssh, smtp, http.
--
Scot L. Harris
webid at cfl.rr.com
Comedy, like Medicine, was never meant to be practiced by the general public.
More information about the users
mailing list