redirect: Only hijack DNS requests from local addresses
This commit is contained in:
parent
35b5747b44
commit
a8ce3838bc
2 changed files with 33 additions and 4 deletions
|
|
@ -101,7 +101,9 @@ func (r *autoRedirect) setupNFTables() error {
|
|||
}
|
||||
r.nftablesCreateUnreachable(nft, table, chainPreRouting)
|
||||
r.nftablesCreateRedirect(nft, table, chainPreRouting)
|
||||
r.nftablesCreateMark(nft, table, chainPreRouting)
|
||||
if r.tunOptions.AutoRedirectMarkMode {
|
||||
r.nftablesCreateMark(nft, table, chainPreRouting)
|
||||
}
|
||||
|
||||
if r.tunOptions.AutoRedirectMarkMode {
|
||||
chainPreRoutingUDP := nft.AddChain(&nftables.Chain{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue