Forum archive
OpenVPN route not being automatically added
I am having issues getting routing configured for a site to site VPN between an on-premise network and AWS.
At the AWS end I have deployed a TurnKey OpenVPN server from the AWS Marketplace. At the on-premise end a TurnKey OpenVPN server downloaded and deployed in Hyper-V.
At the AWS end I have two subnets, 10.0.1.0/24 and 10.0.2.0/24. At the on-premise end three subnets, 10.10.1.0/24, 10.105.3.0/24 and 10.102.40.0/24.
The AWS end is the server, and the on-premise end the client.
The server.conf looks like this for routing:
# virtual subnet unique for openvpn to draw client addresses from
# the server will be configured with x.x.x.1
# important: must not be used on your network
server 10.115.252.0 255.255.255.0
route 10.10.1.0 255.255.255.0
route 10.105.3.0 255.255.255.0
route 10.102.40.0 255.255.255.0
# push routes to clients to allow them to reach private subnets
push "route 10.0.1.0 255.255.255.0"
push "route 10.0.2.0 255.255.255.0"
The ccd file like this for the client:
iroute 10.10.2.0 255.255.255.0
iroute 10.105.3.0 255.255.255.0
iroute 10.102.40.0 255.255.255.0
When the link is established, the client (on-premise) end gets routes added for 10.0.1.0/24 and 10.0.2.0/24 as expected. However, I am having to manually addd routes at the server (AWS) end for 10.10.1.0/24 etc.
Does anyone have any insites on this?
Thanks,
Lindsay
That may possibly explain why things are working better on the local end, than the remote end?!
I hope to update the AWSMP images (to v14.2) in the next week or 2.
TBH, my direct experience with OpenVPN is pretty limited, so if that's not the issue, I'm not sure how useful I will be. But I can certainly try to recreate your issue when I have time. Unfortuantely, time is not something I have tons spare at the moment. I need to tidy up the AWSMP images ASAP, plus I need to get the basis of v15.0 in place so the app dev guys have got something to be going on with (v14.2 will be the last v14.x release).