ubuntu下使用openconnect連接vpn
使用openconnect
在ubuntu 中安裝openconnect,可以在軟件中心找到.
在/etc/vpc/目錄下新建vpnc-script 文件
文件內容可以到此處拷貝
http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script
sudo openconnect -u 用戶名 --script=/etc/vpnc/vpnc-script --no-dtls vpn.test.com
輸入密碼後提示
POST https://vpn.test.com/+webvpn+/index.html
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 20
Connected tun0 as 10.22.22.22, using SSL
連接成功!!!