GameServerManagers / GameServerManagers/docker-gameserver

Unable to run in 'Bridge' network mode. Only runs in 'Host'.

Open
#63 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
344
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I'm trying to run a Counter Strike Source game server, but I can only connect to the server when running --net=host.
This is a security compromise for the Host.

When I look at the LinuxGSM logs in the container, it shows the following ports are used;
![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/c20bf09d-49ae-48ff-88fa-e34520e81794)

i'm using a bridge network called 'containers' which is 172.20.0.0/16 and this works well.
![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/3e6df3b4-5e69-4ed9-81e1-5d2dbd97ab39)

So, I run the docker container with the following CLI;

```shell
docker run -d \
--name cssserver \
--net=containers \
--ip=172.20.0.10 \
-p 27015:27015 \
-p 27020:27020/udp \
-p 27005:27005/udp \
-v cssserver_data:/data \
--restart unless-stopped \
-e TZ=Europe/London \
gameservermanagers/gameserver:css
```

I have also tried exposing other various ports I've found in other forums showing what ports i should be forwarding for this game to work.
![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/5456d5f5-ce8b-452e-b7f8-362c9db1e23a)

I have my Host Firewall disabled when testing here, too, as to not get in the way. And the client i'm running the Game on is within the same local network as the game server, so no port forwarding required on internet router, etc.

Please help!
Documentation says that ports may vary depending on the server, and takes me to the GitHub repository with the compose files - but all of the compose files use Host mode and therefore no port publishing.

![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/7d6304fd-acca-49b0-91c7-ce7ed47b7534)
![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/cad1c457-97fe-446d-a084-e1a108d3a22d)

There is also talk of future plans to auto generate ports in the examples, but i'm not sure when this is planned.
![image](https://github.com/GameServerManagers/docker-gameserver/assets/78660514/6cae8766-48f5-4a04-951c-dd085d8a5bd7)

Appreciate any help here please - I miss Counter Strike Source and would love to get a docker container running so i can build a Gun Game server for me and my friends.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.