network/salt/upstream/iptables

8 lines
205 B
Plaintext
Raw Normal View History

2016-11-14 00:40:55 +01:00
#!/bin/sh
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