huaxie1988's recent timeline updates
huaxie1988

huaxie1988

V2EX member #245943, joined on 2017-08-01 11:42:33 +08:00
huaxie1988's recent replies
@helixcn2022 原理就是 BRAS 是 nat1,只关注三元组,然后就可以在自己出口路由器主动限制 snat 端口范围不超过你的 BRAS 最大端口数。nftables 的话大概规则就这样
chain srcnat_wan {
meta l4proto tcp ip saddr != 100.64.0.0/10 counter masquerade to :61000-62900 fully-random comment "!fw4: nat_tccpudp"
meta l4proto udp ip saddr != 100.64.0.0/10 counter masquerade to :61000-62900 fully-random comment "!fw4: nat_tccpudp"
meta l4proto icmp ip saddr != 100.64.0.0/10 counter masquerade fully-random comment "!fw4: nat_icmp"
}
命令的话就是
nft add rule inet fw4 srcnat_wan meta nfproto ipv4 ip saddr != 100.64.0.0/10 meta l4proto { tcp, udp } counter masquerade to :61000-62900 fully-random
nft add rule inet fw4 srcnat_wan meta nfproto ipv4 ip saddr != 100.64.0.0/10 meta l4proto icmp counter masquerade fully-random
使用前先取消默认的 nat。
这个可以主动在自己路由器限制 nat 端口范围解决,让端口在自己路由器复用。
@julyclyde lan 是 openwrt 的默认后缀
有的,用 openwrt 的话可以规避会话数问题,原理就是限制端口范围,如果用 firewall4 取消 wan 口 masquerade 并添加如下命令 nft add rule inet fw4 srcnat_wan meta nfproto ipv4 ip saddr != 100.64.0.0/10 meta l4proto { tcp, udp } counter masquerade to :61000-62900
nft add rule inet fw4 srcnat_wan meta nfproto ipv4 ip saddr != 100.64.0.0/10 meta l4proto icmp counter masquerade
好像是 ppp 软件限制。。。最新的取消限制了 https://github.com/ppp-project/ppp/pull/573
一般都是线,水晶头或者面板问题,网线要正规铜网线,超 5 就完全够了,水晶头还有面板网线都要尽可能的少接绕
Jul 21, 2025
Replied to a topic by bzkmsjy › 宽带症候群 › AC+AP 的这个问题怎么从来没人提过?
还有如果你端口用的不多 5 口够用的话可以去 pdd 80 多买个运营商定制一体机 sar205gp-cm 换上。
Jul 21, 2025
Replied to a topic by bzkmsjy › 宽带症候群 › AC+AP 的这个问题怎么从来没人提过?
找客服看有没有新固件
试试限制 dnat 后的端口范围,因为运营商是 nat1 。
试试现在 dnat 后的端口范围
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1480 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 16:39 · PVG 00:39 · LAX 08:39 · JFK 11:39
♥ Do have faith in what you're doing.