Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lootoos opened this issue Dec 21, 2022 · 1 comment

Comments

@lootoos
Copy link

lootoos commented Dec 21, 2022

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.

@PadowYT2
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants