Have a question on command line tips

by admin on July 15, 2010

If you have any question for which you have not found satisfying answer in this blog please post it below in the comments box. You can expect a prompt answer from me. Thanks for visiting the blog.

{ 3 comments… read them below or add one }

Anonymous July 26, 2010 at 7:02 am

How to set TCP/IP filtering for the TCP and UDP ports on a particular NIC Card on a Windows 2000/2003/2008 server? Apparently this can be done using registry setting, however I would like to have some script or commands to do the same without directly calling registry.

Reply

Techblogger July 26, 2010 at 8:33 am

Are you looking only for command line solution?
To enable filtering using GUI check this http://support.microsoft.com/kb/309798

If you want to do it from command prompt only why can't use 'reg' command to edit the registry.. AFAIK there's no other in-built command to configure filtering..I think you already know the 'reg' command but looks like you dont want to use this method or may be this does not work in your problem context..

Otherwise see below example to enable filtering

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v EnableSecurityFilters /t REG_DWORD /d 1 /f

Let me know if this helps..

Reply

Anonymous July 26, 2010 at 9:20 am

Hi,

Thanks for the response. Even I searched for commands to do the filtering, but.., I guess I would have to create reg entries for doing so.

Ideally we have two nics, on one of them we use TCP/IP port filtering to restrict a set of applications to connect to that server over that particular NIC. Since the ports are large in no., I was looking for something which could take out the pain from doing the thing manually.

Reply

Leave a Comment

Previous post:

Next post: