免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8317 | 回复: 4
打印 上一主题 下一主题

[vpn] openswan出现We cannot identify ourselves with either end of this connection. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-02 16:43 |只看该作者 |倒序浏览
两台linux机器配置分别为:
eth0 192.168.0.235,eth1 192.168.1.235,gateway 192.168.0.11;
eth0 192.168.2.235,eth1 192.168.1.236,gateway 192.168.2.200。

linux版本为2.6.19,openswan版本为2.4.6,protostack为KLIPS。


ipsec.conf分别设置为:
version 2.0     # conforms to second version of ipsec.conf specification
# basic configuration
config setup
        nat_traversal=yes
        nhelpers=0
        protostack=klips
include no_oe.conf
conn liu
        left=192.168.1.235
        leftsubnet=192.168.0.0/24
        [email=leftid=@serein]leftid=@serein[/email]
        leftnexthop=192.168.0.11
        right=192.168.1.236
        rightsubnet=192.168.2.0/24
        [email=rightid=@sereinliu]rightid=@sereinliu[/email]
        rightnexthop=192.168.2.200
        auto=add

version 2.0     # conforms to second version of ipsec.conf specification
# basic configuration
config setup
        nat_traversal=yes
        nhelpers=0
        protostack=klips
include no_oe.conf

conn liu
        left=192.168.1.236
        leftsubnet=192.168.2.0/24
        [email=leftid=@sereinliu]leftid=@sereinliu[/email]
        leftnexthop=192.168.2.200
        right=192.168.1.235
        rightsubnet=192.168.0.0/24
        [email=rightid=@serein]rightid=@serein[/email]
        rightnexthop=192.168.0.11
        auto=add

ipsec setup start两台机器都是OK的。但是ipsec auto --up liu出错,出错信息如下:
pluto[1827]: "liu": We cannot identify ourselves with either end of this connection.
022 "liu": We cannot identify ourselves with either end of this connection.

找了很长时间,没有发现错在哪儿,各位老大帮忙看看,问题出在什么地方,谢谢!

论坛徽章:
0
2 [报告]
发表于 2009-02-04 17:37 |只看该作者
[email=leftid=@serein]leftid=@serein[/email]

这行改成leftid=@serein试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP