Jump to content

how to open ports?


Recommended Posts

Posted

Hi Folks, Question i installed a Rust game server in a container but i can see the server in the game list but i can't acces it and i als dont get a rcon connection. i had the same problem before on a Ubuntu server were i had to open the ports using ufw but how does it work on Unraid?

Posted (edited)

a few questions need to be answered to further assist.

 

1. what network/docker network are you running

-By default unraid enables bridge mode and doesn't set docker correctly(macvlan).

*Either disable bridge mode or set docker network type to ipvlan

 

image.png.14b583e9c715ed6f8bb96510cf7e806d.png

 

image.png.7d800f4db6cf4bc72ba04c0e5e3cad47.png

 

2. Under docker setting is host access to network enabled.

-enable this.

 

3. when running the rust docker is it in bridge mode or custom(interface name) with a custom ip

-I recommend running it as a custom eth0/br0/bond0...

image.thumb.png.78657e3335ac88bbb29fc7e127104a3a.png

 

*Rcon should work at this point at IP address you set.

 

4. are you wanting public Internet access to this server?

Set router port forwards

 

To host a Rust server, you need to forward TCP port 28015 for gameplay. UDP port 28016 may be required for RCON (Remote Console) access

Edited by bmartino1
Posted (edited)

When using the docker system ports are done via the template / environment variables.

 

image.png.0cf057e0325bf7fcefb9279a4ad6e201.png

 

as seen here in this template

 

image.thumb.png.d89ab42fb2475fb53a6a5dcdd2da0340.png

 

This creates the docker run command in docker, this pass the variable -p ####:#### for ports exposure to use the service inside the docker.

 

Unraid doesn't have a firewall like ubuntu ufw.

 

see docker Docs:

https://docs.docker.com/reference/cli/docker/

 

https://docs.docker.com/reference/cli/docker/container/run/

Edited by bmartino1
  • 2 weeks later...
Posted

You are using a docker custom network that you may have created. You need to use unraids custom network and use a ip in your routers DHCP scheme.

 

in the container rust. the docker network type should be connecting to custom eth0

and be assigned a similar ip of 192.168.129.x

 

what is the output of terminal command:

 

docker network ls

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...