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

Docker: Traefik usage and player bans. #351

Open
danbka33 opened this issue Apr 14, 2023 · 4 comments
Open

Docker: Traefik usage and player bans. #351

danbka33 opened this issue Apr 14, 2023 · 4 comments

Comments

@danbka33
Copy link

When accessing the factorio server through traefik, all users connect through the internal network created by traefik with the same IP address, for example 172.18.0.2. If you ban a player who is currently on the server, his IP will be banned along with the player himself. In total, we get that all users are banned and cannot log in.

Solution:

  1. Use nginx/caddy for fsm web admin.
  2. Remove server port forwarding (34197) from traefik container, create port forwarding from container with fsm.
@knoxfighter
Copy link
Member

I am confused, factorio uses IP bans by default? I wasn't able to find anything about that on the factorio site or in the forums.

@Mattie112
Copy link
Contributor

Can you not use ProxyProtocol (or something similar) to let traefik use the IP of the user instead of the actual IP? Not sure if that is supported but perhaps worth looking into.

(other 'solution' directly use port mapping to your factorio, not through traefik)

But I must ask: if it is Factorio that handles the banning (and not this web UI) then should you not ask your question there?

@danbka33
Copy link
Author

danbka33 commented Nov 7, 2023

Can you not use ProxyProtocol (or something similar) to let traefik use the IP of the user instead of the actual IP? Not sure if that is supported but perhaps worth looking into.

As far as I know this is not supported.

But I must ask: if it is Factorio that handles the banning (and not this web UI) then should you not ask your question there?

This is an error in the example of docker compose configuration that you provide, that leads to the ban of a player on the local IP.

@danbka33
Copy link
Author

danbka33 commented Nov 7, 2023

I am confused, factorio uses IP bans by default? I wasn't able to find anything about that on the factorio site or in the forums.

This also came as a shock to me, after I banned one player, but then I myself could not get into the server.

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

3 participants