I have set up a simple openvpn server/client set up. Server is on windows 10 and client is on a raspberry pi on a remote network. Everything works as expected. vpn is configured with the server on static ip address of 10.8.0.1/24 and client 10.8.0.2 (tun0). Successful pings in both directions.
Client is connected to internet (and openvpn server) over a (usb0) tether 192.168.42.125/24 and I have a wifi printer connected to the client (wlan0). I can access the printer interface through a web-browser on the client by typing in 192.168.233.1.
I thought it would be straight forward to be able to route requests across the vpn from a web-browser on the server to access the printer remotely (using 192.168.233.1), but after several days of trying I am at a loss.
As per help
https://openvpn.net/community-resources/expanding-the-scope-of-the-vpn-to-include-additional-machines-on-either-the-client-or-server-subnet/
I've tried adding to the server configuration file
client-config-dir ccd
route 192.168.233.0 255.255.255.0
with a text file matching the client certificate name inside the ccd folder
iroute 192.168.233.0 255.255.255.0
but no connection to the printer from the server web-browser. Can someone explain the route commands needed in the server and client files and what I am doing wrong ?