cwbsw

Results 4 comments of cwbsw

@Antorell I think you misunderstand it. If you're using private tracker, rtorrent can get both ipv4 and ipv6 peers list from ipv6 only tracker, and can connect all these peers...

自动配置OpenWrt防火墙,将IPv4流量DNAT到内网地址(端口与公网映射端口一致),并且允许同一端口的IPv6流量。 ``` #!/bin/sh dest_ip="192.168.1.123" dest_ip6="::1111:2222:3333:4444/::ffff:ffff:ffff:ffff" . /usr/share/libubox/jshn.sh json_init json_add_string name natmap json_add_object data json_add_array firewall for file in /var/run/natmap/*.json; do public_port=$(jsonfilter -i $file -e '@.port') bind_port=$(jsonfilter -i $file -e '@.inner_port')...

@ysc3839 这个不会写入配置文件,停掉natmap,重新加载防火墙就没了。在natmap的启动脚本加上停止时重新加载防火墙的命令可自动化。 https://openwrt.org/docs/guide-developer/ubus/service https://github.com/openwrt/firewall4/blob/698a53354fd280aae097efe08803c0c9a10c14c2/root/usr/share/ucode/fw4.uc#L573

> 因为iptables/nftables的流量都是链式通过的,不同系统的基础规则不同,natmap的匹配规则插在链中的哪个位置可能是需要适配的,尤其是当用户还部署了透明代理时。所以我在想将配置放在脚本里可能会比较容易处理一些。内置方式我也再研究研究,当我们归纳出一些很常见的配置后,那时再实现可能适用面会更广一些。谢谢~ 大佬看下我这个OpenWrt的实现怎么样,可以的话可以整合进`/usr/lib/natmap/update.sh`,然后在luci里做个选项。 https://github.com/heiher/natmap/issues/12#issuecomment-2078551805