L2TP over IPSec on Ubuntu
由于Windows自帶的L2TP/IPSec無法與Intel Eval Board建立連接配接, 這個是Intel的bug.
從頭搭建L2TP/IPsec 隧道。
伺服器端配置
準備
環境: Intel Eval Board
系統:sdk 基于openwrt
主要構成軟體: xl2tpd-1.3.1, strongswan, iperf3(可選,測試性能)
配置
- /etc/xl2tpd/xl2tpd.conf
[global]
listen-addr = 192.168.110.1 ;伺服器的wan口靜态ip位址,用于和用戶端靜态ip通信
port = 1701
debug tunnel = yes
[lns default]
ip range = 172.17.16.2-172.17.16.100 ;本機提供的tunnel的位址池
local ip = 172.17.16.1 ;這是本機tunnel的位址
length bit = yes
name = richard
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
assign ip = yes
require chap = yes
require pap = yes
- /etc/ppp/options.xl2tpd
noauth
proxyarp
defaultroute
logfile /var/log/xl2tpd.lo