Jump to content

Automatic Firewall


AugustoArpex

Recommended Posts

Hello,

 

I'm trying to set up an automatic firewall on my server. Of the type that when a new server activates, it runs a script to release the port using the csf firewall or ufw.

 

But I could not perform the operation. In theory, the shell script should pick up the service port and store it in a variable for use later.

 

Only by putting the variable ${ThisService_GamePort} does not work.

 

Could anyone help?

Link to comment
Share on other sites

I tried doing this procedure but when I put the variable ${ThisService_GamePort} does not work.

 

Maybe I'm giving this error because I'm trying to run it by the system shell itself? Not using the tcadmin panel.

 

And how can I test this command? Would I have to create a new service to see the behavior of the script?

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
  • Who's Online   0 Members, 0 Anonymous, 4 Guests (See full list)

    • There are no registered users currently online
×
×
  • 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