基于OpenWrt防火墙配置 - openwrt路由器防火墙配置方法
基于OpenWrt防火墙配置(作为二级路由)
uci show firewall
uci add firewall rule
uci set firewall.@rule[-1].name=LuCI
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=80
uci set firewall.@rule[-1].target=ACCEPT
uci commit
uci add firewall rule
uci set firewall.@rule[-1].name=SSH
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=22
uci set firewall.@rule[-1].target=ACCEPT
uci commit
#手动更改:高级设置-》Dropbear设置-》接口-》wan
uci add firewall rule
uci set firewall.@rule[-1].name=Samba_1
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=445
uci set firewall.@rule[-1].target=ACCEPT
uci add firewall rule
uci set firewall.@rule[-1].name=Samba_2
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=8200
uci set firewall.@rule[-1].target=ACCEPT
uci commit
uci add firewall rule
uci set firewall.@rule[-1].name=nginx
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=99
uci set firewall.@rule[-1].target=ACCEPT
uci commit
uci add firewall rule
uci set firewall.@rule[-1].name=FTP
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=21
uci set firewall.@rule[-1].target=ACCEPT
uci commit
uci add firewall rule
uci set firewall.@rule[-1].name=telnet
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=23
uci set firewall.@rule[-1].target=ACCEPT
uci commit
/etc/init.d/firewall restart
- 第 1 页:openwrt路由器防火墙配置方法
- 第 2 页:基于OpenWrt防火墙配置
本文导航
非常好我支持^.^
(0) 0%
不好我反对
(2) 100%
相关阅读:
- [电子说] 中国统一威胁管理硬件技术评估报告显示:华为防火墙唯一8大维度五星评价, 2023-10-24
- [电子说] 环旭电子推出Pisces企业级无线路由器助力企业应对高密度数据挑战 2023-10-24
- [电子说] 拆机看看华为路由器的天线与滤波器 2023-10-24
- [电子说] 工业路由器一般都用哪种协议? 2023-10-24
- [电子说] SR-MPLS是什么?SR-MPLS的实际应用 2023-10-23
- [移动通信] 如何解决局域网ip地址不够用问题? 2023-10-23
- [电子说] CPE一般支持哪些工作模式?与MIFI相比,优势在哪里? 2023-10-22
- [电子说] Ai-WB2模组HTTP客户端HEAD和GET请求方法 2023-10-21
( 发表人:李倩 )