I am using RHEL 4 and have created a custom Firewall script . The systems has 2 lan cards etho and eth1 configured with the respective internal and external ips . When i run the firewall script it runs perfectly without any errors ,but when i run the command service iptables status ,it seems to run the internal Iptables script . I have made the changes in the below files /etc/sysctl.conf /etc/rc.d/rc.local - added the path of the firewall script Have made the Firewall script executable added the command echo "1" > /proc/sys/net/ipv4/ip_forward in the firewall script I can Ping external websites from the linux server and also the clients can ping the DNS ,but cannot access the websites. Do i need to link the firewall script file so that it starts at boot up . Pl let me know where am i going wrong .Am i missing any pre-requisites before a custom made firewall script needs to be run. regds Sudarshan'
I'd disable the iptables init script and enable your script with the help of the chkconfig command. See Code: man chkconfig