IPTable & Docker: fixing outgoing IP to a dedicated public IP (from host IP to dedicated IP)

I have a server with a set of additional IPs on which I can launch & attach a docker instance.

The easiest way is to use -p option (-p IP:port:port) of docker.

Alternatively, we also manage to use the IPs using a dedicated docker network & a set of iptables PREROUTING/POSTROUTING rules


docker network create --driver bridge --subnet=[login to view URL] --opt "[login to view URL]"="docker1" docker1


/sbin/ip addr add EXTERNAL_IP dev inducido


add route command for the gateway


iptables -t nat -A PREROUTING -d EXTERNAL_IP -j DNAT --to-destination INTERNAL_IP

and several other rules.

Everything works well, except that the outside world sees the host's IP for outgoing traffic.

I need someone expert with network & iptables to fix this, namely every packet going out of the docker instance shall be associated with the related IP.

(Debian 10 server)

Skills: Linux, System Admin, DNS, Network Administration, Docker

See more: image host public adult gallery, ip apea guidance for the design construction and modification of petrol filing stations, write an article suitable for public action in a nation newspaper on the benefits that will derived from government showing inte, write an article suitable for public in a national new paper on the needed to legalized of abortion in ghana, hosting host dedicated server, india first dedicated scientific mission to study the outermost layer and the chromosphere of sun is, docker share files between host and container, docker compose host ip, docker host ip, docker cannot connect to host, docker compose connect to host database, name three public disclosure items you can find on the us house of representatives website., kubernetes the hard way docker, ng serve --public-host, docker nuget no such host is known, docker resolve hostname from host, docker-compose connect to host, ip rights related to the reputation of an organization, docker-compose apache virtual host

About the Employer:
( 69 reviews ) 13710, France

Project ID: #30203012

Awarded to:


I can give it a try. May be I can help you. Thanks!

$30 USD in 7 days
(225 Reviews)