Re[2]: NetworkManager VPN and routing in bridged mode,



Hello,

Here we go.

The following is routing table built by NetworkManager:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.109.161    192.168.1.1     255.255.255.255 UGH   0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 tap0

10.0.109.161 is VPN Gateway, 192.168.1.0/24 is my local network. Remote network is 10.1.0.0/24, but it isn't shown here - since all VPN devices are P-t-P from NM's point of view, the last rule is just enough to route all the traffic through VPN connection.

Correct routing table produced by OpenVPN daemon itself (without NM) is as follows:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.109.161    192.168.1.1     255.255.255.255 UGH   0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tap0
0.0.0.0         10.1.0.1        0.0.0.0         UG    0      0        0 tap0

Here we have an explicit route to remote network and correct default route via host 10.1.0.1 reachable through tap0.

The patch is in the works.

Regards,
Valentine Sinitsyn


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]