Newly added routes to site to site VPN aren't added to client routing table

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
unixnerd
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 09, 2018 6:49 pm

Newly added routes to site to site VPN aren't added to client routing table

Post by unixnerd » Tue Jan 09, 2018 9:54 pm

I am having an unusual issue with my site to site VPN. I've added two additional routes to push to the client-side in the server configuration and bounced the server. I can see logs on both server-side/client-side that the newly added routes were pushed to the client. However the client doesn't add them to its kernel routing table.. If I add the static routes manually everything works as expected.

Both server and client are running Debian GNU/Linux 8.9 (jessie) with OpenVPN 2.3.4-5+deb8u2

Got any ideas?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Newly added routes to site to site VPN aren't added to client routing table

Post by TinCanTech » Wed Jan 10, 2018 1:00 pm


unixnerd
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 09, 2018 6:49 pm

Re: Newly added routes to site to site VPN aren't added to client routing table

Post by unixnerd » Wed Jan 10, 2018 7:09 pm

My apologies for the vague post.

Disregard. I found the issue.

Noticed this log after the route was pushed to the client.

Code: Select all

Options error: route parameter gateway 'vpn-gateway' must be a valid address
Reviewed the server configuration and found a typo in the two newly added route push commands

Code: Select all

push "route *.*.*.* 255.255.255.0 vpn-gateway 10"
instead of

Code: Select all

push "route *.*.*.* 255.255.255.0 vpn_gateway 10"
Thanks anyways.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Newly added routes to site to site VPN aren't added to client routing table

Post by TinCanTech » Wed Jan 10, 2018 7:21 pm

Thanks for letting us know your solution 8-)

Post Reply