Skip to content

Commit 33f80a9

Browse files
author
3np
committed
revert conditional insertion of host-unreachable response
1 parent 7a6e44e commit 33f80a9

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

network/qubes-setup-dnat-to-ns

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)