Docker Community Forums

Share and learn in the Docker community.

Firewall UDP traffic reach inside Container via Docker Gateway Instead of Firewall IP

Hi ,
I am facing issue in container , in which application is running and getting UDP traffic from External Firewalls.
Ideally traffic should receive inside the container via Firewall IP But after restarting container , container receives traffic via Docker gateway IP instead of Firewall IP .

Example:
192.168.27.1 is firewall IP and 172.10.0.1 is docker gateway IP .
Now , If container is in running mode and if I start sending data to container , container starts receiving UDP traffic via 192.168.27.1 IP which is firewall IP
But If , we restart the container in between , then container start receiving UDP traffc via 172.10.0.1 IP which is docker gateway IP.

Due to this docker gateway IP inside container packets are getting discarded .

Please suggest a way forward.