I have connected with openvpn client to remote host and am able to ping it. Also route of this IP belongs correctly:

> ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=63 time=388.371 ms
64 bytes from icmp_seq=1 ttl=63 time=195.209 ms
--- ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 195.209/291.790/388.371/96.581 ms
> route get
   route to:
        fib: 0
  interface: ovpnc5
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

simultaneously, if I tracert this IP from Windows machine in LAN, it goes via different gateway


Tracing route to over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms
  2     1 ms    <1 ms    <1 ms  ISP router 1
  3     *        1 ms     1 ms  ISP router 2

where is an IP of my router running pfSense.

How can it be theoretically? Who else can control packets route besides route table?

  • My guess is that your Linux host is routing through the OpenVPN connection and your Windows host isn't, but there's insufficient information to answer the question from what you have provided. What are your addresses and full routing tables (ip addr/ifconfig and ip route/route for Linux, ipconfig and route print for Windows)? How is the network set up? – ErikF Mar 18 '18 at 22:13
  • @ErikF I don't have Linux host, I hav FreeBSD host which is the router Why route get result above is not enough? route print on Windows says No active routes. Tracert shows it goes to router, why doesn't it route it to VPN? – Dims Mar 18 '18 at 22:36
  • route get only shows that one route: in order to give a more complete answer, we need to know all the routes that the host can take. OpenVPN usually takes over as the default gateway, but without seeing all the routes, it's hard to know the whole picture. – ErikF Mar 18 '18 at 23:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.