network/salt/upstream/iptables

8 lines
210 B
Plaintext
Raw Normal View History

2016-11-14 00:40:55 +01:00
#!/bin/sh
if [ "$IFACE" = "{{ upstream_iface }}" ]; 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