network/salt/upstream/nat66

8 lines
160 B
Bash

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