network/salt/upstream/masquerade

6 lines
121 B
Bash

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