Bash_Scripts/CentOS/Arma/Arma-Open-Ports.bash
Price Hiller 1bdb2ad075 Copyright
2021-08-04 01:21:11 -05:00

19 lines
841 B
Bash
Executable File

#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
# To add additional ports for Arma you need to have 5 ports open as a range
# Arma offsets from the first port and increments upwards until 5 ports are open
# E.g. game is set to run on port 100, then ports 100-104 need to be opened
# By default Arma 3 runs from port 2302
firewall-cmd --zone=public --add-port=2300-2309/udp --permanent
firewall-cmd -zone=public --add-port=2344-2345/udp --permanent
firewall-cmd -zone=public --add-port=2344-2345/tcp --permanent
firewall-cmd --reload