home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Networking and Internet
Ask a Tech Support Question (free)!

How to set an 'IP range' in the windows Firewall?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2144
Discussions: 200,945, Posts: 2,379,370, Members: 246,307
Old October 24th, 2004, 05:47 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
Red face
How to set an 'IP range' in the windows Firewall?

I think some of you already know about the fault in the Windows Firewall letting everyone see your shared files. Whatever - I don't want to talk about that BUT: In order to stop my windows behaving like that I really need to know how to tell the computer this:

I allow you to use the IP Range from
192.168.1.0/255.255.255.0 to 192.168.1.213/255.255.255.0

There is a field in the Windows Firewall context menu where i can enter this. My Problem is that it doesn't accept stuff like 192.168.1.*

'#' doesn't work either.

This are the only symbols I know to tell the pc to use all endings for * or #. I don't want to start entering this line 213 times.

So How do I enter this there??? How do I express an IP Range for my little Windows to understand me?

If you don't know what I mean goto
SystemSettings -> Firewall -> Exceptions -> "The service for printer and datasharing" -> edit -> and try to change the range. you will see what i'm talking about
__________________
Do you also hear those voices?

Last edited by c6ke : October 24th, 2004 at 05:50 PM.
c6ke is offline   Reply With Quote
Old October 24th, 2004, 06:09 PM     #2 (permalink)
I'm silently judging you
 
ArcticFox's Avatar
 
Join Date: Jan 2003
Location: Lincoln City, OR
Posts: 5,377
Send a message via AIM to ArcticFox Send a message via MSN to ArcticFox Send a message via Yahoo to ArcticFox
Not sure about the Windows firewall, I know ZoneAlarm and I'm assuming Kerio Firewall (forgot the exact name) will let you do stuff like that.
ArcticFox is offline   Reply With Quote
Old October 24th, 2004, 06:29 PM     #3 (permalink)
the *Voice* in your Head
 
PresterJohn's Avatar
 
Join Date: Dec 2001
Location: NY
Posts: 4,520
hmmm...you must really be a glutton for punishment if you want to use the XP firewall.

but to answer your question, yes there is a way to enter an exception range. you need to edit the netfw.inf file in your %windir%\inf folder.

after you've modified the netfw file, open a command prompt and run: netsh firewall reset to force the system to reread its contents.

within the inf file, you must edit the appropriate section, ie. domainprofile or standardprofile depending on whther the machine participates in a domain or workgroup

more info regarding syntax,etc is probably on the MS website if you search.

the netsh firewall command also allows scripted commands to control the firewall, but i am not 100% certain that a subset of a range can be entered w/o having to explicitly list all the ips.
PresterJohn is offline   Reply With Quote
Old October 25th, 2004, 06:15 AM     #4 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
Talking
Oh god no!

oaaah! I hate this.

I don't want to use this firewall as my main firewall (i'm not sooo stupid ). I'm also using anotherone (Mcafee). But I want to keep it activated as then Windows doesn't try to tell me to activate it all the time.

I don't see where to enter ip adresses or even a range in this inf file. I already checked MS site and found nothing. Sorry

Last edited by c6ke : October 25th, 2004 at 06:17 AM.
c6ke is offline   Reply With Quote
Old October 26th, 2004, 02:37 PM     #5 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
Nobody has a better idea? I simply need this one symbol I think

like * is assigned to any 1,2 or 3 digit number and then

192.168.1.*

which is the right symbol? I'm sure * is not!
c6ke is offline   Reply With Quote
Old November 1st, 2004, 05:58 PM     #6 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
.,-:'bump':-,.
c6ke is offline   Reply With Quote
Old November 1st, 2004, 06:03 PM     #7 (permalink)
ska7ing away.....
 
doddsy's Avatar
 
Join Date: Nov 2003
Location: with the cat
Posts: 7,751
Quote:
Originally Posted by c6ke
oaaah! I hate this.

