Access network behind a LTE Router OpenVPN Client

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
khaniii
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 17, 2022 3:44 pm

Access network behind a LTE Router OpenVPN Client

Post by khaniii » Sun Jul 17, 2022 3:56 pm

Hi,

I am quite new to this topic and thus not really sure what to search for.

I have the following setup:

OpenVPN server is running on a VM on Azure. Port to 1194 is opened so that connection can be established.
I have created a openVPN user and got a .ovpn file.

When I check "ip add", I get the following:
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1/24 brd 10.8.0.255 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::8882:8691:273:712d/64 scope link stable-privacy
valid_lft forever preferred_lft forever[/olog]

At my "remote site" I have a LTE router with VPN capability (Cudy LT500), to which I have added the .ovpn file in the configurations and the status is also saying, that it is "connected", it got 10.8.0.2 as tunnel IP.
Also by watching the "telnet localhost port" command on the VM itself, I can see some information about the connection as soon as the router connects.

Now, I have a Raspberry Pi connected via LAN to that router, it gets the IP 192.168.10.194.
I am currently struggling with connecting to the Pi via SSH from my VM in Azure.
How can I SSH into that Raspberry Pi from the VM in Azure?

When I install the OpenVPN client on the Pi and directly connect to the OpenVPN Server hosted on my VM, I can connect to the Pi via ssh user@10.8.0.2 (that is the tunnel IP, I retrieved on the Pi when running "ip add").

I guess this must have something to do with routing? In my LTE router settings I found a setting for "Static Routes". Would be great if somebody has experience in this kind of setup and could give some advice :)

Thank you very much!
Best
Khaniii

Post Reply