openwrt防火牆支持uci接口配置
配置源碼位於:
openwrt\package\network\config\firewall\files
修改firewall.config文件然后編譯,即可把修改的配置加入新固件;
配置文件位於/etc/config/firewall
1. 允許ssh遠程登錄
config rule option name 'Allow-SSH' option target ACCEPT option src 'wan' option dest_port '22' option proto 'tcp' option family 'ipv4'
2. 允許http 80接口,這樣openwrt的web界面就可以被外界訪問
config rule option name 'Allow-http' option src wan option dest_port 80 option target ACCEPT option proto tcp
