RedditPP Mascot

RedditPP

r/vyos • … • u/x7C3

Unable to get container network working

I'm trying to setup a few containers for DNS-related hijinks (DNScrypt-proxy for encrypted outgoing DNS, BIND9 authoritative for split DNS, BIND9 recursive for internal queries), but I'm getting stuck on the first container.

I'd like to avoid enabling host networking for the containers. The container will only work with `allow-host-networks`.

``` container { name dnscrypt-proxy { description "DNS over HTTPS proxy" image "docker.io/klutchell/dnscrypt-proxy:main" port dns-tcp { destination "5053" protocol "tcp" source "5053" } port dns-udp { destination "5053" protocol "udp" source "5053" } network dns-net { address "10.20.30.10" } } network dns-net { description "Network used for DNS containers" prefix "10.20.30.0/24" } } ```

I've added the interface `cni-dns-net` to my `LAN` firewall zone but I'm unable to ping/access `10.20.30.10` and the logs show this:

``` example@example:~$ show container log dnscrypt-proxy ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver "overlay2" from database - delete libpod local files to resolve. May prevent use of images created by other tools [2023-11-20 00:26:17] [NOTICE] dnscrypt-proxy 2.1.5 [2023-11-20 00:26:17] [NOTICE] Network connectivity detected [2023-11-20 00:26:17] [NOTICE] Now listening to 0.0.0.0:5053 [UDP] [2023-11-20 00:26:17] [NOTICE] Now listening to 0.0.0.0:5053 [TCP] [2023-11-20 00:26:17] [NOTICE] Service is not usable yet [2023-11-20 00:26:17] [NOTICE] Resolving server host [download.dnscrypt.info] using bootstrap resolvers over udp [2023-11-20 00:26:21] [NOTICE] Resolving server host [download.dnscrypt.info] using bootstrap resolvers over tcp [2023-11-20 00:26:25] [NOTICE] Bootstrap resolvers didn't respond - Trying with the system resolver as a last resort ```

— 0