Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. post-up route add -net <network identifier> netmask <netmask> gw <links gateway>
  2. pre-down route del -net <network identifier> netmask <netmask> gw <links gateway>
  3.  
  4. iptables -t nat -A POSTROUTING -s 172.16.0.2/24 -j SNAT --to-source <ip address you want it to go out of>
  5.  
  6. iptables -t nat -A PREROUTING -d <ip/mask bit> -j DNAT --to-destination 172.16.0.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement