Manage the remote 4G router through pivpn

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
_buc_openvpn
OpenVpn Newbie
Posts: 4
Joined: Fri Oct 02, 2020 9:51 am

Manage the remote 4G router through pivpn

Post by _buc_openvpn » Sun Aug 01, 2021 7:11 pm

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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Manage the remote 4G router through pivpn

Post by TinCanTech » Sun Aug 01, 2021 7:15 pm

Did you use https://pivpn.io to install your Openvpn Server ?

_buc_openvpn
OpenVpn Newbie
Posts: 4
Joined: Fri Oct 02, 2020 9:51 am

Re: Manage the remote 4G router through pivpn

Post by _buc_openvpn » Sun Aug 01, 2021 7:26 pm

Yes of course, and it works perfectly!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Manage the remote 4G router through pivpn

Post by TinCanTech » Sun Aug 01, 2021 7:35 pm

Then you now need to start reading the openvpn howto:
https://community.openvpn.net/openvpn/w ... rversubnet

_buc_openvpn
OpenVpn Newbie
Posts: 4
Joined: Fri Oct 02, 2020 9:51 am

Re: Manage the remote 4G router through pivpn

Post by _buc_openvpn » Mon Aug 02, 2021 6:57 am

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.

Stephanie_Sy
OpenVPN User
Posts: 20
Joined: Mon May 31, 2021 4:51 pm

Re: Manage the remote 4G router through pivpn

Post by Stephanie_Sy » Wed Aug 11, 2021 1:10 am

Maybe route the traffic via a VPS? Let both sites connect with the VPS and then establish the IPsec connection between the sites.

Post Reply