Routes and VPNs

Depending on the VPN being used, a route may not display in the table for the far side. IPsec does not use the routing table, it is instead handled internally in the kernel using IPsec security policy database (SPD) entries. Static routes will never cause traffic to be directed across an IPsec connection. OpenVPN uses the system routing table and as such entries are present for networks reachable via an OpenVPN tunnel, as in the following example:

#netstat -rWn Routing tables   Internet: Destination        Gateway        Flags        Use        Mtu        Netif        Expire
default198.51.100.1UGS924211500em0 
10.6.0.0/1610.6.203.1UGS01500ovpnc2 
10.6.203.0/2410.6.203.2UGS01500ovpnc2 
10.6.203.1link#9UH01500ovpnc2 
10.6.203.2link#9UHS016384lo0 
10.7.0.0/24link#2U12607711500em1 
10.7.0.1link#2UHS016384lo0 
127.0.0.1link#7UH86616384lo0 
198.51.100.0/24link#1U12514771500em0 
198.51.100.7link#1UHS016384lo0 

The OpenVPN interface is 10.6.203.2, with a gateway of 10.6.203.1 and the interface is ovpnc2. The network reachable using OpenVPN in this example is 10.6.0.0/16.

With IPsec, traceroute is not as useful as with routed setups like OpenVPN, because the IPsec tunnel itself does not have IP addresses. When running traceroute to a destination across IPsec, a timeout will be shown for the hop that is the IPsec tunnel.