Advertisement
Guest User

Untitled

a guest
May 5th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ipsec up nat-t
  2. vconfig add eth0 10
  3. ifconfig eth0.10 10.10.10.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
  4. iptables -t nat -A POSTROUTING -s 1.1.1.0/24 -j SNAT --to-source 192.168.0.20
  5. vconfig add eth0 30
  6. ifconfig eth0.30 30.30.30.1 netmask 255.255.255.0 up
  7. vconfig add eth0 20
  8. ifconfig eth0.20 1.1.1.1 netmask 255.255.255.0 up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement