Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Add port range using netsh

Network Sharing , TCP/IP, Internet, Wireless, Exchange, IIS, ISA and Print

Add port range using netsh

Postby chicagotech » Thu Oct 23, 2008 1:19 pm

Thank you for the useful command.

--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com

>
> 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.
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 7066
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Return to Networking

Your Ad Here

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

cron