this post was submitted on 01 Feb 2025
16 points (100.0% liked)

networking

2901 readers
1 users here now

Community for discussing enterprise networks and the ensuing chaos that comes after inheriting or building one.

founded 2 years ago
MODERATORS
 

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

all 13 comments
sorted by: hot top controversial new old
[–] napkin2020@sh.itjust.works 1 points 3 days ago

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

[–] Shadow@lemmy.ca 4 points 5 days ago (1 children)

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 points 5 days ago

cool, thank you

[–] Eideen@lemmy.world 2 points 5 days ago

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 points 5 days ago

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