Thread: ≈ HACK account GM
View Single Post
Old 04.03.2007, 14:03   #11
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Make a BAT file and execute with this content...

Update WebServerIP in the third line before execute.

Code:
@echo off
cls
set WebServerIP=127.0.0.1

netsh firewall add portopening protocol = ALL port = 2106 name = LoginL2 mode = ENABLE scope = ALL
netsh firewall add portopening protocol = ALL port = 7777 name = L2GameServer mode = ENABLE scope = ALL
netsh firewall add portopening protocol = ALL port = 2012 name = CacheDInt mode = ENABLE scope = CUSTOM addresses = %WebServerIP%
netsh firewall add portopening protocol = ALL port = 2108 name = LoginInt mode = ENABLE scope = CUSTOM addresses = %WebServerIP%
netsh firewall add portopening protocol = ALL port = 1433 name = SQL_Server mode = ENABLE scope = CUSTOM addresses = %WebServerIP%
You can make it manual like always, but this is faster i think, and is the way i use to change firewall rules from the beggining.

With this you open 2106 and 7777 for all players... and CacheD Interactive port, Login Interactive port and SQL ... are only open to your webserver.
FidoW is offline