Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. eth0 - normal internet
  2. tun0 - openvpn tunnel
  3.  
  4. Kernel IP routing table
  5. Destination Gateway Genmask Flags Metric Ref Use Iface
  6. 192.168.80.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
  7. 10.8.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
  8. 192.168.44.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  9. 192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 dummy0
  10. 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
  11. 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
  12. 0.0.0.0 192.168.44.1 0.0.0.0 UG 0 0 0 eth0
  13.  
  14. iptables -t nat -A POSTROUTING -s 192.168.80.50 -o tun0 -j MASQUERADE
  15. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Add Comment
Please, Sign In to add comment