set up *nix computer to only allow local WiFi network sharing and no internet access

some Debian flavors have this built into the WiFi GUI, but I'd like to learn a more generic option in the CLI or config files

sorry for the noob question, thanks for reading

16 points · 12 comments · view on lemmy.world

12 Comments

Shadow@lemmy.ca · 5 pts · 1y (1 reply)

Just remove the gateway from the lan settings.

Or iptables, but that's more effort and a new tool to learn.

blackberry@midwest.social · 1 pts · 1y

cool, thank you

Eideen@lemmy.world · 2 pts · 1y

What are you trying to accomplish?

Parameter that can be change to not get direct internet:

  • submask to 0 (no routing)
  • no default route

Tools:

possiblylinux127@lemmy.zip · 2 pts · 1y

Are you sure you want to do it at the device level?

napkin2020@sh.itjust.works · 1 pts · 1y

This is something that you want to do with the router, not that it's impossible...

sighofannoyance@lemmy.world · -8 pts · 1y (7 replies)

Purchase and install the firewall-software called iptables. It allows for precise configuration; e.g. blocking any connections to the wider web. May the FOSS be with you!

Stanley_Pain@lemmy.dbzer0.com · 6 pts · 1y

Purchase 🤔🥸?

archy@lemmy.world · 6 pts · 1y (1 reply)

purchase ?

Rivalarrival@lemmy.today · 3 pts · 1y

Yes, I'm perfectly happy to sell a subscription to iptables for just $3.99/mo. PM me to arrange payment.

Zachariah@lemmy.world · 6 pts · 1y

purchase?

lka1988@sh.itjust.works · 4 pts · 1y

iptables is free....

WolfLink@sh.itjust.works · 1 pts · 1y (1 reply)

AI generated comment? Or a joke that was received poorly?

sighofannoyance@lemmy.world · 1 pts · 1y
[ removed ]