mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 11:20:15 +00:00
fix(install): Add Pi-hole iptables rule
fix #1559 add iptables rule to allow dns requests
This commit is contained in:
parent
8603013fc3
commit
a544a86712
1 changed files with 3 additions and 1 deletions
|
@ -2231,8 +2231,10 @@ get ad blocking on the go?" "${r}" "${c}"; then
|
|||
${SUDO} ufw insert 1 allow in \
|
||||
on "${pivpnDEV}" to any port 53 \
|
||||
from "${pivpnNET}/${subnetClass}" > /dev/null
|
||||
else
|
||||
${SUDO} iptables -I INPUT -i "${IPv4dev}" \
|
||||
-p udp --dport 53 -j ACCEPT -m comment --comment "pihole-DNS-rule"
|
||||
fi
|
||||
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue