Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 22:07:42 +0200 (CEST)
From:      patrick <patrick@barmentlo.nl>
To:        Mike Dewhirst <m@devzerog.com>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: divert a port to another ip
Message-ID:  <20020729220304.K88943-100000@gateway.barmentlo.net>
In-Reply-To: <3D45740A.2000704@devzerog.com>

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.
>
> 80.0.0.123:666 --> 192.10.10.5:22

> 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.

grtz
patrick

--
Patrick Barmentlo    -    Unix System Administrator


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020729220304.K88943-100000>