Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2002 14:25:49 +0100
From:      Florian Nigsch <>
To:        Pascal Poschenrieder <>,
Subject:   Re: Question about Port Forwarding
Message-ID:  <>
In-Reply-To: <000001c1bc5e$b0c988b0$0100000a@DOCMOD>; from on Sat, Feb 23, 2002 at 12:38:58PM +0100
References:  <000001c1bc5e$b0c988b0$0100000a@DOCMOD>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, Feb 23, 2002 at 12:38:58PM +0100, Pascal Poschenrieder wrote:
> Dear FreeBSD Team!
> I've got an old Computer with FreeBSD as its OS. This Computer is
> connected to the internet. It is a DSL connection.
> The Computer has the function of a router and it works.
> But there is just one problem:
> I wanna to forward every ports to my other computer, which is on
>, but I can't emagine how to do this.
> It is FreeBSD version 4.3. Please help me!!
> THX, Pascal.
---end quoted text---

The first method of which I would think of is using a kernel which
is capable of divert sockets (options IPDIVERT or so) and ipfw
(options IPFIREWALL). You then have to setup a divert rule at
the beginning of your firewall

	ipfw add 100 divert natd ip from any to any via <outside if>

and setup a redirect directive for natd to work. see natd(8) for
the correct syntax, buzt for you it will be something like

	redirect_adress <outside IP>

which would redirect anything destined for <outside IP> to

Hope that helps.



Florian Nigsch <>
PGP key:

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>