Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 22:07:42 +0200 (CEST)
From:      patrick <>
To:        Mike Dewhirst <>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: divert a port to another ip
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 29 Jul 2002, Mike Dewhirst wrote:

> If I want to divert all requests on a certain port to another ip address
> and another port, e.g.
> -->

> I have this rule that works:
> divert 8668 ip from any to any via xl1

you should extend this command with

-redirect_port tcp x.x.x.x:666 x.x.x.x:22

if you need more, just extend the command again.
you will see the rules back with the ipfw show command next to your 'regular'
divert rule.

check man natd, you can use a config file in order to prevent your command to
become really long.


Patrick Barmentlo    -    Unix System Administrator

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

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