- Solo tienes que ajustar las variables a tu red y tendras un firewall stable y seguro.
cp iptables /etc/init.d/iptableschmod 777 /etc/init.d/iptablessudo update-rc.d iptables start 45 S . stop 31 0 6
sudo update-rc.d -f iptables remove
- /etc/init.d/iptables start ==>> inicia el firewall
- /etc/init.d/iptables stop ==>> detiene el firewall
- /etc/init.d/iptables restart ==>> reinicia el firewall
Con este escript no importa los servicios que tengas en tu servidor. Todos funcionaran bien sin necesidad de modificar ninguna regla.