openwrt使用uci命令配置防火墙

2013-12-5 lqy openwrt

uci add firewall rule
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=22
uci commit firewall
/etc/init.d/firewall restart
	

标签: openwrt

发表评论:

Powered by emlog