Changes
Jump to navigation
Jump to search
View the rules either by:
cat /etc/sysconfig/iptables
Or:
/sbin/iptables -L
Save Restart the table (so it will persist post a reboot)service: /sbinetc/init.d/service iptables saverestart
Haas PhD Server Configuration (view source)
Revision as of 20:19, 21 January 2011
, 20:19, 21 January 2011→Configure IpTables
Check that iptables is running:
/sbin/lsmod | grep ip_tables
Backup the old rules:
Add a hole (or two):
vi /sbinetc/sysconfig/iptables ... -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 128.32.66.0/24 --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 128.32.67.0/24 --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 128.32.74.0/24 --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 10.136.0.0/23 --dport 80 -j ACCEPT ...
==Data==