-
-
Save jjongsma/773aceff0f47ede75c89 to your computer and use it in GitHub Desktop.
Results of my attempt to setup routing after connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ip route show | |
default via 192.168.1.1 dev eth0 proto static | |
169.254.0.0/16 dev eth0 scope link metric 1000 | |
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.4 metric 1 | |
# ip route flush table vpn | |
# ip route del 46.246.33.0/24 dev tun0 | |
# ip route add 46.246.33.0/24 dev tun0 table vpn | |
# ip route add default via 46.246.33.1 dev tun0 table vpn | |
RTNETLINK answers: No such process | |
# ip rule add from 46.246.33.195 table vpn priority 2 | |
# ip route flush table cache | |
# ip route show | |
default via 192.168.1.1 dev eth0 proto static | |
169.254.0.0/16 dev eth0 scope link metric 1000 | |
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.4 metric 1 | |
# ip rule show | |
0: from all lookup local | |
2: from 46.246.33.195 lookup vpn | |
32766: from all lookup main | |
32767: from all lookup default | |
# ping -c 1 -w 1 -I eth0 google.com | |
PING google.com (74.125.225.0) from 192.168.1.4 eth0: 56(84) bytes of data. | |
64 bytes from ord08s12-in-f0.1e100.net (74.125.225.0): icmp_req=1 ttl=53 time=1.92 ms | |
--- google.com ping statistics --- | |
1 packets transmitted, 1 received, 0% packet loss, time 0ms | |
rtt min/avg/max/mdev = 1.924/1.924/1.924/0.000 ms | |
# ping -c 1 -w 1 -I tun0 google.com | |
PING google.com (74.125.225.7) from 46.246.33.195 tun0: 56(84) bytes of data. | |
--- google.com ping statistics --- | |
2 packets transmitted, 0 received, 100% packet loss, time 999ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment