This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:vpn:motorizzazione [2017/06/11 17:11] – [openconnect] scipio | tips:vpn:motorizzazione [2019/03/19 15:52] (current) – [configuration] scipio | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Motorizzazione ====== | ====== Motorizzazione ====== | ||
| + | Motorizzazione uses cisco anyconnect VPN, available in linux with openconnect. | ||
| ===== credenziali ===== | ===== credenziali ===== | ||
| Line 19: | Line 20: | ||
| ===== openconnect ===== | ===== openconnect ===== | ||
| + | |||
| + | ==== package ==== | ||
| <code bash> | <code bash> | ||
| sudo apt install openconnect | sudo apt install openconnect | ||
| + | </ | ||
| + | |||
| + | ==== from source ==== | ||
| + | |||
| + | < | ||
| + | sudo apt-get install curl vpnc-scripts build-essential libssl-dev libxml2-dev liblz4-dev gettext | ||
| + | wget ftp:// | ||
| + | tar xzf openconnect-8.02.tar.gz | ||
| + | cd openconnect-8.02 | ||
| + | ./configure --without-gnutls --with-vpnc-script=/ | ||
| + | make | ||
| + | sudo make install-strip | ||
| + | sudo ldconfig / | ||
| + | </ | ||
| + | |||
| + | ==== configuration ==== | ||
| + | |||
| + | test credentials with browser on https:// | ||
| + | |||
| + | get server fingerprint with | ||
| + | < | ||
| + | openconnect --authenticate https:// | ||
| </ | </ | ||
| Line 27: | Line 52: | ||
| user=COMxxx | user=COMxxx | ||
| password=yyy | password=yyy | ||
| - | url=https:// | + | url=https:// |
| servercert=sha256: | servercert=sha256: | ||
| </ | </ | ||
| Line 47: | Line 72: | ||
| [Unit] | [Unit] | ||
| Description=Motorizzazione Cisco anyconnect | Description=Motorizzazione Cisco anyconnect | ||
| - | Wants=network.target | + | After=network.target |
| - | Before=network.target | + | |
| [Service] | [Service] | ||
| - | Type=oneshot | + | #Type=oneshot |
| - | RemainAfterExit=yes | + | #RemainAfterExit=yes |
| + | |||
| + | Type=simple | ||
| + | Restart=always | ||
| + | RestartSec=3 | ||
| EnvironmentFile=/ | EnvironmentFile=/ | ||
| - | ExecStart=/ | + | #ExecStart=/ |
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| </ | </ | ||