Guest User

Untitled

a guest
Jul 16th, 2019
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ip addr
  2.  
  3. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  4. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  5. inet 127.0.0.1/8 scope host lo
  6. valid_lft forever preferred_lft forever
  7. inet6 ::1/128 scope host
  8. valid_lft forever preferred_lft forever
  9. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
  10. link/ether 50:e5:49:ca:ad:12 brd ff:ff:ff:ff:ff:ff
  11. inet 192.168.1.5/24 brd 192.168.1.255 scope global noprefixroute eth0
  12. valid_lft forever preferred_lft forever
  13. inet6 fe80::6052:495b:8ae4:8ade/64 scope link noprefixroute
  14. valid_lft forever preferred_lft forever
  15.  
  16. # ip route
  17.  
  18. default via 192.168.1.1 dev eth0 proto static metric 100
  19. 169.254.0.0/16 dev eth0 scope link metric 1000
  20. 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5 metric 100
  21.  
  22. # ip addr
  23.  
  24. 1: lo: The same as without VPN
  25. 2: eth0: The same as without VPN
  26. 5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
  27. link/none
  28. inet 10.8.1.28/24 brd 10.8.1.255 scope global tun0
  29. valid_lft forever preferred_lft forever
  30. inet6 fe80::2e19:d676:6826:d47d/64 scope link stable-privacy
  31. valid_lft forever preferred_lft forever
  32.  
  33. # ip route
  34.  
  35. 0.0.0.0/1 via 10.8.1.1 dev tun0
  36. default via 192.168.1.1 dev eth0 proto static metric 100
  37. 10.8.1.0/24 dev tun0 proto kernel scope link src 10.8.1.28
  38. VpnPublicIp via 192.168.1.1 dev eth0
  39. 128.0.0.0/1 via 10.8.1.1 dev tun0
  40. 169.254.0.0/16 dev eth0 scope link metric 1000
  41. 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5 metric 100
  42.  
  43. iptables -t mangle -A OUTPUT -p udp --sport 19132 -j MARK --set-mark 65
  44. iptables -t mangle -A OUTPUT -p tcp --sport 22 -j MARK --set-mark 65
  45. ip route add default via 192.168.1.1 dev eth0 table 128
  46. ip rule add fwmark 65 table 128
  47. ip route flush cache
RAW Paste Data