Closed kowalcj0 closed 5 years ago
I have mine running on digital ocean as well, but on port 443... Did you use a floating IP ? I needed to change the default route to get mine working with the floating IP. Since you say you're running something on 443 already, that might not be helpful I put it into this gist just in case... https://gist.github.com/ianbashford/0f43b2f7e984fe8e3d80866d1fba0b49
I don't use floating IP.
Dunno if it helps but I also added a SELinux
policy for dns:
sudo semanage port -a -t dns_port_t -p tcp 53
I'm having the same issue on Amazon.
@kowalcj0 Did you change --resolver-address=127.0.0.1:443
Since it's not in watchdog.sh (anymore) ?
@kowalcj0 did you get this during build?
WARNING: Ignoring APKINDEX.b89edf6e.tar.gz: No such file or directory WARNING: Ignoring APKINDEX.737f7e01.tar.gz: No such file or directory
@kowalcj0 I fixed it by removing --net=host
@EncryptTown
re: q1
To what value I should change --resolver-address=127.0.0.1:443
?
re: q2 yup I got it but with slightly different values:
...
+ mv /opt/unbound/etc/unbound/unbound.conf /opt/unbound/etc/unbound/unbound.conf.example
+ apk del --purge make gcc musl-dev git libevent-dev expat-dev shadow autoconf file openssl-dev byacc linux-headers
WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory
...
re: q3
I also removed --net=host
and it didn't work. I'm still getting:
[ERROR] read udp 172.17.0.3:57569->159.1.1.1:43956: i/o timeout
@kowalcj0 Were you ever able to fix this issue? I am running into the same thing.
@kibner I got fed-up with it and I haven't looked into it since June last year.
@kibner I got fed-up with it and I haven't looked into it since June last year.
Oof. Well, I was eventually able to figure it out. I had to specify my host machine's IP address when opening the ports. Both my external networks are bridge networks with static IPs.
dnscrypt-server docker-compose file:
version: "3"
services:
dnscrypt-server:
container_name: dnscrypt-server
image: jedisct1/dnscrypt-server:latest
ports:
- "192.168.7.8:4443:4443/tcp"
- "192.168.7.8:4443:4443/udp"
- "9100:9100/tcp"
volumes:
- './docker-volumes/opt-etc-dnscrypt-server-keys:/opt/encrypted-dns/etc/keys'
environment:
TZ: 'America/Chicago'
restart: unless-stopped
command: ["init", "-N", "dnscrypt-server.example.com", "-E", "192.168.7.8:4443", "-M", "0.0.0.0:9100"]
networks:
default:
external:
name: dnscrypt-server
dnscrypt-proxy docker-compose file:
version: "3"
services:
dnscrypt-proxy:
container_name: dnscrypt-proxy
image: klutchell/dnscrypt-proxy:latest
ports:
- "192.168.7.8:53000:53000/udp"
- "192.168.7.8:53000:53000/tcp"
volumes:
- ./docker-volumes/dnscrypt-proxy.toml:/config/dnscrypt-proxy.toml
environment:
TZ: 'America/Chicago'
restart: unless-stopped
networks:
default:
external:
name: dnscrypt-proxy
Thank you @kibner for looking into this. I'll definitely give it another spin :)
Sorry for a lengthy ticket, but I tried to figure it out for a while now and I haven't made any progress, so prefer to include all useful info.
ps. I've redacted real domain name, IPs & ports.
Below are instructions how I:
Build & start dnscrypt-server
I want the server to run on a port different than
443
because other service is using it. I followed instructions from this answer https://github.com/DNSCrypt/dnscrypt-server-docker/issues/36#issuecomment-297631915 to change it to an arbitrary port43956
Here's the server's
Stamp
:Build & start dnscrypt-proxy
I want proxy to be accessible via port
5353
as pihole is listening on port53
, thus-p 5353:53/udp
.ps. I also tried this Dockerfile https://github.com/kometchtech/docker-build/blob/master/dnscrypt-proxy/Dockerfile but I got the same error.
My
dnscrypt-proxy.toml
looks like this:Problem
The problem is when
dnscrypt-proxy
tries to connect to thednscrypt-server
:Debugging
Funny thing is that when I use netcat to check if that port is reachable from within proxy container, then it works just fine:
I have 2
DNS A
records for domainmy.dns.crypt.server.com
configured on digital ocean:Both domains are reachable from the outside world:
There's nothing in iptables that would block traffic to port
43956
I'd really appreciate if you could help me to fix this. Thanks