![]() How do I make sure the Docker container is properly seeing the public IP address while connecting to port 25 (and not only when connecting to port 2525).Ĭhain PREROUTING (policy ACCEPT 0 packets, 0 bytes) When connecting to port server:25, the Docker container is seeing the local IP that's provided by docker network: Apr 07 12:45:46 mx postfix/smtpd: lost connection after CONNECT from unknownĪpr 07 12:45:46 mx postfix/smtpd: disconnect from unknown commands=0/0 ![]() When connecting to server:2525 directly, the Docker container is able to see my real IP address ( 1.2.3.4). Iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE I have the following iptables rules: iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 25 -j DNAT -to-destination 172.18.0.1:2525 I have a server running Wireguard (thus needing masquerade) and a container running on port 2525.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |