mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-10-28 21:08:07 +08:00
The iptables path wrote each whitelisted CIDR with its own iptables process. With the mainland China group (about 15,000 CIDRs) a core start spent minutes on this, and every packet of a direct connection walked the list linearly. Load each family into one hash:net set with a single `ipset restore` and match it with one rule at the old position. Without ipset, write the rules with one `iptables-restore --noflush` per family; without that, keep the per-rule commands. Cleanup destroys the sets.