mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-02 03:17:38 +03:00
auto-redirect: Let fw4 take precedence over prerouting
This commit is contained in:
parent
9e1969527e
commit
059f5b6aaf
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ func (r *autoRedirect) setupNFTables() error {
|
|||
Name: "prerouting",
|
||||
Table: table,
|
||||
Hooknum: nftables.ChainHookPrerouting,
|
||||
Priority: nftables.ChainPriorityMangle,
|
||||
Priority: nftables.ChainPriorityRef(*nftables.ChainPriorityNATDest + 1),
|
||||
Type: nftables.ChainTypeNAT,
|
||||
})
|
||||
err = r.nftablesCreateExcludeRules(nft, table, chainPreRouting)
|
||||
|
@ -104,7 +104,7 @@ func (r *autoRedirect) setupNFTables() error {
|
|||
Name: "prerouting_udp",
|
||||
Table: table,
|
||||
Hooknum: nftables.ChainHookPrerouting,
|
||||
Priority: nftables.ChainPriorityRef(*nftables.ChainPriorityMangle + 1),
|
||||
Priority: nftables.ChainPriorityRef(*nftables.ChainPriorityNATDest + 2),
|
||||
Type: nftables.ChainTypeFilter,
|
||||
})
|
||||
if r.enableIPv4 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue