Hello, I have created a docker container with velocity I have configured everything correctly. I created GRE tunnel from protected VPS server to my non protected Dedicated server, but when I run just velocity without docker tunneling works fine, when I run it in docker I am not allowed to the server through the ip of protected VPS, I tried to put in ports 0.0.0.0.0:25565:25565, there is no problem here it catches the ip of aders even if I put 1.1.1.1.1 it gives an error so the problem is not in the configuration. I think that docker creates some rules in iptables which do not allow to connect from remote ip addresses, below I have given all configurations and so on, please help. Translated with DeepL.com (free version) service-proxy on docker-compose.yml:
proxy:
image: itzg/bungeecord
container_name: proxy
networks:
servers:
ipv4_address: 172.19.0.2
ports:
- "0.0.0.0:25565:25565"
restart: always
environment:
- MEMORY=6G
- TYPE=CUSTOM
- BUNGEE_JAR_FILE=V311.jar
- TZ=Europe/Berlin
- LANG=C.UTF-8
user: "1000"
volumes:
- "/home/velocity:/server"
stdin_open: true
tty: true
iptables:
Chain DOCKER (2 references)
num target prot opt source destination
1 ACCEPT tcp -- anywhere 172.19.0.4 tcp dpt:8123
2 ACCEPT tcp -- anywhere 172.19.0.4 tcp dpt:8010
3 ACCEPT tcp -- anywhere 172.19.0.6 tcp dpt:mysql
4 ACCEPT tcp -- anywhere 172.19.0.7 tcp dpt:8125
5 ACCEPT tcp -- anywhere 172.19.0.3 tcp dpt:irdmi
6 ACCEPT tcp -- anywhere 172.19.0.2 tcp dpt:25565
7 ACCEPT tcp -- anywhere 172.19.0.4 tcp dpt:teradataordbms
8 ACCEPT tcp -- anywhere 172.19.0.7 tcp dpt:mcreport
9 ACCEPT tcp -- anywhere 172.19.0.5 tcp dpt:8124
10 ACCEPT tcp -- anywhere 172.19.0.5 tcp dpt:8011
11 ACCEPT tcp -- anywhere 172.19.0.5 tcp dpt:vcom-tunnel
I also added to this NAT permission to connect from any ip addresses to port 25565, but that didn’t help.