how to block ports

  • Thread starter Thread starter psk
  • Start date Start date
P

psk

hi,

i have a win2k professional running and would like to know
how to block all ports excepting http/ftp/pop. help/url
regarding the same would be greately appereciated.

thanking you in advance.

psk
 
in message : i have a win2k professional running and would like to know
: how to block all ports excepting http/ftp/pop. help/url
: regarding the same would be greately appereciated.

Are you trying to protect this single workstation or the entire subnet? If
the former, the firewall should be personal, like ZoneAlarm, Norton, McAfee,
etc. or host-based IDS, like BlackICE for PC Protection. You could also use
IP Sec but not if you're already behind a network firewall.

ZoneAlarm
http://www.zonelabs.com/store/content/home.jsp

McAfee
http://us.mcafee.com/root/package.asp?pkgid=144&cid=10353

BlackICE
http://www.digitalriver.com/dr/v2/e...id=26412&CID=0&DSP=&CUR=840&PGRP=0&CACHE_ID=0

Hardening Windows 2000 including IP Sec
http://www.systemexperts.com/tutors/HardenW2K101.pdf

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Online Support for IT Professionals -
http://support.microsoft.com/servicedesks/technet/default.asp?fr=0&sd=tech
How-to: Windows 2000 DNS:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308201
FAQ W2K/2K3 DNS:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;291382
 
Try downloading and installing a free personal firewall such as Zone Alarm which is
probably the easist to use. A default installation will block all uninitiated inbound
traffic and it will ask you when an application on your computer wants to access the
internet while in leaning mode which I would shut off after a couple of days or it
will drive you nuts. Of course you want to let your web browser, mail, news, and dns
[port 53 udp] to access the internet. After you configure it an occasionally after
that go to a free self scan site such as http://scan.sygate.com/ to make sure your
firewall is blocking unauthorized inbound traffic. -- Steve

http://www.snapfiles.com/Freeware/security/fwfirewall.html
http://www.microsoft.com/athome/security/protect/firewall.mspx
 
i agree a firewall is the best option in almost all cases, however, if for any reason you cannot use a firewall you can also 'Filter' ports, a funtion of a basic firewall, on a network adapter using the advanced configuration options of the local area network connection properties.

This is often usefull in a LAN where you want to close certain ports on certain computers. Some firewalls perform more advanced features as well, depending on which layers at which they operate. Basic firewalls perform just packet filtering based on ports, destination or source ip address, mac address, etc. More advanced firewalls are capable of performing application layer inspection of packets to determine their nature and validity.

http://www.microsoft.com/windows200.../techinfo/reskit/en-us/cnet/cnbc_imp_ftix.asp

http://www.microsoft.com/windows200...techinfo/reskit/en-us/prork/prcc_tcp_zyam.asp

Ian Bagnald
 
Tcp/IP filtering certainly has it's place but the following are some limitations.

-- It can only filter inbound traffic.

-- It is almost useless if you need dns name resolution as for udp IP filtering is
not "stateful" and will not allow the return dns traffic from an internet dns server
that was initiated by your computer. Since the return traffic for dns is on a
randomly assigned above 1024 unprivileged port, it is impractical to try to add
all those ports to the accepted list.

-- It does not block ICMP which means you still can be pinged from the internet and
subject to denial of service attacks.

Another alternative for W2K/XP Pro/W2003 computers is to use an ipsec policy to do
port filtering created with permit and deny rules. Such an ipsec policy can also
restrict traffic to only authorized outbound traffic. Ipsec policies also take effect
almost immediately after being assigned or unassigned, do not require a reboot, and
can be configured via Group Policy. --- Steve

http://www.securityfocus.com/infocus/1559 -- description of ipsec filtering.

InBan said:
i agree a firewall is the best option in almost all cases, however, if for any
reason you cannot use a firewall you can also 'Filter' ports, a funtion of a basic
firewall, on a network adapter using the advanced configuration options of the local
area network connection properties.
This is often usefull in a LAN where you want to close certain ports on certain
computers. Some firewalls perform more advanced features as well, depending on which
layers at which they operate. Basic firewalls perform just packet filtering based on
ports, destination or source ip address, mac address, etc. More advanced firewalls
are capable of performing application layer inspection of packets to determine their
nature and validity.
 
You are quite right. IPSec is an excellent method to not only filter ports but also to ensure data integrity. Used with Kerberos 5 or Certificate Authorities for authentication it can be used to ensure network traffic is authenticated and un-tampered with.

Using TCP/IP filters is often valuable when placing a server in a location, such as a DMZ, where additional protection, after a primary firewall, is required, when the system only requires being able to accept certain types of traffic. However, IPSec Policies can be used for this purpose as well, and do provide a more flexible solution.

Really it boils down to; what are you using your packet filter/firewall for? What type of security solution do you need?

Ian Bagnald
 
Back
Top