Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ip rule add table 128 from 50.1.2.3
  2. ip route add table 128 to 50.1.2.0/24 dev tun0
  3. ip route add table 128 default via 10.10.10.5
  4.  
  5. root@server:~# route -n
  6. Kernel IP routing table
  7. Destination Gateway Genmask Flags Metric Ref Use Iface
  8. 10.10.10.1 10.10.10.5 255.255.255.255 UGH 0 0 0 tun0
  9. 10.10.10.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
  10. 0.0.0.0 10.10.10.5 128.0.0.0 UG 0 0 0 tun0
  11. 128.0.0.0 10.10.10.5 128.0.0.0 UG 0 0 0 tun0
  12. 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement