#!/bin/sh # Do source NAT, from the internal network to the outside world. iptables -t nat -F PREROUTING #inNAT 216.254.8.6 192.168.0.6 #inNAT 216.254.8.7 192.168.0.7 #inNAT 216.254.8.9 192.168.0.9 # http access... inNATByPort 216.254.8.6 192.168.0.6 tcp 80 inNATByPort 216.254.8.7 192.168.0.7 tcp 80 inNATByPort 216.254.8.9 192.168.0.9 tcp 80 inNATByPort 216.254.8.6 192.168.0.6 udp 80 inNATByPort 216.254.8.7 192.168.0.7 udp 80 inNATByPort 216.254.8.9 192.168.0.9 udp 80 # https access... inNATByPort 216.254.8.6 192.168.0.6 tcp 443 inNATByPort 216.254.8.7 192.168.0.7 tcp 443 inNATByPort 216.254.8.9 192.168.0.9 tcp 443 # ftp access... inNATByPort 216.254.8.6 192.168.0.6 tcp 21 inNATByPort 216.254.8.7 192.168.0.7 tcp 21 inNATByPort 216.254.8.9 192.168.0.9 tcp 21 # nntp access... inNATByPort 216.254.8.6 192.168.0.6 tcp 119 inNATByPort 216.254.8.7 192.168.0.7 tcp 119 inNATByPort 216.254.8.9 192.168.0.9 tcp 119