Compare commits
No commits in common. "3fda4d224fd70e526a2ba7e154cbd1a8e18d7311" and "9bd886a3e043bcaa4c800e40ab0559c8090f8a3f" have entirely different histories.
3fda4d224f
...
9bd886a3e0
@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
|
|
||||||
Description=execute /root/dnsfwd.sh
|
|
||||||
|
|
||||||
After=default.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
|
|
||||||
ExecStart=bash /root/dnsfwd.sh
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
|
|
||||||
WantedBy=default.target
|
|
@ -1,11 +0,0 @@
|
|||||||
!/bin/bash
|
|
||||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
|
||||||
nft add table dnsfwd
|
|
||||||
nft add chain dnsfwd prerouting {type nat hook prerouting priority 0 \; }
|
|
||||||
nft add chain dnsfwd postrouting {type nat hook postrouting priority 0 \; }
|
|
||||||
nft add rule dnsfwd postrouting tcp dport 53 masquerade
|
|
||||||
nft add rule dnsfwd postrouting udp dport 53 masquerade
|
|
||||||
nft add rule dnsfwd prerouting tcp dport 53 masquerade
|
|
||||||
nft add rule dnsfwd prerouting udp dport 53 masquerade
|
|
||||||
nft add rule dnsfwd prerouting ct state established,related accept
|
|
||||||
nft add rule dnsfwd postrouting ct state established,related accept
|
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user