I’ve looked at this board and done quite a few Google searches and haven’t found what I’m looking for. I have read a few replies to posts that say the writer should include more information and be specific about questions, I hope this isn’t too much info. I just purchased a PI 4 8GB and have a specific project in mind. I want to use the PI while I travel in China for an extended period of time. I will need VPN, connection to a small unmanaged switch for my VIOP adapter (Google Voice), and a WiFi access point.
What I want to do is take the PI 4 and use it to connect via ethernet to a local router (I will not be able to access the router to change any settings). I want the PI 4 to function as a VPN, connected to a commercial provider either Nord or Express since these have worked in China before on my phone. I also want to use the commercial VPN to avoid Geo-blocking for Google Voice and streaming services. I will connect the VOIP adapter to the 5 port switch. I plan to bridge two ethernet connections on the PI to connect the switch and VOIP adapter to the internet through the VPN. I would also like the PI to be a WiFi access point for my phone, iPad, and smart TV while I’m there.
Currently I’m using Ubuntu 20.04 and have gotten pieces to work but I seem to take 2 steps forward an 1-3 back.
Here’s what I’ve tried so far: • I used the “built in” Hotspot feature in Ubuntu and that worked perfectly.
• I tried using the Nord application to connect to their servers but when I did I lost traffic to the internet on the Hotspot.
• Next I used the “built in” VPN feature in Ubuntu for eth 0. I downloaded the Nord UDP config files and loaded they through the Network Manager. That also worked like a charm providing VPN to the ethernet connection and the Hotspot.
The above worked great but I need to run this thing headless and plan to ssh from my laptop to monitor and control the PI. • I’ve tried using Ubuntu’s Network Manager Command Line Interface (nmcli) with limited success.
• I have tried nmcli connection up Hotspot and that seems to work. I can confirm this by looking an the output from ifconfig which shows a 10.42.0.1 address in place of the 192.168.0.X.
• I have NOT found a way to enable the VPN on eth0 from the command line.
The next issue I’m running into is trying to bridge two ethernet connections so I can connect to my VOIP adapter via the switch. • I have bridged internet connections (using brctl commands) and connected the VOIP adapter on an old laptop running Mint so I know it is possible.
• When I plug in a USB adapter to the PI 4 Ubuntu freezes and will not respond to keyboard or mouse. Is it possible to bridge ethernet connections on a PI?
I thought if I could get everything to work from the GUIs in Ubuntu I could remote in from my windows laptop but that’s proved to be a challenge as well. I tried VNC but it would never connect to the PI. I tried installing xrdp on the PI and using Windoze Remote Desktop connection and was unable to connect to the PI. If anyone can suggest any other ways I can connect to the HEADLESS PI that would be helpful too.
I need some advice on selecting an OS. I have downloaded Raspbian (32 bit), Ubuntu 20.10 (64 bit) and Ubuntu server (64 bit). Which would be the best choice for this application that will run headless?
Is it possible to bridge two ethernet connections on a PI and pass data through to a switch/connected device?
How can I enable the VPN for an ethernet connection from an ssh terminal in windows with the Nord config file(s)?
What packages or software I will need to install to the Ubuntu Server to accomplish this?
Can someone point me to some good tutorials that may help (it’s difficult to sort out all the information on the web).
I Thank you in advance.