Jump to content

Script MTA


Recommended Posts

Hi guys.

I'm trying to make the creation of the MTA server more automated, and that created a problem that I can't solve. I am using UFW Firewall, and on the MTA server, it has a specific rule in selecting the port to be released so that players can find the server in the search list in the game. 

The rule is: 


The ASE port is also simple to get:

ASE port = Main server port + 123

So, if you have the main server port set to 22003, then the ASE port will be 22126.

So a simple rule like releasing the server port in a UFW command is easy. But adding one number to another, I didn't understand how to do it. My port release command is 

sudo ufw allow ${ThisService_GamePort}


Can someone help me?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use