通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
› DigitalOcean - SSD Cloud Servers
austinchou0126
V2EX  ›  VPS

有人用OpenSwan配置过IPSec的VPN吗?

  •  
  •   austinchou0126 · Dec 27, 2013 · 3202 views
    This topic created in 4711 days ago, the information mentioned may be changed or developed.
    按照https://raymii.org/s/tutorials/IPSEC_L2TP_vpn_with_Ubuntu_12.04.html上面的教程在DO的VPS上配置完成,然后无法连接(服务器无响应),提示

    packet from xx.xx.xx.xx:61330: initial Main Mode message received on xx.xx.xx.xx:500 but no connection has been authorized with policy=PSK

    然后根据官方WiKi上改动了一些,现在是Disconnected by the communication device.查看log发现变成了这样:

    Dec 27 03:11:20 username pluto[2985]: "L2TP-PSK-noNAT"[1] xx.xx.xx.xx #2: STATE_QUICK_R2: IPsec SA established transport mode {ESP=>0x0fa3c77a <0xb00f70e3 xfrm=AES_256-HMAC_SHA1 NATOA=none NATD=xx.xx.xx.xx:33170 DPD=none}
    Dec 27 03:11:41 username pluto[2985]: "L2TP-PSK-NAT"[2] xx.xx.xx.xx #1: received Delete SA(0x0fa3c77a) payload: deleting IPSEC State #2
    Dec 27 03:11:41 username pluto[2985]: "L2TP-PSK-NAT"[2] xx.xx.xx.xx #1: deleting connection "L2TP-PSK-noNAT" instance with peer xx.xx.xx.xx {isakmp=#0/ipsec=#0}

    求指点,感谢
    22 replies  •  1970-01-01 08:00:00 +08:00
    fdb713
    fdb713
    Dec 27, 2013❤️1
    1
    openswan都没啥人维护了。
    用racoon吧。
    yywudi
    yywudi
    Dec 27, 2013❤️1
    2
    我基本上是按照这个教程来的
    http://wiki.frantech.ca/doku.php/ipsec
    dant
    dant
    Dec 27, 2013 via iPhone❤️1
    3
    我用openswan和strongswan从没成功过。
    目前再用racoon
    shierji
    shierji
    Dec 27, 2013❤️1
    4
    我试过很多次strongswan。屡败屡战屡战屡败- -
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013
    5
    @fdb713 DO可以装Racoon么?顺带问一下OpenWRT上面用什么VPN Server好?我看官方推荐的是StrongSwan
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013
    6
    @yywudi 受教了
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013
    7
    @shierji 哈哈,我也是配了两次,全跪
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013
    8
    @yywudi 成功了,我很好奇为什么之前不行,难道是配置文件的事?
    xiaoxuxu
    xiaoxuxu
    Dec 27, 2013
    9
    之前centos配VPN各种奇葩问题。现在把手机root了,shadowsocks搞起了。。。
    yywudi
    yywudi
    Dec 27, 2013
    10
    @austinchou0126 可能是配置文件哪里没填对? 我现在的几台VPS的L2TP都保存了配置,重新装就 apt-get install openswan xl2tpd 然后把相应的配置文件复制修改IP啥的就行
    likuku
    likuku
    Dec 27, 2013
    11
    openswan/ipsec 不复杂啊,两端配置文件一模一样就是了.
    lbright
    lbright
    Dec 27, 2013
    14
    话说l2tp不是基本废了的么?
    Keyes
    Keyes
    Dec 27, 2013
    15
    Debian 7+strongSwan+freeRADIUS with MySQL+DO SFO1 1G
    妥妥的运行中
    早期在用openSwan,不过后来还是觉得问题比较多,就转到strongSwan了
    iOS/Android/Mac用IKEv1 with PSK
    公司Win7用IKEv2 with Cert,非常好用
    shierji
    shierji
    Dec 27, 2013
    16
    @Keyes 求丢一个教程过来……
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013 via iPhone
    17
    @shierji 2L亲测可用
    austinchou0126
    austinchou0126
    OP
    Dec 27, 2013 via iPhone
    18
    @lbright IPSec不敢废吧,巨多企业跨过组网的
    shierji
    shierji
    Dec 27, 2013
    19
    @austinchou0126 l2tp没意义吧。。还是纯的ipsec VPN更有意思一些。。。
    Keyes
    Keyes
    Dec 27, 2013
    20
    strongSwan文档是非常完善的
    http://wiki.strongswan.org/projects/strongswan/wiki/Win7MultipleConfig
    类似这种,wiki上有绝大部分情况下的配置

    至于freeRADIUS注意一下库中的NAS配置和strongSwan-RADIUS中的NAS配置即可
    Keyes
    Keyes
    Dec 27, 2013
    21
    哦对还有freeRADIUS的微软Dictionary,我记得某个发行版默认带的是有问题的
    shierji
    shierji
    Dec 28, 2013
    22
    @Keyes 一直在看wiki一直屡败屡战。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1211 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:48 · PVG 01:48 · LAX 09:48 · JFK 12:48
    ♥ Do have faith in what you're doing.