Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Windows Firewall Port Ranges?

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 12-01-2008
Rschraeger
 
Posts: n/a
Windows Firewall Port Ranges?

I have a issue with getting port exceptions from being applied. I have
Symantec Corp. Antivirus and I need to get our XP sp2 clients to communicate
with the Windows 2003 Anti-virus server. I can get the client to see the
server and the server can see the clients. According to Symantec port 2967
is what is needed for thse two to talk. I have that defined in a GP and I
can go into the firewall on the client and confirm that GP pushed it down. I
can not get the clients to update their virus deffinition files. I get a
communication error when I try to update them manualy from the server. I
check all the ports I could and it seems right.

The symantec website said something about using random ports and they
suggest using a 2967* for the port range. Can the windows firewall accept a
range like this? That also list some ranges like TCP 1024-4999 Will the
firewall accept ranges like that or does each port need to be defined
seperatly?

Reply With Quote
  #2  
Old 12-01-2008
David
 
Posts: n/a
You can't add a range, but you can specify each port individually. The
fastest way to do that is a script, like this:

To add a range of ports to Windows Firewall from the Command Line
Click Start, click Run, type cmd, and then click OK.
Type in the following where the range is specified in ( ) and the name of
the firewall entry is in " ".
FOR /L %I IN (29670,1,29679) DO netsh firewall add portopening TCP %I
"Symantec AV"%I
Each port in the range will be added with an "OK" confirmation.
Reply With Quote
  #3  
Old 23-10-2008
Member
 
Join Date: Oct 2008
Posts: 1
The code did not work for me, but this one did:

Code:
for /L %i in (9000,1,9600) do netsh firewall add portopening TCP %i "Port-range %i"
(Change 9000 to your startport and 9600 to your endport, nothing else need to be changed, put in a command window.)

Beware though, it goes very slow, like one port per second.

Last edited by dotpointer : 23-10-2008 at 08:54 PM.
Reply With Quote
  #4  
Old 08-07-2011
Member
 
Join Date: Jul 2011
Posts: 1
Re: Windows Firewall Port Ranges?

How would i close the same range opened?
Reply With Quote
  #5  
Old 09-07-2011
Member
 
Join Date: Dec 2007
Posts: 2,273
Re: Windows Firewall Port Ranges?

Quote:
Originally Posted by sumsum2000 View Post
How would i close the same range opened?
You can easily configure Windows Firewall by using the Windows Security Center by following the below method:
  1. Use an administrator account to log on.
  2. Click Start, click Run, type wscui.cpl, and then click OK.
  3. In Windows Security Center, click Windows Firewall.
  4. On the Exceptions tab, click Add Program.
  5. In the list of programs, click the name of the program that you want to add, and then click OK. If the name of your program is not in the list of programs, click Browse to locate the program, and then click OK. Note If you do not know where the program is located, contact the program vendor to determine the program location.
Reply With Quote
  #6  
Old 28-10-2012
Member
 
Join Date: Oct 2012
Posts: 1
Re: Windows Firewall Port Ranges?

I ran into the problem of not being allowed to specify a range of ports as well. As a workaround I wrote a simple web page to generate the csv string to open up a range of ports. I can't post the URL (I don't have 50 posts) but if you would like to use it go to electricharbour and it's the CSV string generator tool under the tools menu.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Windows Firewall Port Ranges?"
Thread Thread Starter Forum Replies Last Post
Is it possible to get windows firewall open port? Pratim Windows Security 10 24-01-2012 09:43 AM
how to add the port at windows 7 firewall??HELP jcfans Networking & Security 1 23-04-2011 03:03 PM
How to allow TCP port 3389 on Windows Firewall DotNetUser Networking & Security 2 31-07-2009 06:05 PM
Open Port and set IP protocol for Windows Firewall Jamaima Networking & Security 2 20-02-2009 09:52 PM
Windows XP Firewall XP close port WarRen! Windows Security 2 09-02-2009 08:04 PM


All times are GMT +5.5. The time now is 05:56 PM.