Container A connection refused to container B

DST73

Member
Apr 22, 2023
40
0
6
Hi,

my setup:
Container A running Pi-hole
Container B running dnscrypt-proxy (Port 5350) and cloudflared (Port 53) proxy

On container B
Welcome to Ubuntu 23.04 (GNU/Linux 6.2.16-14-pve x86_64) root@dnsproxy:~# ss -lp 'sport = :domain' Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process udp UNCONN 0 0 127.0.0.1:domain 0.0.0.0:* users:(("cloudflared",pid=104,fd=7)) udp UNCONN 0 0 127.0.2.1:domain 0.0.0.0:* users:(("dnscrypt-proxy",pid=109,fd=13),("systemd",pid=1,fd=40)) tcp LISTEN 0 4096 127.0.2.1:domain 0.0.0.0:* users:(("dnscrypt-proxy",pid=109,fd=12),("systemd",pid=1,fd=39)) tcp LISTEN 0 128 127.0.0.1:domain 0.0.0.0:* users:(("cloudflared",pid=104,fd=8)) root@dnsproxy:~# dig dnscrypt.info | grep SERVER ;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP) root@dnsproxy:~# dig +short @127.0.0.1 cloudflare.com AAAA 2606:4700::6810:85e5 2606:4700::6810:84e5 root@dnsproxy:~# dnscrypt-proxy -resolve github.com -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml Resolving [github.com] using 127.0.0.1 port 5350 Resolver : 172.71.249.52 Canonical name: github.com. IPv4 addresses: 140.82.121.3 IPv6 addresses: - Name servers : dns1.p08.nsone.net., dns2.p08.nsone.net., dns3.p08.nsone.net., dns4.p08.nsone.net., ns-1283.awsdns-32.org., ns-1707.awsdns-21.co.uk., ns-421.awsdns-52.com., ns-520.awsdns-01.net. DNSSEC signed : no Mail servers : 5 mail servers found HTTPS alias : - HTTPS info : - Host info : - TXT records : 1dx40j0v3l3cnnhd973dfvvrm6z1bjk5, M

From Container A
root@pihole:~# dig +short @192.168.178.97 cloudflare.com AAAA ;; communications error to 192.168.178.97#53: connection refused ;; communications error to 192.168.178.97#53: connection refused ;; communications error to 192.168.178.97#53: connection refused ;; no servers could be reached root@pihole:~# dig +short @192.168.178.97 -p5350 cloudflare.com AAAA ;; communications error to 192.168.178.97#5350: connection refused ;; communications error to 192.168.178.97#5350: connection refused ;; communications error to 192.168.178.97#5350: connection refused ;; no servers could be reached


Does someone know why I don't get a connection from A to B

Thanks!
 
Last edited:
Hi,
do you have a firewall enabled, possibly interfering with the traffic? Also, are both containers connected to the same bridge/network, are they in the same subnet? Try to ping the other container.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!