sp-codes.de/src/en/services/connectivitycheck/setup.md
Samuel Philipp 51f9a85aa0
All checks were successful
Build and Deploy Website / Build Website (push) Successful in 45s
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s
much more improvements, updated english texts
2024-03-30 03:09:13 +01:00

2.1 KiB

layout title service tags
article.njk Setup Captive Portal Check connectivitycheck
Tutorial
Captive Portal Check

Setup Captive Portal Check

In this article, you will learn how to set up your own captive portal check on different devices.

Android

To change the Captive Portal Check in Android, you need a terminal app or a connection via ADB to a computer.

To use http you can run the following commands with the respective method:

# settings put global captive_portal_use_https 0
# settings put global captive_portal_http_url "http://connectivitycheck.sp-codes.de/generate204"

To use https you can use the following two commands:

# settings put global captive_portal_use_https 1
# settings put global captive_portal_https_url "https://connectivitycheck.sp-codes.de/generate204"

Maybe you have to reboot your phone after updating the settings.

If you are using AFWall+ you need to give access to [1000] Android-System and in some cases [10040] CaptivePortalLogin to make it work.

Ubuntu

In Ubuntu, the file /etc/NetworkManager/NetworkManager.conf must be changed. Add or change the following lines:

[connectivity]
uri=https://connectivitycheck.sp-codes.de/generate204

Restart the network-manager:

sudo service network-manager restart

Fedora

In Fedora, the file /etc/NetworkManager/NetworkManager.conf must be changed. Add or change the following lines:

[connectivity]
uri=https://connectivitycheck.sp-codes.de/generate204

Restart the NetworkManager:

sudo service NetworkManager restart

Firefox

Type about:config in the Firefox address bar and search for captivedetect.canonicalURL and network.connectivity-service. Set the URL values to https://connectivitycheck.sp-codes.de/generate204, the domain values to connectivitycheck.sp-codes.de. That's it.

Sources