network/salt/upstream/masquerade

8 lines
159 B
Bash

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