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

hal_sk

New Member
Joined
May 25, 2020
Messages
14
Reaction score
3
Credits
148
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.
 


jpnilson

Member
Joined
Jul 31, 2021
Messages
68
Reaction score
42
Credits
614
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.
 
OP
hal_sk

hal_sk

New Member
Joined
May 25, 2020
Messages
14
Reaction score
3
Credits
148
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.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top