diff options
Diffstat (limited to 'roles/elevate/media/templates/firewall/r3-with-lan.sh.j2')
-rw-r--r-- | roles/elevate/media/templates/firewall/r3-with-lan.sh.j2 | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/roles/elevate/media/templates/firewall/r3-with-lan.sh.j2 b/roles/elevate/media/templates/firewall/r3-with-lan.sh.j2 new file mode 100644 index 00000000..041e441b --- /dev/null +++ b/roles/elevate/media/templates/firewall/r3-with-lan.sh.j2 @@ -0,0 +1,56 @@ +####################### +# Definitions # +####################### + +IPTABLES="/sbin/iptables" +IP6TABLES="/sbin/ip6tables" + +[ -x $IPTABLES ] || exit 0 +[ -x $IP6TABLES ] || exit 0 + +FILTER="$IPTABLES -t filter" +NAT="$IPTABLES -t nat" +MANGLE="$IPTABLES -t mangle" + +FILTER6="$IP6TABLES -t filter" +MANGLE6="$IP6TABLES -t mangle" + + +######################### +# IPv4 UP # +######################### + +ipv4_up() { + # don't do anything here + echo -n "success" +} + + +######################### +# IPv6 UP # +######################### + +ipv6_up() { + # don't do anything here + echo -n "success" +} + + +######################### +# IPv4 DOWN # +######################### + +ipv4_down() { + # don't do anything here + echo -n "success" +} + + +######################### +# IPv6 DOWN # +######################### + +ipv6_down() { + # don't do anything here + echo -n "success" +} |