How do I append to iptables?
I am using Redhat (RHEL) and usually edit the file /etc/sysconfig/iptables to manually input entries.
I'm sure that's not a good practice... but i tried entering the following at prompt, but when i view iptables file, the entries aren't there... is there a 'proper' way of doing it? or should i just append the file manually? Quote:
ps: am reading this site that's why http://www.ba.infn.it/calcolo/docume....html#Firewall |
No, don't append the file manually. This is a much better way to do it:
Step 1. Dump the iptables rules to a file: Code:
iptables-save > firewall-config.txt Step 3. Load the new rules: Code:
iptables-restore < firewall-config.txt Code:
service iptables save Code:
service iptables restart David |
If you are new to managing iptables (like me), there are plenty of nice GUI tools out there to assist.
Firewall Builder from www.fwbuilder.org is an example of an excellent GUI tool. It certainly makes my life easier... |
woah ok thanks guys!
but... if i am looking to set it for NFS Setup... you guys reckon where I should look for newer information? the above example was from the article... I've been reading up some online, but doesn't work fully, and i have problems even getting the nfs lock manager to fix port, let along getting the iptables to work.. |
All times are GMT -5. The time now is 07:32 PM. |