Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:vpn:motorizzazione [2017/06/11 16:59] – [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: | ||
+ | </ | ||
+ | |||
+ | make first connection to accept invalid certificate | ||
+ | <code bash> | ||
+ | . / | ||
+ | openconnect -u $user -b $url | ||
+ | </ | ||
+ | |||
+ | test if resolve with 10.x.x.x | ||
+ | <code bash> | ||
+ | ping www.ilportaledellautomobilista.it | ||
+ | </ | ||
+ | |||
+ | ===== systemd ===== | ||
+ | |||
+ | <file ini / | ||
+ | [Unit] | ||
+ | Description=Motorizzazione Cisco anyconnect | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | # | ||
+ | # | ||
+ | |||
+ | Type=simple | ||
+ | Restart=always | ||
+ | RestartSec=3 | ||
+ | |||
+ | EnvironmentFile=/ | ||
+ | # | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
</ | </ |