找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2801|回复: 5

[其它] Routeros 3.22 如何Snat

[复制链接]
发表于 2009-4-12 12:52:11 | 显示全部楼层 |阅读模式

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

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

×
3.22 用 这个方法SNAT失败,该如何修改
chain=srcnat action=src-nat to-addresses=xx.xx.xx.xx to-ports=0-65535

提示
couldn't change nat rule <10.0.0.0/24> - to-ports valid only for tcp/udp
routeros
发表于 2009-4-12 12:58:28 | 显示全部楼层
couldn't change nat rule <10.0.0.0/24> - to-ports valid only for tcp/udp
要按 TCP UDP 分开来
routeros
回复

使用道具 举报

 楼主| 发表于 2009-4-12 13:05:35 | 显示全部楼层
是否把
chain=srcnat action=src-nat to-addresses=xx.xx.xx.xx to-ports=0-65535
     src-address=192.168.1.0/24 out-interface=Wan

改成两条
chain=srcnat action=src-nat to-addresses=xx.xx.xx.xx to-ports=0-65535
     protocol=tcp src-address=192.168.1.0/24 out-interface=Wan
chain=srcnat action=src-nat to-addresses=xx.xx.xx.xx to-ports=0-65535
     protocol=udp src-address=192.168.1.0/24 out-interface=Wan

这样改不报错 但是会不会影响其他 protocol 使用?
routeros
回复

使用道具 举报

发表于 2009-4-12 14:13:06 | 显示全部楼层
不要指定协议和端口
routeros
回复

使用道具 举报

发表于 2009-4-12 16:26:06 | 显示全部楼层
瞎扯,那个提示是告诉你指定端口的应用仅仅支持TCP/UDP协议!
routeros
回复

使用道具 举报

发表于 2009-4-12 18:29:48 | 显示全部楼层
呵呵,啥鸟都有
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 09:28 , Processed in 0.066304 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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