Solved

Block IP Range

Posted on 2004-09-01
9
629 Views
Last Modified: 2013-12-04
Hi, I have windows 2003 Server, Standard Edition. Is there anyway I can block a particular IP range from accessing anything. There is a particular person who keeps coming to all the stuff my server hosts, and causes trouble, I would like to ban him from everything, every port, and every program.
0
Comment
Question by:techiehost
9 Comments
 
LVL 7

Expert Comment

by:msice
ID: 11958504
You can deny the IP address on your router or ISA server if you have one, but if it is a dynamic IP it will not help you.
0
 
LVL 37

Accepted Solution

by:
Bing CISM / CISSP earned 250 total points
ID: 11972524
you can do it, without buying any extra software, just use ROUTE command.

assume your subnet is 192.168.100.0/255.255.255.0, the IPs to be banned is 172.16.16.1-16/255.255.255.0, a reserved IP on your LAN is 192.168.100.250/255.255.255.0 (an valid address but not in use), then run the followings in a command prompt window:

route -p add 197.16.16.0 mask 255.255.255.240 192.168.100.250 metric 1

this command will forward any traffic for 172.16.16.1-16 to a place not existent, which eventually block the IPs at all.

hope it helps,
bbao
0
 
LVL 7

Expert Comment

by:LimeSMJ
ID: 11983300
bbao... good solution but is there a typo in your route command??  shouldn't it be:

route -p add 172.16.16.0 mask 255.255.255.240 192.168.100.250 metric 1
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 11983544
oh, yes, it should be "172.16.16.0". sorry for the typo. :)
0
 
LVL 38

Assisted Solution

by:Rich Rumble
Rich Rumble earned 250 total points
ID: 11993040
Since win2k windows has what they call IPSEC- it's a program the is supposed to help you negoitiate secure communications, but can also deny traffic. And recently been improved, as it suffered from a vital flaw- which was allowing certain source ports through no matter what. Again, that's been remedied http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/deployguide/en-us/dnsbj_ips_dbmy.asp
(2003 by default is set to 3... so only isakmp traffic is exempt from ipsec filters- which will get this person no where http://support.microsoft.com/default.aspx?scid=811832)

on the run line type "secpol.msc" and at the bottom you'll see the IPSEC in a list. here is an article to help you configure it:
http://www.microsoft.com/windows2000/techinfo/planning/security/ipsecsteps.asp#cisfa
http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/windowsxp/home/using/productdoc/en/ipsec_filter-spec_create.asp

2003 ICF should have a way of doing this- they just added the function to XP (with sp2) but I haven't looked at 2003 lately.
-rich
0
 
LVL 38

Expert Comment

by:Rich Rumble
ID: 13968445
I think my answer covers the issue better than the other solutions of adding an asymetric route.
In addition, the author said he'd like to keep him from using programs, with active directory you can limit exe's that users can use. However windows XP or 2003 are the required OS's, meaning 2000
cannot restrict programs from running. Again the users have to be using xp or 2003 for this to work. An alternitive is using ZoneAlarm, it can "ban" programs from running.
-rich
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now