mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-27 09:40:10 +00:00
Allow DNS incoming requests through UFW
Fixes https://github.com/pivpn/pivpn/issues/1282
This commit is contained in:
parent
0883893a4f
commit
45f0ad5d37
2 changed files with 7 additions and 0 deletions
|
@ -1473,6 +1473,12 @@ askClientDNS(){
|
|||
|
||||
echo "pivpnDNS1=${pivpnDNS1}" >> ${tempsetupVarsFile}
|
||||
echo "pivpnDNS2=${pivpnDNS2}" >> ${tempsetupVarsFile}
|
||||
|
||||
# Allow DNS incomming requests through UFW.
|
||||
if [ "$USING_UFW" -eq 1 ]; then
|
||||
$SUDO ufw insert 1 allow in on "${pivpnDEV}" to any port 53 from "${pivpnNET}/${subnetClass}" >/dev/null
|
||||
fi
|
||||
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue