
THE HANDY DANDY ANALOGX PORTBLOCKER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Are you concerned about someone potentially accessing data on your machine
without your knowledge?  Do you run a server, and want it only to be available
to the internal network, and not the Internet?  If unauthorized access to your
computer is a concern that you have, then AnalogX PortBlocker is for you!

The traditional method of blocking access to a computer is through what's
referred to as a 'Firewall'; which is really nothing more than a program that
filters all of your packets, and only allows those on a limited number of ports
through.  Historically Firewalls have been both limiting and difficult to
configure, requiring modification any time you start using a program that could
potentially receive requests on a new port; that's where PortBlocker comes in.
PortBlocker is not a Firewall, what it is geared to do is to stop a server or
application from making itself available to other machines on the internet; so
it's almost similar to the reverse of a Firewall, in that you tell PortBlocker
what to BLOCK instead of what to ALLOW.  The end result is that it's much
easier to configure, and rarely needs to be modified once you start running it;
as a matter of fact, it comes already configured blocking the most common
server ports so you probably don't even need to do a thing!

Operation is very simple, just connect to the Internet and then run PortBlocker;
it automatically detects which interface is the once used for the Internet, and
blocks the configured ports.  If for some reason it cannot block a port, it
automatically opens up a log window showing exactly what couldn't be started,
and why.  It's important to note that you must run PortBlock only AFTER you
have connected to the Internet, otherwise it will be unable to properly detect
which interface to block, and will not work.  Normally, the PortBlock icon,
which appears on the system tray (normally in the lower right of the screen),
will be yellow with green 'B' in the center, which indicates it started up and
is running correctly.  If it is unable to start for some reason, then the 'B'
will be red, and a log window will automatically be opened listing the error
encountered.

Configuration is very simple, just right-click on the AnalogX PortBlocker icon
on the system tray, and select 'Configure'; this will bring up the port blocking
configuration dialog.  From here, you can add, edit, and delete current port
blocking; it also lists all of the port blocks configured and their respective
settings.  There are four different setting for each blocking, but don't worry,
they're all really easy to understand!  The first is the actual port number
that you want to block; this value can be found usually in the docs for the
program you would like to block (for example, FTP is port 21, POP3 is port
110).  Next is the protocol, which can be either TCP or UDP; TCP is by far the
most common, so unless you find docs that stat otherwise, it's usually safe to
assume that it's the one to use.  Following protocol is the alert setting, which
specifies what the program should do when someone attempts to access one of the
ports you've set as blocked; if set to 'None', the program will still block the
request, but will not notify you of the attempt.  If it's set to 'Dialog', the
program will automatically open up the log window to display the offending
access attempt.  Finally, you can specify whether unauthorized access attempts
should be logged or not; in most cases you'll want to log these attempts, just
in case.  All logged entries are stored in a file called pblock.log, which will
be located in the same directory as the executable.  This log file is just
appended onto, so it's important that you remember to periodically check it,
and delete it.

You can also specify which site PortBlocker uses to estabilish your IP address.
Normally this should be a webserver that you KNOW will be up all the time, such
as http://www.yahoo.com/ (the default is http://www.winfiles.com/).

So, are you ready to test it out?  Then connect to the Internet and run the
program!  Next, get your Internet IP address (using either AnalogX NetStat Live
or from the Log window), select 'Run' from the Start Menu, and type this:

telnet x.x.x.x 21

(replace x.x.x.x with your Internet IP address); it should open up the Telnet
window, and the message 'Connection to host lost.' should immediately appear.
The BlockPort log window should also open up and report an attempt to access
port '21', and the IP address (your IP address) that the request came from.
It's important to note that PortBlocker does not actually refuse connections;
instead what it does is accept the request, but immediately close the
connection.  This helps to ensure the nothing opens up this port later on, and
also helps in getting the IP address of the incoming packet.

There is only 1 port that this technique does not appear to work with, and that
is port 139.  I'm working on trying to identify why this is the case, but my
only guess is that it's because it's used by the OS, and it's doing something
special to grab it.  Fortunately, the technique works to block 137 and 138, so
it shouldn't cause any problems.  By default, the program is configured to
block FTP, SMTP, HTTP, POP3, and NNTP; these are by far the most common, but
others can easily be added by using the steps outlined above.  It is possible
that PortBlocker will not be able to override a program already bound to a
specific port; in this case it will warn you that is was unable to capture the
port.  The easiest way to solve this is just to start the offending program
AFTER you start PortBlocker, which then gives PortBlockers request of this port
higher priority.  You can also only have a maximum of 64 ports blocked at a
time; any more will not work properly, so keep this in mind when choosing which
ports you would like to block.  It also blocks port 6588 (the port used by
AnalogX Proxy), so it makes a perfect companion for it as well!

If you run a port scanner of some sort (such as GRC) on your machine, you may
notice that it will report that the ports are listening that weren't before;
this is because PortBlocker takes control of a port in order to block other
programs from being able to use them.  PortBlocker does NOT allow any data to
be exchanged on any of these ports, it simply logs the IP address of the incoming
request, and then disconnects.

For more info, and some cool music, make sure to check out the website at:

http://www.analogx.com/

