diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72beccc --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# IntelliJ project files +.idea +*.iml \ No newline at end of file diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..54d2930 --- /dev/null +++ b/.htaccess @@ -0,0 +1,7 @@ +RewriteEngine On + +RewriteCond "%{REQUEST_FILENAME}" "(generate)?_?204" +RewriteRule "(generate)?_?204" / [R=204,L] + +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..7aa1d59 --- /dev/null +++ b/index.html @@ -0,0 +1,46 @@ + + + connectivity-check + + + +

connectivity-check

+ +
+ +

Setup Android

+ +If you want to use http: +
# settings put global captive_portal_use_https 0
+
# settings put global captive_portal_http_url "http://connectivitycheck.sp-codes.de/generate204"
+ +If you want to use https: +
# 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. For more information see this.

+

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

+ +
+ +

Setup Ubuntu

+ +Open /etc/NetworkManager/NetworkManager.conf: + +
# sudo nano /etc/NetworkManager/NetworkManager.conf
+ +Add the following lines (or change them to this): + +
+[connectivity]
+uri=https://connectivitycheck.sp-codes.de/generate204
+	
+ +Restart the network-manager: + +
# sudo service network-manager restart
+ +

For more information see this.

+ + + \ No newline at end of file