
Log_action_begin_msg "Deleting ALL firewall chains " Log_action_begin_msg "Flushing ALL firewall rules from chains!" Log_action_begin_msg "Saving current firewall configuration"

If $IPTABLES_RESTORE /dev/null 2>/dev/null & usplash_write "TIMEOUT 15" || true Type usplash_write >/dev/null 2>/dev/null & usplash_write "TIMEOUT 120" || true

PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" # Script to load/unload/save iptables firewall settings. # Creative Commons Attribution - Share Alike 3.0 License (BY,SA) # Required-Start: mountvirtfs ifupdown $local_fs

In order to start and stop the firewall, but some distros like centos have installed a service called iptables to start and stop the firewall and a configuration file to configure it.Īnyway it’s possible to make a service to manage ipotables editing or installing a script for this scope.Īll services in linux, ubuntu is not an exception, are executable scripts inside /etc/init.d folder, that implements a standard interface (start,stop,restart)Ī possible script looks like this: #!/bin/sh -e Iptables is a command it’s not a service, so generally it’s not possible to use commands like service iptables start
