File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -128,16 +128,10 @@ def install_firewall_rules():
128128 for (vm_nameserver , dest ) in zip (qubesdb_dns , cycle (dns_servers )):
129129 vm_ns_ = str (vm_nameserver )
130130 dns_ = str (dest )
131- if dest is None or (vm_nameserver == dest and len (qubesdb_dns ) == 0 ):
132- rules += [
133- f"ip{ ip46 } daddr { vm_ns_ } tcp dport 53 reject with icmp{ ip46 } type host-unreachable" ,
134- f"ip{ ip46 } daddr { vm_ns_ } udp dport 53 reject with icmp{ ip46 } type host-unreachable" ,
135- ]
136- else :
137- rules += [
138- f"ip{ ip46 } daddr { vm_ns_ } udp dport 53 dnat to { dns_ } " ,
139- f"ip{ ip46 } daddr { vm_ns_ } tcp dport 53 dnat to { dns_ } " ,
140- ]
131+ rules += [
132+ f"ip{ ip46 } daddr { vm_ns_ } udp dport 53 dnat to { dns_ } " ,
133+ f"ip{ ip46 } daddr { vm_ns_ } tcp dport 53 dnat to { dns_ } " ,
134+ ]
141135 rules += ["}" , "}" ]
142136
143137 # check if new rules are the same as the old ones - if so, don't reload
You can’t perform that action at this time.
0 commit comments