Configuring Firewall Rules And Filters For DayZ
In this guide, we will address how to configure firewall rules & filters in order to set up a DayZ server.
In the case that we want to set up Pterodactyl- we will have to assign them under the Allocation setting, using the "Assign New Allocations" feature. If you are looking to set up Pterodactyl on your server for ease of access you can follow our Pterodactyl Panel Installation Guide.
We will want to assign whatever ports we are using for our DayZ server here, in this case, the default being 2302, 2303, 2304, 2305.
Configuring The Firewall Manager on Ubuntu
Following having assigned our port through the Pterodactyl panel- we can check our current ports allowed through our firewall by utilizing the following command:
We have to assign our new ports- 2302, 2303, 2304, 2305 through UDP & TCP, for our Steam Query we have to include port 27016 on TCP. We can do this by running:
ufw allow 2302/udp ufw allow 2302/tcp ufw allow 2303/udp ufw allow 2303/tcp ufw allow 2304/udp ufw allow 2304/tcp ufw allow 2305/udp ufw allow 2305/tcp ufw allow 27016/tcp
And for our own security- we will set the default to deny incoming traffic by running, prior to running this command be sure to set up port 22 otherwise you will lose access to your VPS or Dedicated Server:
sudo ufw default deny incoming
Configuring the Firewall Manager on Windows
If you are running your server on a Windows-based operating system you will need to configure your server through the Windows Firewall. We can access this by searching for Windows Firewall.
Following this- we have to access both the Inbound & Outbound rules.
From here we have to create the following new rule by:
New Rule > TCP/UDP, Specific Port: 2302 - 2305 > Allow the connection > Domain, Private & Public > Name: DayZ Server
We also have to set up our Steam Query port- 27016.
New Rule > TCP, Specific Port: 27016 > Allow the connection > Domain, Private & Public > Name: Steam Query DayZ Server
Repeat the above step until both your TCP & UDP Rules are set up for Inbound and Outbound rules.
Edge Rules & Filters
Following having set up our ports within our servers ourselves- we have to set them up accordingly in our Filter Manager *(offline as of 5/28/2022- please create a billing ticket and we can assist you in assigning them).
Below is a list of Ports & Protocols needed for the server.
Port Punch 0.0.0.0/0 - Deny All (Port Punch) - Used for security to block all outside communications besides the ports we defined. Filters Port 2302 - TCP - Allow All - Used for communication with our DayZ Server. Port 2302 - UDP - Allow All - Used for communication with our DayZ Server. Port 2303 - TCP - Allow All - Used for communication with our DayZ Server. Port 2303 - UDP - Allow All - Used for communication with our DayZ Server. Port 2304 - TCP - Allow All - Used for communication with our DayZ Server. Port 2304 - UDP - Allow All - Used for communication with our DayZ Server. Port 2305 - TCP - Allow All - Used for communication with our DayZ Server. Port 2305 - UDP - Allow All - Used for communication with our DayZ Server. Port 27016 - TCP - Allow All - Used for communication with Steam Query. Firewall Port 2302 - TCP Symmetric & UDP Port 2303 - TCP Symmetric & UDP Port 2304 - TCP Symmetric & UDP Port 2305 - TCP Symmetric & UDP Port 27016 - Source Engine & RakNet
After setting up your filters, firewalls & rules everything should be up and running for your new DayZ Server!