Subject: Re: redirect tcp/udp
To: None <port-sparc64@netbsd.org>
From: gaspo <gaspolo@gmail.com>
List: port-sparc64
Date: 02/20/2005 16:15:14
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
>