Subject: Re: mapping ports with ipnat
To: None <muc-lists-netbsd-port-i386@moderators.muc.de>
From: Matthias Winter <ernesto_tequila@uni.de>
List: port-i386
Date: 10/17/2001 23:28:40
hi bernd,

> You need to redirect connects to the _outside_ interface of the
> router. 192.168.x.y is obviously the _inside_ interface (i. e. the one
> the private lan).
>
> For a ppp interface this should then look something like:
>
> rdr ppp0 0/0 port 21 -> 192.168.0.123 port 21
>
> This works fine for me.
>
Well i changed the interface to ppp0 (yes i am connnected to dsl (german
t-dsl)), and i use the rp-pppoe (www.roaringpenguin.com) drivers in the
latest version. But i cannot make a connection. I get "Connection times out"
when i try to connect to the server.
when i try to connect to the ftp, and then do a "ipnat -l" the redirect
session is listed under the "active sessions" like this:
RDR 192.168.0.123 21 <- -> 217.1.2.xxx 21 [217.1.2.xxx 65519]
so i think he accepts the rule... but it doesn't map it correctly though. i
am connecting from the router, that is why there is two times the same ip.
another problem is that he always connects to the netbsd ftpd daemon instead
of using the redirect rule (i can disable ftp in inetd.conf but this doesn't
help me with my redirection problem, and i still get connection times out).
i tried to switch some ports (like setting: rdr ppp0 0/0 port 666 ->
192.168.0.123 port 21) but with the same result.

thanks for any help, i begin having no more ideas :(

greets matthias