I’m using a sys-dns
as described here and it works fine in most situations.
However, in hotel wifis or other wifis which enforce a captive portal I have trouble reaching the captive portal.
[user@sys-dns]~% cat /etc/dnscrypt-proxy/captive-portals.txt
###########################################
# Captive portal test names #
###########################################
## [stuff]
captiveportal.somehotel.org 107.201.79.65
## [stuff]
captive.apple.com 17.253.109.201, 17.253.113.202
## [stuff]
[root@sys-dns]~% ss -tunlp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 127.0.0.1:53 0.0.0.0:* users:(("dnscrypt-proxy",pid=566,fd=7))
tcp LISTEN 0 4096 127.0.0.1:53 0.0.0.0:* users:(("dnscrypt-proxy",pid=566,fd=8))
[root@sys-dns]~% iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
PR-QBS all -- anywhere anywhere
PR-QBS-SERVICES all -- anywhere anywhere
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
MASQUERADE all -- anywhere anywhere
Chain PR-QBS (1 references)
target prot opt source destination
###
## output of iptables stops at this point
## iptables does not finish but hangs
###
At this point of time there is no connectivity because I haven’t authenticated at the captive portal yet. dnscrypt-proxy
is listening for a minute or maybe two, then shuts down.
However, since iptables
does not redirect dns-requests, a web-redirect from http://1.1.1.1 to http://captiveportal.somehotel.org does not finish as the dns-request for captiveportal.somehotel.org is not resolved.
From my point of view this is not a dnscrypt-proxy
issue, it might be an iptables-issue
, but I suspect it to be a qubes-issue
or the way Qubes implement iptables
-rules.
Anyone an idea why iptables
does not DNAT/redirect my dns-requests at that point of time?