Subject: Re: Re: redirect tcp/udp
To: gaspo <gaspolo@gmail.com>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 02/20/2005 16:28:53
In /usr/share/examples/ipf, the mediaone example uses :
# Redirect incoming RealMedia traffic to a specific machine.
rdr ep0 0/0 port 7070 -> 10.1.0.2 port 7070 udp
rdr ep0 0/0 port 7070 -> 10.1.0.2 port 7070 tcp
maybe 0.0.0.0/32 != 0/0
On Sun, Feb 20 2005 - 16:15, gaspo wrote:
> can U help me about command rdr on ipnat?
> i try some command to add on my .conf but noone workng i also restart
> ipnat service but redirect wont work...
> 23.252.146.82 external ip on hme0
> client internal have 192.168.1.10
> i wanna redirect port 412 tcp and 413 udp from 23.252.146.82 to 192.168.1.10
> i use:
> bash-2.05b# cat /etc/ipnat.conf
> map hme0 192.168.0.1/24 -> 0/32
> map hme0 192.168.1.1/24 -> 0/32
> rdr hme0 0.0.0.0/32 port 412 -> 192.168.1.10 port 412 tcp
> rdr hme0 0.0.0.0/32 port 413 -> 192.168.1.10 port 413 udp
>
> is wrong?
>
>
> On Sun, 20 Feb 2005 16:03:56 +0100, Martin Husemann <martin@duskware.de> wrote:
> > On Sun, Feb 20, 2005 at 04:00:34PM +0100, gaspo wrote:
> > > i wanna know how in netbsd i can rediretc tcp /udp connection to other
> > > internal LAn client..
> >
> > You can use a "rdr" rule in /etc/ipnat.conf.
> >
> > Martin
> >
--
,- This mail runs ------.
`--------- NetBSD/i386 -'