找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2828|回复: 6

[其它] 跪求这两条ROS语句的不同

[复制链接]
发表于 2008-1-5 02:08:22 | 显示全部楼层 |阅读模式

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

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

×
请教各位高手下面两个句子的设置有什么不同吗???同样是丢弃非本地连接的规则,他们的却别是什么????

add chain=input src-address=!192.168.1.0/24 action=drop \
    comment="" disabled=no
add chain=input src-address-type=!local action=drop \
    comment="" disabled=yes


小弟在这里感谢各位了!!!!
routeros
发表于 2008-1-5 02:34:29 | 显示全部楼层
一个是IP地址,一个是IP地址的类型,怎么会一样呢?呵呵
routeros
回复

使用道具 举报

发表于 2008-1-5 04:25:38 | 显示全部楼层
能更详细的说明一下吗?
routeros
回复

使用道具 举报

发表于 2008-1-5 08:29:21 | 显示全部楼层
我个人认为,下面那个脚本有更大的通用性 ,可中很多的转移到别的网络中使用
而上面的只能在192.168.1.0/24 的网络使用,如果在192.168.2.0/24    .……或192.168.3.0/24   等网络中使用 就要作适当的修改了

   小弟说的也不知道对不对 ,还望高手指点一二……
routeros
回复

使用道具 举报

发表于 2008-1-5 10:59:40 | 显示全部楼层
unicast - IP addresses used for one point to another point transmission. There is only one sender and one receiver in this case
local - matches addresses assigned to router's interfaces
broadcast - the IP packet is sent from one point to all other points in the IP subnetwork
multicast - this type of IP addressing is responsible for transmission from one or more points to a set of other points

先看看这个再说
routeros
回复

使用道具 举报

 楼主| 发表于 2008-1-5 13:27:12 | 显示全部楼层
问题是我使用上面的脚本内网什么的访问ROS的FTP没有问题!如果使用下面的脚本就需要再设置FTP端口开放的脚本!!!
routeros
回复

使用道具 举报

 楼主| 发表于 2008-1-5 13:46:43 | 显示全部楼层
第二条规则中,local指是不是路由网卡设置的地址所在网络啊!!!
如果是这样,为什么我如果不设置开放FTP服务的端口,用内网的机器登陆ROS的FTP就登陆不上啊!!!

[ 本帖最后由 三叶虫 于 2008-1-5 13:49 编辑 ]
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 07:19 , Processed in 0.154162 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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