Results 1 to 6 of 6

Thread: Windows Firewall Port Ranges?

  1. #1
    Rschraeger Guest

    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?

  2. #2
    David Guest
    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.

  3. #3
    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.

  4. #4
    Join Date
    Jul 2011
    Posts
    1

    Re: Windows Firewall Port Ranges?

    How would i close the same range opened?

  5. #5
    Join Date
    Dec 2007
    Posts
    2,291

    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.

  6. #6
    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,725,649.52748 seconds with 17 queries