[Solved] How to disable internet sharing in my access point

hal_sk

New Member
Joined
May 25, 2020
Messages
19
Reaction score
3
Credits
188
Hello,
I have created wifi access point with my Raspberry Pi. I would like to stop sharing internet connection in that access point and only to allow using local network for devices connected to that AP. How can I do it? Thx.
 


Do you want some to make it to the internet and others not? If no one needs to make it to the internet you need to make your default route to a dead end. If some people need to make it through you are looking at some kind of an access list or more complex routing table manipulation. Guess the next thing is do you want them to understand they cannot make it to the Internet or just a time out?
Lots of ways to do this.
 
The thing is solved. I have just used this tool: https://github.com/garywill/linux-router
After installing it and all needed dependencies I simply use command:
sudo lnxrouter -n --ap wlan0 MyAccessPoint -p MyPassPhrase
Where "-n" flag means internet connection should not be shared for others connected in wifi LAN.

Do you want some to make it to the internet and others not?
Purpose of this AP is only for my phone to connect to this AP when it is nearby. I then run some scripts that use my "phone (dis)connection to this AP" as condition as part of home automation.
 

Staff online

Members online


Top