[root@sushe ~]# /etc/sysconfig/iptables -bash: /etc/sysconfig/iptables: Permission denied [root@sushe ~]# more /etc/rc.d/rc.local # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local ifconfig eth0 add 10.8.35.1 netmask 255.255.255.0 echo 1 > /proc/sys/net/ipv4/ip_forward [root@sushe ~]# more /etc/sysconfig/iptables # Generated by iptables-save v1.3.8 on Tue Dec 11 10:01:27 2007 REROUTING ACCEPT [2047:254489] OSTROUTING ACCEPT [2:127]-A POSTROUTING -o eth1 -j SNAT --to-source 61.50.*.* # Completed on Tue Dec 11 10:01:27 2007 # Generated by iptables-save v1.3.8 on Tue Dec 11 10:01:27 2007 :INPUT ACCEPT [347:59060] :FORWARD ACCEPT [79:4926] :OUTPUT ACCEPT [62:10360] -A INPUT -p icmp -m icmp --icmp-type any -j ACCEPT -A INPUT -p esp -j ACCEPT -A INPUT -p udp -m udp --dport 631 -j ACCEPT -A INPUT -p tcp -m tcp --dport 631 -j ACCEPT -A INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT # Completed on Tue Dec 11 10:01:27 2007 |