Hi I am trying to setup up Open VPN whereby remote clients connect to the server network and from the server network I can access the Lan of the client network. (Almost like a reverse VPN)
Both Open VPN server and client are raspberry Pi's sitting behind routers. The server is at my home where I want the clients to connect to so I can remotely support devices on the network at the clients.
I can get the client to connect to the server but what I am having issues with is trying to ping any device on the client lan from the server or from any device on the server lan.
Home ip subnet is 192.168.200.0
Router is 192.168.200.254
OpenVPN server is 192.168.200.250
Client subnet is 192.168.1.0
Router/gateway 192.168.1.1
Open vpn client 192.168.1.102
I have enabled IP forwarding on both the client and the server.
I have added the following to the server conf file:
push "route 192.168.200.0 255.255.255.0"
client-config-dir /etc/openvpn/ccd
route 192.168.1.0 255.255.255.0
I am not even sure if i need the line
push "route 192.168.200.0 255.255.255.0"
as I dont want devices on the client lan side to access devices on the server lan side.
I have made a file with the same name as the client and added it to the ccd directory with the following entry:
iroute 192.168.1.0 255.255.255.0
I have added a static route to my home router 192.168.1.0 to go to 192.168.200.250
When I run a trace route on a pc in my home to anything on the 192.168.1.0 subset it reaches the openvpn server and then can't go anywhere from there.
Am I missing any settings? Do I have to add a static route in the router of the client network, bearing in mind I don't want devices on that network to connect to the serverside lan only the other way around. By the way I cant add a static route to that router as it is the cheap ISP supplied 4g router.
Thanks, let me know if you require any more info.