Solved

Block IP Range

Posted on 2004-09-01
9
634 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:
bbao 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 37

Expert Comment

by:bbao
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 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