/etc/ppp/chap-secrets 添加帐号密码:
# 格式:"帐号名" l2tpd "密码" *
"home1" l2tpd "cjdsabchjvfsbfdv" *
获取加密的密码:
openssl passwd -1 "cjdsabchjvfsbfdv"
添加加密的密码到 /etc/ipsec.d/passwd
home1:$1$Mkt.7qwZ$Q2iJ54NSqNNgqyvb0jP9I1:xauth-psk
重启服务:
service xl2tpd restart
service ipsec restart
/etc/ipsec.secrets 存放了ipsec的连接密钥:
%any %any : PSK "xxxxxxxx"
手机连接vpn时,选择ipsec类型,帐号为home1,密码为cjdsabchjvfsbfdv,密钥为xxxxxxxx
相关文档
暂无
随便看看
畅言模块加载中