On 08/23/18 05:56, Ed Greshko wrote: > On 08/22/18 23:59, Patrick O'Callaghan wrote: >> This is the routing table with the VPN enabled (the virbr stuff is from >> a VM, not relevant here): > > I've never been a fan of the "route" command. > > How about the output of "netstat -rn" instead? In my case... > > No VPN > > [egreshko@meimei ~]$ netstat -rn > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp2s0 > 0.0.0.0 192.168.2.5 0.0.0.0 UG 0 0 0 wlp0s29u1u2 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0 > 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp0s29u1u2 > > VPN > > [egreshko@meimei ~]$ netstat -rn > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 0.0.0.0 25.0.8.1 0.0.0.0 UG 0 0 0 tun0 > 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp2s0 > 0.0.0.0 192.168.2.5 0.0.0.0 UG 0 0 0 wlp0s29u1u2 > 25.0.8.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0 > 104.244.157.160 192.168.1.1 255.255.255.255 UGH 0 0 0 enp2s0 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0 > 192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 enp2s0 > 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp0s29u1u2 > Come to think of it, the ip command is even better as it includes the "metric". No VPN [egreshko@meimei ~]$ ip route show default via 192.168.1.1 dev enp2s0 proto static metric 100 default via 192.168.2.5 dev wlp0s29u1u2 proto dhcp metric 600 192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.18 metric 100 192.168.2.0/24 dev wlp0s29u1u2 proto kernel scope link src 192.168.2.190 metric 600 [egreshko@meimei ~]$ ip route show default via 25.0.8.1 dev tun0 proto static metric 50 default via 192.168.1.1 dev enp2s0 proto static metric 100 default via 192.168.2.5 dev wlp0s29u1u2 proto dhcp metric 600 25.0.8.0/24 dev tun0 proto kernel scope link src 25.0.8.3 metric 50 174.127.111.177 via 192.168.1.1 dev enp2s0 proto static metric 100 192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.18 metric 100 192.168.1.1 dev enp2s0 proto static scope link metric 100 192.168.2.0/24 dev wlp0s29u1u2 proto kernel scope link src 192.168.2.190 metric 600 With a metric of 50 the tun0 link is preferred. -- Conjecture is just a conclusion based on incomplete information. It isn't a fact.
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/XDUSNCUOXXYBTPGJ72I6R2ARXRHGDBGA/