找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 7254|回复: 8

[其它] ipsec成功,但是有点小问题

[复制链接]
发表于 2010-7-13 22:07:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
ros 3.30
IPSec
成功是成功了,但两边都是dsl,动态IP。
本想给peer和policy里的规则加上comment,可发现窗口里居然没有常见的那个黄色的小标签,用命令行也加不上去。。郁闷~~

ipsec-policies.JPG

大家有什么办法没。

我现在用的这句话改的local和remote IP
  1. /ip ipsec policy set [/ip ipsec policy find priority=0] src-address=$iplocal dst-address=$ipremote sa-src-address=$iplocal sa-dst-address=$ipremote
复制代码
但是,如果以后policy规则多了,用什么属性find啊。。。
routeros
 楼主| 发表于 2010-7-16 16:16:34 | 显示全部楼层
倒。
routeros
回复

使用道具 举报

发表于 2010-7-16 18:40:56 | 显示全部楼层
/ip ipsec policy set comment=
上面的命令可以加入comment啊
routeros
回复

使用道具 举报

 楼主| 发表于 2010-7-20 01:49:13 | 显示全部楼层
  1. [wolf@router_ros_330_wolf] > /ip ipsec policy print
  2. Flags: X - disabled, D - dynamic, I - inactive
  3. 0   src-address=113.224.44.54/32:any dst-address=116.2.32.63/32:any protocol=all
  4.      action=encrypt level=require ipsec-protocols=esp tunnel=no
  5.      sa-src-address=113.224.44.54 sa-dst-address=116.2.32.63 proposal=default
  6.      priority=0
  7. [wolf@router_ros_330_wolf] > /ip ipsec policy set 0 comment="test"
  8. echo: system,info ipsec policy changed by wolf
  9. [wolf@router_ros_330_wolf] > /ip ipsec policy print
  10. Flags: X - disabled, D - dynamic, I - inactive
  11. 0   src-address=113.224.44.54/32:any dst-address=116.2.32.63/32:any protocol=all
  12.      action=encrypt level=require ipsec-protocols=esp tunnel=no
  13.      sa-src-address=113.224.44.54 sa-dst-address=116.2.32.63 proposal=default
  14.      priority=0
  15. [wolf@router_ros_330_wolf] >
复制代码
奇怪,我的怎么不好使。。。
ros 3.30 L6
routeros
回复

使用道具 举报

发表于 2010-7-23 14:35:30 | 显示全部楼层
动态Ip用域名

不过ros的ipsec还有点问题,nat后连接不太正常
http://forum.mikrotik.com/viewtopic.php?f=2&t=33595
This issue still hasn't been resolved, even on 5.0b3.

It looks like the problem is in ipsec policy.

installed sa:
0 E spi=0x1C55FBB src-address=78.38.29.135 dst-address=78.153.66.123

generated policy:
0 D src-address=10.254.254.130/32:any dst-address=78.153.66.123/32:any (10.254.254.130 is the internal ip of the client behind NAT)

so the client properly encrypts the packets and when the RouterOS wants to reply to them, they fall out of ipsec policy and go out via default - public route.

This issue makes L2TP server with NAT-T impossible to use.

Hope it will get fixed soon.
routeros
回复

使用道具 举报

 楼主| 发表于 2010-7-29 21:35:41 | 显示全部楼层
回复 5# mdctmk


    我知道用域名。但是域名不能留在设置里。比如说,对端ip变了,怎么用脚本更换?
routeros
回复

使用道具 举报

发表于 2010-10-9 16:48:48 | 显示全部楼层
ros 的ipsec 有nat在就是不正常。这么长时间了,还没解决
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-9 23:26:20 | 显示全部楼层
上回IPSec把我的路由搞死了。。再也不用IPSec了。。。
routeros
回复

使用道具 举报

发表于 2010-10-9 23:28:54 | 显示全部楼层
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2025-6-14 12:08 , Processed in 0.130144 second(s), 16 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表