Openwrt 下,使能 LAN 内设备访问 WAN 口公网地址的端口映射

发表于 2022-05-01   |   分类于 Openwrt   |   访问: 3,962 次

22.03 以后

直接安装 kmod-nft-bridge 即可:

opkg update && opkg install kmod-nft-bridge

无需另外设置了。

22.03 以前

需要安装一个 br-netfilter

opkg update && opkg install kmod-br-netfilter

并且设置 /etc/sysctl.conf

net.bridge.bridge-nf-call-arptables=1
net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-ip6tables=1

详见:https://openwrt.org/docs/guide-user/firewall/fw3_configurations/bridgehttps://ebtables.netfilter.org/br_fw_ia/br_fw_ia.html

仅有 1 条评论


  1. 排除列表应该有一个反选按钮全选按钮

    shimiko现在是排除规则。
    可以写一个勾选规则吗!
    就是只有被勾选的可以检测到root
    其他全部默认禁止。
    新安装的app也全部默认禁止获取到root

    排除列表应该有一个反选按钮全选按钮  May 13th, 2022 at 04:23 am回复

发表新评论

© 2024 Powered by Typecho & Theme Quark
粤ICP备17055048号