From owner-freebsd-questions Tue May 28 14:12:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (lennier.tninet.se [195.100.94.105]) by hub.freebsd.org (Postfix) with ESMTP id 52D8737B40B for ; Tue, 28 May 2002 14:11:57 -0700 (PDT) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 871459.620552.1022.1s38341182lennier for ; Tue, 28 May 2002 23:15:52 +0200 Message-ID: <3CF3F29B.65C884A3@cs.umu.se> Date: Tue, 28 May 2002 23:11:55 +0200 From: Paul Everlund X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: ProFTPd, NAT, Win2k, ICS, 192.168., address mismatch Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi everyone! I have a question I hope someone here can answer. The setup is like this: FreeBSD/ProFTPd FreeBSD/IPFW/NAT/PPPoE/ADSL 192.168.0.5 <--- 192.168.0.1/aaa.bbb.ccc.ddd <--- Internet <--- Win2k/ICS Win2k/FTP-klient <--- www.xxx.yyy.zzz/192.168.0.x <--- 192.168.0.218 I do a NAT redirect like this (natd.conf): redirect_port tcp 192.168.0.5:2121 2121 ProFTPd is listening on port 2121, and the client is connecting to aaa.bbb.ccc.ddd:2121. The firewall works for other hosts connecting to my FTP-server. When 192.168.0.218 connects I see following in my ProFTPd log: *.net[www.xxx.yyy.zzz]) - FTP session opened. May 28 19:42:51 freebsd proftpd[4403]: *.homeip.net (*.net[www.xxx.yyy.zzz]) - USER abc: Login successful. May 28 19:42:52 freebsd proftpd[4403]: *.homeip.net (*.net[www.xxx.yyy.zzz]) - Refused PORT 192,168,0,218,12,209 (address mismatch). May 28 19:43:03 freebsd proftpd[4403]: *.homeip.net (*.net[www.xxx.yyy.zzz]) - FTP session closed. One can clearly see that the connecting computers internal IP-address, 192.168.0.218, shows up instead of www.xxx.yyy.zzz, and this results in an error. How can this be solved? Is the solution in my FreeBSD NAT setup, or at the Win2k ICS setup, or maybe in the FTP-client? More info if needed can be provided. Thanks a lot in advance for anyone taking time to write back! Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message