Hello, I need some help with a problem I've been struggling for a while.
My VPN setup is as follows:
1. Remote computer (Windows 2008 R2): 10.0.0.19 with openvpn server installed (10.8.0.1)
2. Local computer (Ubuntu 16.04): 192.168.1.20 with openvpn client installed (10.8.0.6). lan gateway = 192.168.1.1 (that is my router)
3. POS device: 192.168.1.100 - only basic lan setup can be done there, i.e. ip, subnet, gateway
I'd like to have an ability to access my POS device from the remote computer - windows. I know that the best way is to enable port forwarding on my local router by it's not an option as I'm behind NAT.
I've already read
https://openvpn.net/community-resources/expanding-the-scope-of-the-vpn-to-include-additional-machines-on-either-the-client-or-server-subnet/
but I still can not reach 192.168.1.100 from my server.
IP forwarding is enabled in Windows and in Linux
I've created ccd directory with my client file name and added
iroute 192.168.1.0 255.255.255.0
in server.ovpn I've added:
client-config-dir ccd
route 192.168.1.0 255.255.255.0
client-to-client
push "route 192.168.1.0 255.255.255.0"
VPN works as expected, but still no luck with connection to POS deviŃe from R2 server.
What do I miss here? Is it at all possible to make it work as I expect?