Understanding Routes and Gateway for a TUN VPN in OPENVPN


I am trying to understand the network setup that gets configured in my machine everytime I connect to an OpenVPN (Tun mode).

My OpenVPN client creates the following Routes:

Destination        Gateway            Flags        Refs      Use   Netif Expire
10                UGSc            1        1   utun1
10.128.16/24         UGSc            1        0   utun1         UGSc            0        2   utun1         UH              5     1442   utun1

As I understand this '' is the gateway for accessing VPN resources. However, the gateway for '' is '' which is my local IP in this VPN. So the gateway for my gateway is my local IP? I am not following it, for me it seems like a 'loop', but I am clearly missing something.

Another thing is that '' is a non-pingable address. I find it weird when I cannot ping my gateway (I know in some circumstances icmp might be blocked, but seems not to be the case here).

This is the network interface that gets configured by OpenVPN:

    inet --> netmask 0xffffffff

I am not following this thing: ' -->' either, but I assume it has something to do with my confusion with gateway above.

Anyway, this setup works, can anyone please explain how my packages can departure from my machine to the VPN with above mysterious gateway ''. Is it a hidden virtual IP that OpenVPN configures for TUN VPNs? Any additional material that would help me to gather more deep knowledge about it?

asked on Server Fault May 30, 2019 by vinicius.olifer • edited May 30, 2019 by vinicius.olifer

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0