兰溪在线|lanxi.online|兰溪新闻|兰溪在线|兰溪论坛|兰溪信息|兰溪网|兰西网

 找回密码
 立即注册

微信登录

微信扫一扫,快速登录

搜索
热搜: 活动 交友 discuz

社区广播台

查看: 331|回复: 0

自己用的软路由防火墙策略

[复制链接]

508

主题

508

帖子

1526

积分

金牌会员

Rank: 6Rank: 6

积分
1526
发表于 2019-4-12 10:36:05 | 显示全部楼层 |阅读模式
# local netword 192.168.1.0/24
# mikrote 2.9.26
# :277370403
/ ip firewall filter
add chain=input connection-state=established action=accept \
comment="Established connections" disabled=no
add chain=input connection-state=related action=accept comment="Related \
connections" disabled=no
add chain=input connection-state=invalid action=drop comment="Drop invalid \
connections" disabled=no
add chain=input action=jump jump-target=viruses comment="!!!Viruse \
detection!!!" disabled=no
add chain=input protocol=udp action=accept comment="UDP protocol" disabled=no
add chain=input protocol=icmp action=accept comment="ICMP protocol" \
disabled=no
add chain=input src-address=192.168.1.0/24 action=accept comment="From local \
netword 192.168.1.0/24" disabled=no
add chain=input protocol=tcp dst-port=1723 action=accept comment="Allow PPTP" \
disabled=no
add chain=input protocol=gre action=accept comment="" disabled=no
add chain=input protocol=tcp dst-port=21 action=accept comment="Allow \
FTP,SSH,TELNET,WEB,WINBOX to router" disabled=no
add chain=input protocol=tcp dst-port=22 action=accept comment="" disabled=no
add chain=input protocol=tcp dst-port=23 action=accept comment="" disabled=no
add chain=input protocol=tcp dst-port=80 action=accept comment="" disabled=no
add chain=input protocol=tcp dst-port=8291 action=accept comment="" \
disabled=no
add chain=input protocol=tcp dst-port=9998 action=accept comment="Allow \
digital video recorder TCP:9998 UDP:9998" disabled=no
add chain=input protocol=udp dst-port=9998 action=accept comment="" \
disabled=no
add chain=input action=drop comment="Drop rything else" disabled=no
add chain=forward connection-state=established action=accept \
comment="Established connections" disabled=no
add chain=forward connection-state=related action=accept comment="Related \
connections" disabled=no
ad
1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

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