Container ports not accessible when using VPN Tunnel

Ubuntu 22.04
Docker 26.1.4
OpenVPN Access Server 2.11.1

Running 7 containers. Some publishing ports. Others using --net host.
The host is also running Openvpn Access server (not as a container)

On the local network, all the containers work as expected. Container ports can be accessed from other devices on the LAN.

If I tunnel into the server via VPN from outside the LAN; other applications on the server are accessible. Containers using --net host are accessible. But containers using -p port:port are not accessible.

I can remove a container using -p port:port and restart using --net host and that container becomes visible from the VPN tunnel.

Question: Is this the expected behavior? The bridge network driver doesn’t expose ports to the VPN access server; yet the Host network driver does?

Can I configure docker to use -p and bridge network driver with the VPN access server?

Thanks in anticipation for you help.
Ray

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.