when one sets up a network in docker does the default gateway send packets to the host ? Is it possible to capture these packets in anyway and redirect them via IP tables or the linux IPRoute2 stuff ?
I’m asking this as I am presently playing with the Traefik/Nginx-Proxy container. The host machine hosts my main website, domain.tld, and I would like to have containers made available within docker exposed via subdomains as in sub.domain.tld. I need NginX on the host to split any *.domain.tld traffic to the Nginx-Proxy/Traeffic container while still serving domain.tld from the host. I think I can do this via IP-transparency in NginX but need to confirm this is the case by capturing the packets sent to the default gateway and forwarding them to NginX on the host.