Merge remote-tracking branch 'qubesos/pr/44'

* qubesos/pr/44:
  If there is only 1 DNS server make both DNAT rules point to it
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-01 11:56:18 +02:00
commit aaed44e7d2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -5,6 +5,8 @@ addrule()
FIRSTONE=no
RULE1="-A PR-QBS -d $NS1 -p udp --dport 53 -j DNAT --to $1
-A PR-QBS -d $NS1 -p tcp --dport 53 -j DNAT --to $1"
RULE2="-A PR-QBS -d $NS2 -p udp --dport 53 -j DNAT --to $1
-A PR-QBS -d $NS2 -p tcp --dport 53 -j DNAT --to $1"
else
RULE2="-A PR-QBS -d $NS2 -p udp --dport 53 -j DNAT --to $1
-A PR-QBS -d $NS2 -p tcp --dport 53 -j DNAT --to $1"