[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Port Forwarding on a Cobalt Qube 2 ?



> Can anyone tell me whether its possible to configure
> the Qube2 (using ipfwadm or some such tool) to forward
> all connections to a port on the external interface
> to a port on a machine on the internal network.
>
> eg. external connection -> 1.2.3.4:6000
>     forwarded to 192.168.0.10:4000 on the
>     internal network.

I can't give you the whole story since I haven't fully figured it out
yet. But "dr. mikey" did and posted a lot of stuff on how to do it with
a small utility known as "portfwd".

Search the archives for:

* portfwd
* port forwarding

and you should be OK... he posted a great message within the last month
on how to do it and where the previous posts were found. Check around
22/Feb; I just saw it in my archives. Full text copied below, but there
were more messages near there so go check.

--
Rodolfo J. Paiz
rpaiz@xxxxxxxxxxxxxx <mailto:rpaiz@xxxxxxxxxxxxxx>

===================

(Copied verbatim from post by Mike Songster.)

Dave Olson wrote:
>
> Can somebody tell me how I can do NAT routing on the Qube?  Is
> there a NAT routing table or something I can modify?  I would like
> to get PCAnywhere working on a Network with this device.  Any
> help would be appreciated.  Thanks.

nat comes standard on the qube (qube2 that is, which is the only one i
have actual experience with, the other qubes i can't say), so to route
packets past the qube to an internal ip you will need to enable some
form of port forwarding.  one possibility (and there are others of
course, tmtowtdi after all) is to install a little utility called
portfwd (http://freshmeat.net/projects/portfwd/).  this program allows
you to open specific ports on the qube and route them to an internal ip
on your lan.  the program can be downloaded from sourceforge
(http://sourceforge.net/project/showfiles.php?group_id=771).  however,
keep in mind that if you are on a qube2, which is mips-based, you will
need to compile the program from the source as the only compiled version
available is for i386 cpu's (like the qube3).

i've posted my experiences (along with some instructions and comments)
with installing this program on a qube2 to this list a couple of times
in the past, and these articles can be obtained from the list archives.
just follow the link in the list footer below and search for "portfwd".
to get you started, here are the two relevant posts i sent:

http://list.cobalt.com/pipermail/cobalt-users/2000-September/020854.html
http://list.cobalt.com/pipermail/cobalt-users/2000-December/027066.html

one thing to note, is that i originally used (and posted on) version
0.10, but the current stable version of portfwd is 0.17 (with 0.18rc0
also out now).  also note that if you need to compile the binary
yourself, you will also need to install a couple of other linux
utilities that are a part of a tools pkg from cobalt (see for example:
ftp://ftp.cobaltnet.com/pub/developer/Kernel/mips/All-Kernel_mips_tools-
1.0.pkg),
however, this particular pkg doesn't seem to install very well, so you
may need to extract the rpm's and manually install them.  this is
covered a bit more in my previous posts.

once you have portfwd compiled and installed, you will need to create a
config file (see the portfwd readme file and my previous posts for exact
instructions).  i believe that the relevant ports you will need to put
in your config file (as listed in
http://www.redhat.com/support/docs/tips/urls/txt/port_numbers) are:

5631/tcp   pcANYWHEREdata
5631/udp   pcANYWHEREdata
5632/tcp   pcANYWHEREstat
5632/udp   pcANYWHEREstat

once you have the config file, start portfwd and you should be able to
use pcanywhere through the qube.

on a final note, you may want to add a line to your /etc/rc.d/rc.local
file to autostart portfwd on reboot.  fwiw, i did write a little init
script for portfwd (along the lines of all the other start/stop scripts
in /etc/rc.d/init.d), which i can send you if you are interested.

hope this helps (and wasn't completely off the topic of your question),

mikey.

--
mike songster                  work1:           www.biosearchtech.com
mikey@xxxxxxxxxxxxxxxxx        work2:  www.chem.umn.edu/orgs/ampepsoc

sometimes it's important to stop and ask yourself:
"how would this look on the police report?"

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users