安裝L2TP
sudo apt-add-repository ppa:seriy-pr/network-manager-l2tp
sudo apt-get update
sudo apt-get install network-manager-l2tp-gnome
sudo service xl2tpd stop
sudo update-rc.d xl2tpd disable
reboot
創建L2TP連接
重啟后打開設置,找到network-VPN,新建一個VPN,選擇L2TP
將新VPN連接命名為newVPN
將主機名或地址放在Gateway字段中。
將用戶名放在用戶名字段中。
單擊“密碼”字段中的圖標,然后選擇有關如何提供密碼的首選項
單擊IPSec設置...
單擊Enable IPsec tunnel to L2TP hos
在預共享密鑰字段shared secret中輸入共享密鑰
將Gateway ID字段留空。
展開“高級選項”區域
在Phase 1 Algorithms框中輸入“3des-sha1-modp1024”
在Phase 2 Algorithms框中輸入“3des-sha1”
選中“Enforce UDP encapsulation”復選框
查看運行情況
sudo tail -f /var/log/syslog