port forwarding scripts
--

There are no guarantees that this package will work for you.  I developed it
for my own use.  My scripts make assumptions about your setup.  They are not
generalized.  It is up to you to customize them so that they reflect your
settings.  Do not email me about these scripts unless you've somehow improved
and generalized them.  I do not have time to answer technical support
questions; they will simply be deleted.

My setup involves a machine with two NICs that serves as my nat/firewall.  In
my setup, ppp0 is my "external" NIC that is connected to my ADSL.  eth0
is my "internal" NIC connected to my internal network.

If your setup involves your cable/dsl "modem" being connected to your internal
network's hub or switch, you will have to alter my scripts to reflect your
configuration.

The DESTIP file contains the IP address of the machine that you wish to which
you wish to forward traffic.  If your setup is like mine, this machine is
your dual-booting desktop that's often used for gaming.  This file must be
modified to reflect your configuration

Once the scripts are modified to your liking, add port forward rules by
invoking the appropriate script with a start argument.  When finished, remove
the rules by calling the same script with a stop argument.

If you wish to check the current status of your rules, simply invoke natinfo.

All currently loaded forwarding rules may be cleared by invoking "clearall",
so long as the interface ip has not changed since the invocation of the
forwarding scripts.

To find the appropriate ports that need to be forwarded for an application, I
suggest using your favorite sniffer to check out the protocol.  It may also
be worth contacting the program vendor or running a few apt google searches.

If you have improvements to my scripts, email me.  Please note, I will not
reply to technical support requests, as I do not have the time.

Nicholas Kain <nicholasREMOVE@MEkainNEWB.us>

