weishengzhong

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

 

分类:

技术点:

相关文章:

  • 2021-09-30
  • 2021-07-16
  • 2021-12-05
  • 2021-10-17
猜你喜欢
  • 2022-01-31
  • 2021-12-05
  • 2021-07-10
  • 2022-02-11
  • 2021-12-16
  • 2021-12-05
  • 2021-07-17
相关资源
相似解决方案