Site to site - client route not installed on server
-
Greetings.
Spinning client openvpn on pfsense.
Got a production server running for some years now works well for simple client to server, with push routes to clients, client overrides, etc.
pfsense openvpn client takes the routes like the simple clients, but server doesn't install route from client.
I have a client specific override with IPv4 Remote Network/s populated for the iroute piece, and advanced options saying route x.x.x.x 255.255.255.0; for pfsense to install route into OS table.
Server says it's learned the route in openvpn log, but route doesn't get installed into OS table.
Have a production 2.4.3 server, tried with 2.5.2, 2.4.4 and 2.4.3 clients thinking I maybe was facing some king of interop issue.
Any help is most welcomed.
Cheers.
-
So to follow up, some relevant logs:
Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 OPTIONS IMPORT: reading client specific options from: /var/etc/openvpn-csc/server1/FW1_985_555WHST Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 Options error: option 'route' cannot be used in this context (/var/etc/openvpn-csc/server1/FW1_985_555WHST) Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 MULTI: Learn: 10.9.200.165 -> FW1_985_555WHST/216.157.154.241:33492 Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 MULTI: primary virtual IP for FW1_985_555WHST/216.157.154.241:33492: 10.9.200.165 Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 MULTI: internal route 10.6.212.0/24 -> FW1_985_555WHST/216.157.154.241:33492 Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 MULTI: Learn: 10.6.212.0/24 -> FW1_985_555WHST/216.157.154.241:33492 Aug 27 09:56:40 fw1 openvpn[6062]: FW1_985_555WHST/216.157.154.241:33492 REMOVE PUSH ROUTE: 'route 10.6.212.0 255.255.255.0'
So the REMOVE message is weird, but it still works if I install the OS route manuall with route add in the shell. If I don't install the route manually, openvpn/pfsense doesn't and routing doesn't work.
I've scoured around the net and what I can find is this page:
https://docs.netgate.com/pfsense/en/latest/troubleshooting/openvpn-iroute.html
Saying clearly that the netblock and route advanced options are necessary. However, you can see in my log output that the server seemingly rejects the option saying it can't be used in this context.
-
So, installing a static route manually in the OS makes the thing work.
A bit stuck now, feels like the knobs are not doing what they should.