cna-proxy

command module
v0.0.0-...-2e788f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

CNA Proxy

Simple HTTP proxy for iOS Captive Network Assistant bypass.

Logic

Server handle only /hotspot-*.* URI - it's common URI for Apple devices to check Internet connectivity.

On first HTTP request from Client IP cna-proxy returns Empty HTML -- this response forced iOS to open CNA splash page.

On second HTTP request from same Client IP cna-proxy returns Special HTML with Success body and redirect to http page -- it forced iOS to open redirect URL in Safari!

Usage

  1. Run on some server IP on 80 port in local network (LAN) with clients
  2. Add IP to Captive Portal Walled garden
  3. Resolve IP as captive.apple.com on your local DNS server
  4. Voila - all checks from clients iOS devices will be handled on cna-proxy

Documentation

Overview

Package cna-proxy is stands for bypass Apple Captive Network Assistant (CNA) and open Captive Portal in Safari or other browser.

Simple example:

cna-proxy

By default it runs on default 9998 port and 30 second interval to store clients.

Usage example:

SERVE_ADDR=:80 CACHE_TIMEOUT=60m cna-proxy

Web server handle only GET on "/hotspot-*.*":

* return redirect HTML on first client income to trigger CNA

* on second and other returns empty HTML to pretend about there is open Intenet access

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL