network/salt/upstream/masquerade
2016-11-15 01:33:17 +01:00

6 lines
116 B
Bash

#!/bin/sh
if [ "$IFACE" = "{{ interface }}" ]; then
iptables -t nat -A POSTROUTING -o "$IFACE" -j MASQUERADE
fi