helloworld icon indicating copy to clipboard operation
helloworld copied to clipboard

最新openwrt已默认使用firewall4 nftables了,有计划更新兼容版本吗?

Open bibugo opened this issue 2 years ago • 9 comments

bibugo avatar Apr 13 '22 03:04 bibugo

安装 iptables-nft 即可。

1715173329 avatar Apr 14 '22 16:04 1715173329

试试master,有点快

hcym avatar Jun 08 '22 15:06 hcym

试试master,有点快

你用上了?

chobitsos avatar Jun 09 '22 11:06 chobitsos

基于 openwrt 22.03 编译安装后,会在防火墙界面中提示:

检测到旧版规则

系统上存在旧版 iptables 规则。 不鼓励混合使用 iptables 和 nftables 规则,这可能会导致流量过滤不完整。

vndroid avatar Sep 12 '22 18:09 vndroid

一直在用,2203肯定正常,master有点风险,主要是ipv6官方的完整

hcym avatar Sep 13 '22 00:09 hcym

基于 openwrt 22.03 编译安装后,会在防火墙界面中提示:

检测到旧版规则

系统上存在旧版 iptables 规则。 不鼓励混合使用 iptables 和 nftables 规则,这可能会导致流量过滤不完整。

同样的问题,目前也是在22.03稳定版,并且目前passwall在这个22.03稳定版完全失效了,所以我想能不能在22.03下编译dnsmasq: v2.88了

wazzx avatar Jan 27 '23 15:01 wazzx

基于 openwrt 22.03 编译安装后,会在防火墙界面中提示:

检测到旧版规则

系统上存在旧版 iptables 规则。 不鼓励混合使用 iptables 和 nftables 规则,这可能会导致流量过滤不完整。

同样的问题,目前也是在22.03稳定版,并且目前passwall在这个22.03稳定版完全失效了,所以我想能不能在22.03下编译dnsmasq: v2.88了

可以在 22.03 中编译 dnsmasq v2.88,不过还要在 .config 中增加 CONFIG_PACKAGE_dnsmasq_full_nftset=y,就可以了

zhengmz avatar Mar 23 '23 04:03 zhengmz

基于 openwrt 22.03 编译安装后,会在防火墙界面中提示:

检测到旧版规则

系统上存在旧版 iptables 规则。 不鼓励混合使用 iptables 和 nftables 规则,这可能会导致流量过滤不完整。

同样的问题,目前也是在22.03稳定版,并且目前passwall在这个22.03稳定版完全失效了,所以我想能不能在22.03下编译dnsmasq: v2.88了

可以在 22.03 中编译 dnsmasq v2.88,不过还要在 .config 中增加 CONFIG_PACKAGE_dnsmasq_full_nftset=y,就可以了

大佬可以出一个教程吗!我这边自己编译过,但是失败了!

wazzx avatar Mar 23 '23 04:03 wazzx

基于 openwrt 22.03 编译安装后,会在防火墙界面中提示:

检测到旧版规则

系统上存在旧版 iptables 规则。 不鼓励混合使用 iptables 和 nftables 规则,这可能会导致流量过滤不完整。

同样的问题,目前也是在22.03稳定版,并且目前passwall在这个22.03稳定版完全失效了,所以我想能不能在22.03下编译dnsmasq: v2.88了

可以在 22.03 中编译 dnsmasq v2.88,不过还要在 .config 中增加 CONFIG_PACKAGE_dnsmasq_full_nftset=y,就可以了

大佬可以出一个教程吗!我这边自己编译过,但是失败了!

使用 Docker 镜像 openwrtorg/sdk:x86-64-22.03.3 来编译,大致过程如下:

  1. 将 lede/package/network/services/dnsmasq 目录映射到容器中 /home/build/custom 目录
  2. 在 feed.conf.default 中,增加 src-link custom /home/build/custom
  3. ./scripts/feeds update -a
  4. ./scripts/feeds install -p custom -f dnsmasq
  5. 重写 .config 文件,里面只含一行:CONFIG_PACKAGE_dnsmasq_full_nftset=y
  6. make package/dnsmasq/compile
  7. (可选)make index

注意,使用 Docker SDK 容器,可以确保环境不受污染,每个包需要独立一个容器来编译

安装后的效果:

1679569478374

zhengmz avatar Mar 23 '23 11:03 zhengmz