Re: How to close the unnecessary Ports

From: Nick (psstcenter_at_shaw.ca)
Date: 10/25/05


Date: Tue, 25 Oct 2005 04:27:05 GMT


"Imhotep" <Imhotep@nospam.net> wrote in message
news:au2dnVUQZu2F86LeRVn-hg@adelphia.com...
> Nick wrote:
>
> > Hi
> >
> > As there are over 65000 ports in the TCP/IP stack, which ones are the
most
> > necessary ports for a homeuser and how to close the rest of the ports?
My
> > PC is connected to internet via a router and a cable modem. I run ZA
> > firewall and BHODemon 2.0 thanks to the help from Mr.Lipman. Here is a
> > ports link I found online:
> > http://www.iss.net/security_center/advice/Exploits/Ports/default.htm
> >
> > Thanks in advance!
> > Nick
>
> Hum. I assume you are running a hostbased firewall with no server ports
> since you said you are a "homeuser". I am not familiar with any of the
> WinFirewalls but I will assume it is statefull (it really is important to
> know whether it is a statefull or a packet filtering firewall as the
> configurations will be different) However, since most firewalls now-a-days
> are statefull or better your ZA firewall is probably *not* a packet
> filtering firewall (which is good because packet filter firewalls
> suck :-) ).

Yes, I use ZA and you are saying that ZA is a stateful firewall but not a
packet filtering firewall. Are stateful/stateless and packet filtering two
different things? I checked my security+ book regarding this, but all I
could find is the following:
- stateful packet filtering is a filtering technique that records the state
of a connection between an internal computer and an external server and
makes decisions based on the connection as well as the rule base (?).
- stateless packet filtering is a filtering technique that permits or denies
a packet based strictly on the rule base.

>
> Now the next question. Do you have any *other* computers on your home LAN?

I have my computer, my daughter's computer and my laptop. They were all
connected to a 4-port GNet router. The router was connected to a modem
cable. I do not use the router at the moment because all of a sudden it
blocked my connection to the internet and I do not know how to configure it.
Maybe it's broken. I do not have the phone number of the store I bought it
from either. Anyway, right now I have only my computer connected directly to
the modem and ZA firewall as well as BHO Demon 2.0, Symantec Antivirus,
Spybot, and Ad-Aware SE Professional.

> If not then you can simply allow all outgoing (statefull) connections and
> deny all incoming (if you do have more than one home computer please reply
> back and we can talk about that). Now remember that your host based
> firewall is statefull so incoming data (ports) will be allowed to
> communicate with you provided you initialized the connection (started the
> connection). I works like this (Warning very, very basic description
below)
>
> You are at home an open your browser and type the url for www.bbc.com:
>
> Your browser gets an open port in the defined ephemeral (basically client
> ports) range. Let say it is port 25,000 TCP. Next the PC sends a packet
> from your IP and your client port number 25000 going to the IP of
> www.bbc.com port 80 (www server port). Your statefull firewall records
this
> to allow www.bbc.com port 80 to reply back to you on your IP and your port
> 25,000 TCP....
>
> It is actually much more complicated then this there are things like TCP
> three way handshake, negotiation of window sizes, RST, ACK, NACK, etc,
etc,
> etc...
>
> Anyway to summarize you can simply allow all access out of your computer
> going anywhere but deny all incoming (Again, only if you are running a
> statefull firewall and you do not have more than one computer on your home
> network). The reason I ask you about the number of computers on your home
> network is because you *might* want to have a domain or filesharing, etc
> capabilities between your home computers.
>
> There are a couple of things worth mentioning. There is a special address
> (interface) called a "loopback". There are some special things to consider
> here but, I bet the WinFirewall you are using probably does it for
> you....so I would not worry.

127.0.0.1

>
> Again, realize that I generalized a lot here for simplicity sake (and I
hate
> typing)....
>
> Anyway good luck,
> Imhotep

Thanks
Nick



Relevant Pages

  • Re: Another VPN Issue...Say it aint so...
    ... click on "Services and Ports." ... Now how can I configure the firewall within ... but this time disable Firewall and redo remote access ... to make sure I get a good snap-in connection and see what goes on?!? ...
    (microsoft.public.windows.server.sbs)
  • Re: WDSC, VPN, and RPG Editing
    ... this) and so it drops the ethernet connection. ... to do with firewalls or other ports. ... do with the firewall on my router and the ports that are/aren't ... workstation to port 446 on the iSeries server. ...
    (comp.sys.ibm.as400.misc)
  • AdAware, SpyBot S &D, etc. + leave PC connected to Internet
    ... Does it have somehting to dow the Firewall ... with spyware services and adsites, the latter of which can be worse ... What ports are open? ... routers do absolutely zero as far as preventing outbound connection ...
    (comp.security.firewalls)
  • Re: WDSC, VPN, and RPG Editing
    ... to do with firewalls or other ports. ... VPN my connection is great, ... do with the firewall on my router and the ports that are/aren't ... workstation to port 446 on the iSeries server. ...
    (comp.sys.ibm.as400.misc)
  • Re: Packet Filtering on Win 2K server
    ... I agree completely [netscreen, bsd firewall, ipsec] ... server, as it could introduce certain risks. ... > IE should not depend on having ports open. ... > IPsec is a better choiuce for packet filtering, ...
    (microsoft.public.win2000.security)