I don't want to use this firewall as my main firewall (i'm not sooo stupid ). I'm also using anotherone (Mcafee). But I want to keep it activated as then Windows doesn't try to tell me to activate it all the time.

I don't see where to enter ip adresses or even a range in this inf file. I already checked MS site and found nothing. Sorry

it seems to me that you just want to stop the windows alerts when you turn off the firewall.

I am now assuming that you have xp SP2, as thats how windows security behaves in SP2

so if you go to control panel and then windows security center.

then click on "change the way windows SC alerts me".

then uncheck the firewall alerts box.
doddsy is offline   Reply With Quote
Old November 5th, 2004, 09:09 AM     #8 (permalink)
Member
 
Join Date: Aug 2003
Location: Germany
Posts: 98
Send a message via ICQ to c6ke
OK anyways. I'll do that now as our LAN now has a debian server with Firewall

That means that windows is useless
c6ke is offline   Reply With Quote
Old November 5th, 2004, 09:54 PM     #9 (permalink)
Ultimate Member
 
800XL's Avatar
 
Join Date: Oct 2001
Location: McMinnville, OR USA
Posts: 1,204
In case someone is looking for an answer to the original question still:

I believe what you are looking for is how to correctly use the network mask. There is very little documentation on how this is done for windows, and less still that is actually good documentation. I'm a little rusty on my subnetting, but I think I got most of this right. Anyone caring to differ, please speak up.

To show a single IP, you would just put it in like: 192.168.1.1

To show a subnet or range, you give the network address and the mask, like: 192.168.1.0/255.255.255.0 or 192.168.1.0/24. This translates to 192.168.1.0 through 255. Ranges get complicated as you narrow it down, but it just follows the rules of subnetting and there are some how to docs on the web that cover that. I think it would basically go something like:

192.168.1.0/255.255.255.128 should mean 0-127
Then add 192.168.1.128/255.255.255.192 for 128-191
That leaves 192.168.1.192/255.255.255.224 for 192-223

If you want closer to 213 you'd have to keep breaking it down I think.

Full line in the custom scope fields would look like:

192.168.1.0/255.255.255.0 this is 0-255

192.168.1.0/255.255.255.128,192.168.1.128/255.255.255.192,192.168.1.192/255.255.255.224 This gets 0-223

Remember no spaces in the line or windows ignores the whole thing.

The basic gist of this is that you want to be careful in selecting IP ranges when grouping machines. Start and end of a range should fall at sums of powers of two, like 128-191, 192-223 or 64-127. This makes it easier to figure out a mask that fits. You notice that you see a lot of these numbers in IP addresses, and its because you can subnet mask them without having to use a binary calculator all the time. Hopefully Microsoft will get the idea and put in an easier syntax for ranges in the future, instead of good fashioned cryptic 10 year old TCPIP standard.
__________________
-800XL
"If you put large tires on a Pinto, it is still a Pinto. " -George Alfs of Intel, comparing the AMD Hammer to Itanium.
800XL is offline   Reply With Quote
Old November 5th, 2004, 09:58 PM     #10 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
Another notation sometimes used is 192.168.1.0/24, this is equivalent to 192.168.1.0/255.255.255.0.
James T is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Who uses a firewall? Bizkitkid2001 Security and Privacy Issues 117 February 15th, 2005 02:42 PM
New Speakers jml90 General Tech Discussion 11 October 14th, 2004 12:20 AM
XP Firewall Jarhed7276 Applications and Operating Systems 10 August 26th, 2004 04:10 AM
How insecure is this? ShawnD1 Networking and Internet 7 May 26th, 2004 03:14 PM
PC to PC networking jaredminot Technical Support 11 November 27th, 2002 11:22 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (166)
The disrespect of Obama by Russian .. (18)
Is It Just Me? (2930)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)


All times are GMT -4. The time now is 07:15 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28