Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2002 18:55:54 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Firewall Forwarding Syntax
Message-ID:  <20021228185554.GA47131@happy-idiot-talk.infracaninophi>
In-Reply-To: <3.0.5.32.20021228110912.012ed640@mail.sage-one.net>
References:  <3.0.5.32.20021228110912.012ed640@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 28, 2002 at 11:09:12AM -0600, Jack L. Stone wrote:
> I've looked for a good set of working examples of packeting forwarding
> using ipfw, but no luck yet. I'm wondering if the following rule would work
> for sending packets received on the gateway to a machine on the internal
> network (LAN)...???
> 
> # ipfw add fwd tcp from 65.xxx.zzz.yyy to 192.168.0.5 <port#>

Err... you need an IP number and possibly a port number after the
'fwd', which is what the 'next hop' address is set to for packets that
match the rest of the line:

    ipfw add fwd 123.45.67.89 tcp from 65.xxx.zzz.yyy to 192.168.0.5 port

Note that the packet itself isn't rewritten at all, so you will have
to put in place something on the destination machine to accept
packets destined the original address.

	Cheers,

	Matthew

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

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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021228185554.GA47131>