Can I make a portable modem out of a linux phone?
Hi all,
I would like to use a linux phone with Ubuntu Touch or PostmarketOS to make a sort of mobile modem which, when my laptop connects to the phone's hotspot, would have Pihole for DNS and a VPN. Is this possible, and which general steps would you recommend to go about it? I have installed PostmarketOS on a Poco F1 and connected to my VPN using openvpn in the terminal, but then when I open a browser on the same phone and check my ip address it shows the address of the wifi I'm connected to, not the VPN. So it seems I have no idea about the architecture of this endeavor.
I hope to have this working by Christmas when I go to visit my parents. The intended internet connection would be
home wifi ---> linux phone [some level of privacy]---> my laptop wifi
Thank you in advance!
zewm
in reply to paperboy • • •Sounds like a travel router with extra steps.
https://a.co/d/0aSGVqpZ
Here is one for $40. Save you all the headache. Just plug in your VPN info and gg.
moonpiedumplings
in reply to zewm • • •zewm
in reply to moonpiedumplings • • •moonpiedumplings
in reply to zewm • • •paperboy
in reply to zewm • • •qkall
in reply to zewm • •Linux Questions reshared this.
moonpiedumplings
in reply to paperboy • • •eyesaremosaics
in reply to moonpiedumplings • • •paperboy
in reply to eyesaremosaics • • •moonpiedumplings
in reply to paperboy • • •It's very easy, consuming USB tethering support is built into all Linux distros.
You just enable it (on the Android phone), plug it in, and then your computer will detect it as an ethernet connection.
wiki.archlinux.org/title/Andro…
Android is easy and requires no config on Debian's side. Iphone's require some support, although I think many distros preinstall the needed tools: wiki.archlinux.org/title/IPhon…
USB tethering from Linux (or a Linux phone) should be possible as well, via NetworkManager: fedoramagazine.org/internet-co…
Internet connection sharing with NetworkManager - Fedora Magazine
Beniamino Galvani (Fedora Magazine)paperboy
in reply to moonpiedumplings • • •neatchee
in reply to paperboy • • •This is possible but complete overkill.
Travel router as recommended is the quicker solution.
You can also do this with Android (GrapheneOS for example) out of the box.