- ipsec up nat-t
- vconfig add eth0 10
- ifconfig eth0.10 10.10.10.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
- iptables -t nat -A POSTROUTING -s 1.1.1.0/24 -j SNAT --to-source 192.168.0.20
- vconfig add eth0 30
- ifconfig eth0.30 30.30.30.1 netmask 255.255.255.0 up
- vconfig add eth0 20
- ifconfig eth0.20 1.1.1.1 netmask 255.255.255.0 up
SHARE
TWEET
Untitled
a guest
May 5th, 2015
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
