基于OpenWrt防火墻配置 - openwrt路由器防火墻配置方法
基于OpenWrt防火墻配置(作為二級(jí)路由)
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
#手動(dòng)更改:高級(jí)設(shè)置-》Dropbear設(shè)置-》接口-》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 頁(yè):openwrt路由器防火墻配置方法
- 第 2 頁(yè):基于OpenWrt防火墻配置
本文導(dǎo)航
非常好我支持^.^
(0) 0%
不好我反對(duì)
(2) 100%
相關(guān)閱讀:
- [電子說(shuō)] 中國(guó)統(tǒng)一威脅管理硬件技術(shù)評(píng)估報(bào)告顯示:華為防火墻唯一8大維度五星評(píng)價(jià), 2023-10-24
- [電子說(shuō)] 環(huán)旭電子推出Pisces企業(yè)級(jí)無(wú)線路由器助力企業(yè)應(yīng)對(duì)高密度數(shù)據(jù)挑戰(zhàn) 2023-10-24
- [電子說(shuō)] 拆機(jī)看看華為路由器的天線與濾波器 2023-10-24
- [電子說(shuō)] 工業(yè)路由器一般都用哪種協(xié)議? 2023-10-24
- [電子說(shuō)] SR-MPLS是什么?SR-MPLS的實(shí)際應(yīng)用 2023-10-23
- [移動(dòng)通信] 如何解決局域網(wǎng)ip地址不夠用問(wèn)題? 2023-10-23
- [電子說(shuō)] CPE一般支持哪些工作模式?與MIFI相比,優(yōu)勢(shì)在哪里? 2023-10-22
- [電子說(shuō)] Ai-WB2模組HTTP客戶端HEAD和GET請(qǐng)求方法 2023-10-21
( 發(fā)表人:李倩 )