2016-11-14 00:40:55 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-11-12 00:33:29 +01:00
|
|
|
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
|
2016-11-15 01:33:17 +01:00
|
|
|
if [ "$IFACE" = "{{ interface }}" ]; then
|
2016-11-14 23:44:13 +01:00
|
|
|
iptables -A INPUT -i "$IFACE" -m state --state ESTABLISHED,RELATED -j ACCEPT
|
2016-11-14 00:40:55 +01:00
|
|
|
iptables -A INPUT -i "$IFACE" -j DROP
|
|
|
|
iptables -P INPUT ACCEPT
|
|
|
|
fi
|