How to Share VPN Internet as a Wi-Fi Hotspot on Linux?

Hello everyone,

I’m looking for a way to share my internet, which is connected via VPN, as a Wi-Fi hotspot on Linux (endeavor Linux). My goal is to share the VPN internet with other devices, such as my mobile phone, through a Wi-Fi hotspot.

Here are the details:

My wireless interface is wlan0.
My VPN is active on the ppp0 interface.
When I run the create_ap command, I encounter errors like “invalid arithmetic operator” and “Your adapter can not transmit to channel 0”.
Question: What methods are available to share VPN internet as a Wi-Fi hotspot?

I’d appreciate it if anyone with experience in this area could offer some help.

I’m not aware of your entire network set up, but it sounds like it would be easier to set up the VPN on your router and then connect to it on wifi with your phone and let it route the traffic through the VPN. If that’s not an option, it’s like that what you are trying to do is possible (assuming you have the right hardware), but it’s not something I’ve ever done myself.

1 Like

Network Manager. Create or edit a connection, then change the mode to Hotspot.

More info here: https://nixsanctuary.com/how-to-share-vpn-connection-using-ethernet-and-wi-fi-on-linux/
And here: https://www.linuxquestions.org/questions/linux-networking-3/how-to-set-up-vpn-hotspot-in-linux-4175724729/
Here too: https://protonvpn.com/blog/share-vpn-connection

Read the comments at the end too.