Page 1 of 1

Manage the remote 4G router through pivpn

Posted: Sun Aug 01, 2021 7:11 pm
by _buc_openvpn
I all,
Do you know the way how i can manage the remote 4G router through a vpn?
If I connect to the 4G router lan, I manage the vpn server side router (router server vpn 192.168.1.1) without any problems. If, on the other hand, I connect to the LAN of the router on the vpn server side, I cannot manage the 4G router of the vpn client (client vpn router 191.168.0.1).

On both sides I have:
SERVER
pi01 192.168.1.254
router_X 192.168.1.1

CLIENT
pi02 192.168.0.51
router_Y 192.168.0.1

[pi01] ---ping---> [pi02]
[pi01] <---ping--- [pi02]

[pi01] ---**NOTping**---> [roter 192.168.0.51]-[pi02]
[pi01]-[roter 192.168.1.254] <---ping--- [pi02]

Thanks

Re: Manage the remote 4G router through pivpn

Posted: Sun Aug 01, 2021 7:15 pm
by TinCanTech
Did you use https://pivpn.io to install your Openvpn Server ?

Re: Manage the remote 4G router through pivpn

Posted: Sun Aug 01, 2021 7:26 pm
by _buc_openvpn
Yes of course, and it works perfectly!

Re: Manage the remote 4G router through pivpn

Posted: Sun Aug 01, 2021 7:35 pm
by TinCanTech
Then you now need to start reading the openvpn howto:
https://community.openvpn.net/openvpn/w ... rversubnet

Re: Manage the remote 4G router through pivpn

Posted: Mon Aug 02, 2021 6:57 am
by _buc_openvpn
I have done what is written in the guidelines "Including multiple machines on the client side when using a routed VPN (dev tun)" and then I was able to ping client 192.168.0.51 from server. I have not encountered any problems guys! My problem now is that i cannot access the ip address of the 4G router througth vpn. I am not understanding why from the client LAN instead I connect to the ip address of the router server 192.168.1.1 and manage it.

Re: Manage the remote 4G router through pivpn

Posted: Wed Aug 11, 2021 1:10 am
by Stephanie_Sy
Maybe route the traffic via a VPS? Let both sites connect with the VPS and then establish the IPsec connection between the sites.