基于OpenWrt防火墙配置(作为二级路由)
来源:互联网 发布:数据库管理员要求 编辑:程序博客网 时间:2024/06/08 08:05
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
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
0 0
- 基于OpenWrt防火墙配置(作为二级路由)
- openwrt 3g路由,设置防火墙
- 服务器作为防火墙、NAT路由网关、DHCP、DNS最终配置
- 服务器作为防火墙、NAT路由网关、DHCP、DNS最终配置
- openwrt配置wifi桥接上级AP,再作为ap路由(可实现ip透传,例如远距离图像传输)
- OpenWRT 路由配置技巧
- OpenWRT 路由配置技巧
- 二级路由配置
- 如何配置防火墙 - OpenWrt Wiki
- 如何配置防火墙 - OpenWrt Wiki
- 太亚DB-120 WG路由器openwrt设置端口转发(二级路由)
- 一、二级路由的配置
- wayos下二级路由openwrt拔号不上的问题
- [杂碎]二级路由Openwrt的花生壳DDNS设置
- 防火墙的路由配置(内网连接外网)
- OpenWrt 策略路由(简)
- openwrt 防火墙
- openwrt防火墙
- 1月22日--1月31日(剩3195小时)
- C语言:位运算
- Simple Java—Compiler and JVM(一)Java对象运行时的内存结构
- Django微信开发
- Python Closure 闭包
- 基于OpenWrt防火墙配置(作为二级路由)
- 基于直方图的图像增强算法(HE、CLAHE、Retinex)之(一)
- DockerTool在Windows上的配置和运行
- hdu 2137 circumgyrate the string
- 给 spine slot 绑定node
- 有弹性的ListView
- Android-Day2-Property动画
- 304. Range Sum Query 2D - Immutable
- UltraISO