Hi everyone,
I am very new to networking and is trying to piece this puzzle together. My hope is you can point me to the right direction.
This is a illustration of what I am trying to achieve.
imgur.com/a/5HA1P
I am trying to set up a raspberry pi with a Mobile Data USB dongle attached and a normal fiber internet connection to the LAN port.
The idea is that I can remotely connect to the combo above through the fiber connection using VPN (because of the Public IP issue with mobile data) and access the internet through the 3G mobile data dongle.
At the current state I have successfully setup 2 things, the VPN and the 3G connection. Separately, these two work perfectly well. However, when I activate the 3G connection, I cannot VPN into the combo. I suspect I need to config the routing table, but I haven't got any luck so far.
Here is the routing before turning on 3G
default via 192.168.1.1 dev enxb827eb3cb32a src 192.168.1.20 metric 202
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.1
192.168.1.0/24 dev enxb827eb3cb32a proto kernel scope link src 192.168.1.20 metric 202
And here is after
default via 10.64.64.64 dev ppp0
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.1
10.64.64.64 dev ppp0 proto kernel scope link src 10.209.235.19
192.168.1.0/24 dev enxb827eb3cb32a proto kernel scope link src 192.168.1.20 metric 202
Any input would be much appreciated, let me know if more information is needed. Thanks.