• General
  • Need more advanced firewall functionality, is there a solution?

Hello,

I ask for help configuring networking on Pixel 8a running latest GrapheneOS.

  • Most of my traffic needs to go strictly through VPN client (managed by VPN provider's app, which also has an Exclude list and Bypass VPN for local connections options)

  • I also use Syncthing for WLAN-only sync (bound to particular IP address itself, and connecting to particular IP address on WLAN, all relaying and discovery disabled)

Ideally, I would want all traffic except Syncthing to be stricly limited to VPN, and get cut off without leaking when VPN disconnects for whatever reason; and Syncthing traffic to be strictly limited to WLAN, without any possibility for leaking elsewhere.

Hopeful that Syncthing configured to listen on particular local address and connect to single device occupying another particular local address is enough to safeguard it from leaks, I could settle for just keeping traffic of all other apps from leaking outside the tunnel.

  • I can't use Block connections without VPN option of Always-On VPN - because then, Syncthing doesn't connect, even with Bypass VPN for local connections option enabled and not being on the exclude list in the VPN client app.

  • From my understanding, all no-root firewall apps with more advanced functionality will occupy a VPN slot, and I won't be able to use my VPN then, defeating the purpose.

  • And rooting GrapheneOS to get more advanced firewall functionality via proper firewall app would defeat the whole point of using GrapheneOS.

Can I implement the desired networking configuration on GrapheneOS somehow? Maybe leveraging second user profile or something?

    GrapheneQuestions No, these are limitations of the system. You could deploy VPN on your router/firewall and then tunnel there. You won't need any of the extra settings you said.

    But you need compatible hardware and some know how, but latter is full on the internet.

      0xsigsev Thank you.

      I use this smartphone as my main, and carrying a travel router in addition to 1-2 smartphones is not a reasonable solution for me.

      While doing further research, I discovered new Private Space feature, that seems to have separate VPN profile and separate block connections without VPN toggle, affecting only itself. I will test it, maybe I can put either Syncthing, or most other apps, into it, and achieve desired functionality.