Rich Shinnick rich at
Thu Aug 19 21:46:30 PDT 2004

What you are trying to do is possible in two ways:
1. SSH to the box, and tunnel to other internal machines according to the
tunnels you have set up. (See the last email I sent).
2. Port forward connections from the Internet "thru" the BSD to internal
Check these links: 


From: Hakim Singhji [mailto:Hakim.Singhji at] 
Sent: Thursday, July 29, 2004 10:27 AM
To: Hakim Z. Singhji; MatthewSeaman
Cc: Bill Moran; freebsd-questions at
Subject: Re: HOWTO Ping LAN???

Hi Matt,

You say that the only way I will be able to connect to my network is by
This is not what I want to do, I thought I may be able to SSH, Telnet, www,
from the outside to my default gateway and have the gateway pass SSH,
www., or any other request to the machine on the private network by
including the 
"" or something to that affect.

Does NAT Overloading only go one way???

Hakim Z. Singhji
Coordinating Mgr. / Infection Control
hakim.singhji at

>>> Matthew Seaman <m.seaman at> 7/29/2004 5:32:32 AM
On Thu, Jul 29, 2004 at 01:40:02AM -0400, Hakim Z. Singhji wrote:

> Figure 1
> ***************
> * Internet *
> *24.199.1xx.xx*
> ***************
> ~ |
> ~ |
> *************** **************
> * Defaut GW * __ __ *Kids Machine*
> * * * *
> FreeBSD 4.10 * * Mandrake 10*
> *************** **************
> ~ |
> ~ |
> *****************
> *Wrk Station1*
> * *
> *Redhat 9 *
> *****************
> This is a rough diagram of the network... I would like to ssh, ping,
> etc. the machines behind the default gateway directly (without
> tunneling) from the outside the network (at work for example). Is this
> possible and if so how do I config. Keep in mind that my default
> gateway is FreeBSD. I know this may be a complicated project but if you
> could help that would help me greatly. Many thanks to everyone in advance.

I'm afraid that's not going to be possible with your current network
layout. If you want all of your machines to be accessible from the
Internet, then you'll need routable addresses on all of your machines.

I know you've said you don't want to use tunnelling, but
unfortunately, that's the only way you can access a private address
space as you have from outside it. A relatively simple way of doing
that is to ssh into your gateway box, and use the '-L' or '-R'
portforwarding options to create a tunnel to one of the internal
machines, and then ssh or otherwise connect through that tunnel: see

One other point: you're going to have problems if you're using as the IP number on your FreeBSD machine. That's the
*network* address, and shouldn't be applied directly to any specific
machine. If you're running your internal network using
as the address space, then you have 254 addresses (from to to use for client machines, since (network
address) and (broadcast address) are reserved as part of
the networking setup.



Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3055 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list