You are on page 1of 1

#!/bin/sh ## NAT onto customer VLAN (management is from customer IP) # ifconfig ath0 0.0.0.

0 down route del default gw 0.0.0.0 ifconfig ath0 up vconfig add ath0 519 ifconfig ath0.519 192.168.30.78 netmask 255.255.255.252 up route add default gw 192.168.30.77 ath0.519 iptables -t nat -I POSTROUTING -o ath0.519 -j MASQUERADE

You might also like