documentation icon indicating copy to clipboard operation
documentation copied to clipboard

How to disable NAT at the docker - so that iproute2 handles packets to the docker network?

Open lootoos opened this issue 3 years ago • 1 comments

vds 1: https://ibb.co/cXFjbq4 vds 2: https://ibb.co/tBWsvkK I configure iproute2 with this script https://pastebin.com/nxgJAMbF , I run the script on vds 2, on vds 1 I drive iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25565 -j DNAT --to 10.228.228.2:25565 iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 10.228.228.2:80 after I try to go to the site, the site enters but the server running in docker does not enter, what could have gone wrong? docker: https://pastebin.com/xwaJpGfs docker: root@debian:/home/debian# docker container lsCONTAINER ID IMAGE - Pastebin.com

How do I forward packets from 10.228.228.2 to the docker network? Forwarding via iproute2 only works for 192.168.0.226/0.0.0.0/127.0.0.1 (virtual machine networks) Is there a way to send packets through iproute2 to the docker network - because the game server is running in it, game server port 25565.

lootoos avatar Dec 21 '22 17:12 lootoos

Please close this (wrong repo and should report on Discord)

PadowYT2 avatar Mar 23 '23 14:03 PadowYT2