How to restrict access to internet but allow LAN per app?

Hello,

I’m facing several use cases where I’d like to restrict an app from accessing the internet but allow connections to my local network. For example:

  • let file explorer access shares on local file server but not the internet
  • let smart home app access local smart home hub but not the internet
  • let app communicate to robot vacuum cleaner in local wifi but not the internet

Withdrawing the permissions to use wifi or mobile data stops both internet and LAN access.

There are firewalls like “AFWall+” but I don’t want to root my phone. I’d be happy about any suggestions.

Regain your privacy! Adopt /e/OS the unGoogled mobile OS and online servicesphone

As usual, in → settings → apps → name of the app → network access

1 Like

I can’t see a menu called network. There is only Settings > Apps > name of the app > Mobile data and WiFi.

I tested with two apps, VLC and Ghost Commander. Both can’t access local network when “Wi-Fi data” and “Mobile data” are disabled. Should they work in LAN without these permissions? Is it a problem of app design?

Is this issue not more about your ISP router’s (automatic) connection to the internet ?

In the situation you describe do you not need to add an AP (access point) which is capable of:

connection to the local network (aka intranet)

or

connection to the world wide web ?

You may give netguard a try - a firewall that does not require root