blob: 5b486bd316a28cd9221529cbed1493e77879db1d [file] [log] [blame]
Andy Bavier20aec612015-12-17 15:46:00 -05001#!/bin/sh
2
3PRIMARY=$( route | grep default | awk '{print $NF}' )
4RULE="POSTROUTING -t nat -o $PRIMARY -s 172.24.4.0/24 -j MASQUERADE"
5
6iptables -C $RULE || iptables -A $RULE