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 .
192.168.27.1 is firewall IP and 126.96.36.199 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 188.8.131.52 IP which is docker gateway IP.
Due to this docker gateway IP inside container packets are getting discarded .
Please suggest a way forward.