Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2002 14:25:49 +0100
From:      Florian Nigsch <flo@nigsch.com>
To:        Pascal Poschenrieder <DOCMOD@t-online.de>, freebsd-questions@freebsd.org
Subject:   Re: Question about Port Forwarding
Message-ID:  <20020223142549.E11409@nigsch.com>
In-Reply-To: <000001c1bc5e$b0c988b0$0100000a@DOCMOD>; from DOCMOD@t-online.de 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
> 10.0.0.2, 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 10.0.0.2 <outside IP>

which would redirect anything destined for <outside IP> to
10.0.0.2.

Hope that helps.

flo



-- 


---
Florian Nigsch <flo@nigsch.com>
http://flo.nigsch.com/
PGP key: http://flo.nigsch.com/fnigsch.asc

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20020223142549.E11409>