ER605 OpenVPN client - missed routes to remote networks (and DNS server)
[2023/06/06] Update: SOLVED! The routes to remote networks are not missing! No issue here.
The issue (that can mislead) is in the routing table shown on the web interface (Transmission / Routing / Routing Table). It doesn't show existing routes that were set by the OpenVPN client!
---
Hi,
I'm trying to setup a OpenVPN client on my ER605.
But the router doesn't seem to "learn" the routes pushed by the VPN server (nor DNS servers).
My current status:
- I was able to setup the OpenVPN client up to the point that the tunnel gets up!
+ I provided user+pass; server and port; .ovpn file (provided by the OpenVPN server - check bellow), etc...
+ I can se it on "OpenVPN Tunnel List" with traffic on going;
+ I can ping the VPN gateway, 172.16.20.1
(I happen to know the IP of the GW. The router didn't learn! Doesn't have any route with Next Hop to the GW IP)
My issue:
- In the "Routing Table" I can only see the local VPN network (in my case 172.16.20.0/24).
- There are no other routes to remote networks on the VPN server side :(
+ I know that the server is pushing all the information. Routes and DNS servers for local Connection-specific DNS Suffix.
+ I tested before this .ovpn file in a windows PC on my LAN and works (the PC leanrs the routes and DNS). I can access servers on the remote network. (BTW, that's why I knew the IP of the remote GW to ping it)
Anything I missed? Probably something tha should be added to .ovpn file? (check bellow)
Because it seems that there's nothing else I can do (configure).
Thank ou for any support.
BR,
PBraga
PS: I know I can set static routes to the remote networks and probably set hosts (name to IP resolution) on my PCs but that's not a solution! :(
(I will do this anyway as a temporarily solution to the problem, so I can work...)
------------------------------------------------------------------------------------------------
-------------------------------------- more info --------------------------------------------
------------------------------------------------------------------------------------------------
My .ovpn file:
---<START OF OVPN FILE>---
dev tun
client
proto tcp
<ca>
-----BEGIN CERTIFICATE-----
(certifiate...)
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
(certifiate...)
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
(certifiate...)
-----END PRIVATE KEY-----
</key>
remote-cert-eku "TLS Web Server Authentication"
remote (x.x.x.x) (port)
remote (y.y.y.y) (port)
persist-key
persist-tun
verb 3
mute 20
keepalive 10 60
cipher AES-256-CBC
auth SHA256
float
reneg-sec 28800
nobind
mute-replay-warnings
auth-user-pass
tls-version-min 1.2
;remember_connection 0
;auto_reconnect 1
---<END OF OVPN FILE>---
The routing table: