WWW.YOUINFO.SITE
标签聚合 R2S

/tag/R2S

linux.do · 2026-04-30 21:39:47+08:00 · tech

发帖后发现格式完全不对,佬们教教我 软路由:R2S,openwrt 24.10.0 内核版本:6.6.73 1、vim /etc/config/firewall 加入以下: config include option enabled 1 option type ‘script’ option path ‘/etc/firewall.user’ option fw4_compatible 1 2、vim /etc/firewall.user 加入以下: #!/bin/sh nft -f - <<‘NFT’ table inet sidestore { chain RAW_PREROUTING { type filter hook prerouting priority raw; policy accept; ip saddr 192.168.2.117 ip daddr 10.7.0.1 ip saddr set 10.7.0.1 ip daddr set 192.168.2.117 notrack; ip saddr 192.168.2.244 ip daddr 10.7.0.1 ip saddr set 10.7.0.1 ip daddr set 192.168.2.244 notrack; } } NFT 我有两台手机需要侧载,所以有两个IP地址。 3、/etc/init.d/firewall restart 重启防火墙。亲测完美。 本人小白,第一次发技术贴,不当之处请多谅解。以上代码在DeepSeek帮助下完成,参考教程出自: 在内网中免 StosVPN 使用 SideStore 1 个帖子 - 1 位参与者 阅读完整话题