[GH-ISSUE #241] Add VPN-only settings option #193

Closed
opened 2026-05-07 00:21:18 +02:00 by BreizhHardware · 2 comments

Originally created by @dcousens on GitHub (May 7, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/241

When using a self-hosted server, for many configurations it may only be accessible when connected to your VPN.

Rather than relying on DNS resolution to fail (for example, if using .home.arpa for your domain names), there could be a settings option that prevents the foreground service from connecting unless a VPN is active.
This isn't fool-proof, especially if you use multiple VPN's, but it could prevent/reduce any DNS requests until the device is ready.

In addition to providing a CA certificate for authentication as in https://github.com/binwiederhier/ntfy/issues/215, this would reduce your device from making unnecessary outgoing connections.

Originally created by @dcousens on GitHub (May 7, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/241 When using a self-hosted server, for many configurations it may only be accessible when connected to your VPN. Rather than relying on DNS resolution to fail (for example, if using `.home.arpa` for your domain names), there could be a settings option that prevents the foreground service from connecting unless a VPN is active. This isn't fool-proof, especially if you use multiple VPN's, but it could prevent/reduce any DNS requests until the device is ready. In addition to providing a CA certificate for authentication as in https://github.com/binwiederhier/ntfy/issues/215, this would reduce your device from making unnecessary outgoing connections.
Author
Owner

@MuratovAS commented on GitHub (May 13, 2022):

I have not met such a function in other applications. I think she is excessive.
If you want your DNS provider does not see requests when the VPN disconnected, use the firewall.
It allows you to configure the application only to work through VPN.
https://f-droid.org/en/packages/dev.ukanth.ufirewall/

<!-- gh-comment-id:1125751614 --> @MuratovAS commented on GitHub (May 13, 2022): I have not met such a function in other applications. I think she is excessive. If you want your DNS provider does not see requests when the VPN disconnected, use the firewall. It allows you to configure the application only to work through VPN. https://f-droid.org/en/packages/dev.ukanth.ufirewall/
Author
Owner

@dcousens commented on GitHub (May 13, 2022):

@MuratovAS you're probably right, this may just be a manifestation of my frustration at Android's VPN support [when not rooted].

<!-- gh-comment-id:1125819727 --> @dcousens commented on GitHub (May 13, 2022): @MuratovAS you're probably right, this may just be a manifestation of my frustration at Android's VPN support [when not rooted].
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#193
No description provided.