3 # Provides: invirt-web-iptables
4 # Required-Start: $local_fs $remote_fs
5 # Required-Stop: $local_fs $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: Invirt web server iptables rules
12 NAME=invirt-web-iptables
13 DESC="Invirt web server iptables rules"
14 RULES=/usr/share/invirt-web-iptables/iptables.rules
16 PATH=/sbin:/usr/sbin:/bin:/usr/bin
18 dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0
20 . /lib/init/gen-files.sh
21 . /lib/init/std-init.sh
26 echo 1 > /proc/sys/net/ipv4/ip_forward
27 /sbin/iptables-restore < $RULES