network/salt/upstream/masquerade

6 lines
116 B
Plaintext
Raw Normal View History

2016-11-09 01:50:57 +01:00
#!/bin/sh
2016-11-15 01:33:17 +01:00
if [ "$IFACE" = "{{ interface }}" ]; then
2016-11-09 01:50:57 +01:00
iptables -t nat -A POSTROUTING -o "$IFACE" -j MASQUERADE
fi