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

https://midwest.social/post/22546215

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

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

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!
iptables is free…
purchase ?
Yes, I’m perfectly happy to sell a subscription to iptables for just $3.99/mo. PM me to arrange payment.
AI generated comment? Or a joke that was received poorly?
banned for lack of humor 😭

Just remove the gateway from the lan settings.

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

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

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:

nmtui(1) — Arch manual pages

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