找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4491|回复: 0

防火墙配置

[复制链接]
发表于 2009-12-13 02:44:48 | 显示全部楼层 |阅读模式

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

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

×
/ip firewall rule input add connection-state=invalid action=drop \

   comment="Drop invalid connection packets"

/ip firewall rule input add connection-state=established \

   comment="Allow established connections"

/ip firewall rule input add connection-state=related \

   comment="Allow related connections"

/ip firewall rule input add protocol=udp comment="Allow UDP"

/ip firewall rule input add protocol=icmp comment="Allow ICMP Ping"

/ip firewall rule input add src-address=192.168.0.0/24 \

   comment="From my home network"

/ip firewall rule input add action=drop log=yes \

   comment="Log and drop everything else"
配置防火墙:保护你的路由器
(可选)配置DHCP服务散发IP配置到你的家庭网络中去:
/ip pool add name=private ranges=192.168.0.2-192.168.0.254

/ip dhcp-server network add gateway=192.168.0.1 address=192.168.0.0/24 \

   dns-server=195.13.160.52,195.122.1.59 domain="mail.com"

/ip dhcp-server add name=home interface=ether2 lease-time=3h \

   address-pool=private   

/ip dhcp-server enable home
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-3 15:01 , Processed in 0.044552 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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