OpenConnect
Contents
| Ubuntu 22.04
Install certbot
|
|
Example how to manual generate and revoke certificate
1 2 3YOUR_DOMAIN=www.ubukubu.ru sudo certbot certonly --manual --preferred-challenges=dns -d ${YOUR_DOMAIN} -d nonexistent.${YOUR_DOMAIN} sudo certbot revoke --cert-path /etc/letsencrypt/live/${YOUR_DOMAIN}/fullchain.pem
Get the cert with key
|
|
Run docker container:
|
|
Enable camouflage and set secret:
|
|
Add user:
|
|
Delete default user test:
|
|
Restart the container:
|
|
Connect to $YOUR_DOMAIN/?$SECRET (echo $YOUR_DOMAIN/?$SECRET) via openconnect client and enjoy
Also add in crontab this line:
|
|
Clients
Cisco AnyConnect Client:
OneConnect:
OpenConnect:
- https://www.infradead.org/openconnect/vpnc-script.html
- https://github.com/dlenski/vpn-slice
- https://gitlab.com/openconnect/openconnect-gui/-/releases
- https://drive.google.com/drive/folders/1KdzHlYODE-QSYL-JSQoM5vubEw55hhRi
- Android
- Android
Using with http injector (Android):
- Install anyconnect
- Install HTTP-injector
- HTTP Injector:
Instruments->Modem->Hotshare->step 1->start Wi-Fi Hitspot->run your vpn (on the phone)->(back to HTTP injector) Start HOTSHARE
Useful link: