network/salt/upstream/masquerade

6 lines
121 B
Plaintext
Raw Normal View History

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