celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
2.82k stars 143 forks source link

Honour underlying LinkCapability #226

Open ignoramous opened 3 years ago

ignoramous commented 3 years ago

Underlying networks may themselves come with specific-configuration (for WIFI and CELLULAR transport types at least).

In this case, if underlying network sets a http-proxy, VPN's own http-proxy setting should be set as appropriate but let the user can override it through app's Settings.

Also, VPN needn't be set to METERED or NOT_METERED depending on the underlying active network because Android handles that for free.

See: #225

ignoramous commented 2 years ago

Things to reflect into VPN over from LinkProperties:

  1. Aforementioned http-proxy
  2. nat64-prefix
  3. mtu
  4. dns-servers (fixed by #355)
    • dns-search-domains
ignoramous commented 2 years ago

For nat64-prefix https://github.com/celzero/firestack/commit/6c784b61ab6ead980af68ac856a5359470f60112

ignoramous commented 3 months ago

MTU is done, too: https://github.com/celzero/rethink-app/commit/fa48cde7e70ec69b0a8b171fa79d4a537b7f6075, https://github.com/celzero/rethink-app/commit/75e493ea49de4c7bcd8e92158882614d92f6713d