Jump to content

Windows firewall exceptions


gemcneill

Recommended Posts

Hello again, another question. How to I setup firewall exceptions for the windows firewall. I figured during the install when it said it would interface with the firewall it would do this automatically, but it does not work. Also I tried running a batch file script with the same commands I used in tcadmin 1 to allow exceptions and remove them once the server was uninstalled, but still nothing. Can anyone help me with this?

 

George

Link to comment
Share on other sites

The Windows firewall integration will work but only if you run an exe directly. If you run it with a batch the .bat will get added to the exceptions instead of the exe. If you enabled windows firewall integration in the server settings you need to restart the monitor for the changes to take effect.

 

These are the commands from v1 with the v2 variables:

After Created Event:

netsh firewall add allowedprogram "%ThisService_Executable%" %ThisService_IpAddress%_%ThisService_GamePort% ENABLE

 

After Deleted Event:

netsh firewall del allowedprogram "%ThisService_Executable%"

 

You can find all available variables here:

http://help.tcadmin.com/Custom_Scripts

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, 54 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