You are not logged in.

#1 2015-12-16 16:18:48

jheller
Member
Registered: 2015-08-17
Posts: 14

Routing table: is it actually correct after enabling VPN

Hi all, just wondering how to interpret my routing table - could not find the answer to date, so hope to post this as concisely as possible for future reference to others.

My regular routing table looks like this:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.2.254   0.0.0.0         UG    100    0        0 enp9s0
192.168.2.0     0.0.0.0         255.255.255.0   U     100    0        0 enp9s0

After opening a VPN connection using NetworkManager / OpenVPN in Gnome, my routing table looks like this:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         84.247.62.129   0.0.0.0         UG    50     0        0 tap0
0.0.0.0         192.168.2.254   0.0.0.0         UG    100    0        0 enp9s0
84.247.62.128   0.0.0.0         255.255.255.224 U     0      0        0 tap0
84.247.62.128   0.0.0.0         255.255.255.224 U     50     0        0 tap0
85.17.136.249   192.168.2.254   255.255.255.255 UGH   100    0        0 enp9s0
192.168.2.0     0.0.0.0         255.255.255.0   U     100    0        0 enp9s0

So how is actually my traffic being routed through the VPN (tap0) instead of the regular enp9s0 interface with both interfaces pointing to my gateway?

Offline

#2 2015-12-16 19:21:50

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Routing table: is it actually correct after enabling VPN

jheller wrote:

with both interfaces pointing to my gateway?

Because of the lower metric taking priority.

Offline

Board footer

Powered by FluxBB