lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.26k stars 301 forks source link

Disable access to internet #310

Open Lyton505 opened 1 year ago

Lyton505 commented 1 year ago

I'm trying to disable access to the internet on the hotspot devices. What I've tried doing to achieve this is to select the internet interface as lo, wwan0 and eno2, but hotspot devices still get internet access after that. I am connected to wifi on my wifi card(wlo1). wlo1 is also the wifi interface. What can I do to disable internet access for hotspot devices?

nb. I am sharing files using Samba using the hotspot and don't want the clients connected to my device to access the internet via me.

OS: Pop_OS

wrobm2 commented 1 year ago

Would it not be easier to just use something like zerotier or tailscale to have them connect to you ?

Lyton505 commented 1 year ago

@wrobm2 I managed to use lnxrouter to achieve that. The solutions you suggested also seem like good alternatives; thanks