#!/bin/bash iptables -t nat -F iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to 10.1.1.1 echo 1 > /proc/sys/net/ipv4/ip_forward