@gertjan said in Access my home server through my phone hotpot.:
@viragomann said in Access my home server through my phone hotpot.:
I started an OpenVPN connection on the iPhone and connected my laptop with the its hotspot. But I was not able to connect to a remote resource with this.
So obviously that's not possible with a recent iOS as well.
I tried just that several days ago.
I use the OpenVPN OpenConnect app on my iPhone
When you use it, and check log files on both sides, you'll see that your iPhone gets one IPv4 - and one IPv6 if you asked for it / set up IPv6.
That"s one IP for one device, the iPhone.
If the hotspot would use the OpenVPN connection, would it use the same attributed IP for the hotspot connected device ?
No, of course not, that would be an error.
If the phone behaves as a NAT home router and successfully masquerades hotspot connected devices over the WAN based VPN tunnel, then I believe you would still only see one VPN client on the pfsense side.
Is this not what many higher end home routers (pfsense included) do? They masquerade LAN connected devices via an VPN client connection. The limitation seems imposed by android's design rather than the underlying Linux kernel/network stack. It appears neither Android or IOS permit NAT of hotspot network over the vpn client 'interface'.
The project I linked to above appears to offer a UI to manipulate iptables to achieve this but requires root.
This means that the iPhone VPN App should behave as a router ? Can't be, as the app (my words) has been created to connect 'a device' to a OpenVPN server, not multiple devices.
I'm pretty sure that what you want, exist.
It will be a dedicated small box, a router, with an AP build in, a 3/4/5G connections, thus a SIM card, and it should have a special case of OpenVPN Client usage so every device connected to the AP will get tunneled to the OpenVPN server.
Yes, and I bet it's quite expensive.