#!/bin/sh # Do source NAT, from the internal network to the outside world. iptables -t nat -A POSTROUTING -s $1 -j SNAT --to $2