add dns
This commit is contained in:
10
scripts/dns.nft
Normal file
10
scripts/dns.nft
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
table ip nat {
|
||||||
|
chain prerouting {
|
||||||
|
type nat hook prerouting priority 15; policy accept;
|
||||||
|
udp dport 53 dnat to 1.1.1.1
|
||||||
|
}
|
||||||
|
chain postrouting {
|
||||||
|
type nat hook postrouting priority 15; policy accept;
|
||||||
|
masquerade
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user