Ftp behind firewall/nat

eric wyzerski ericwyzerski at hotmail.com
Mon Jan 31 14:40:03 PST 2005


Thanks for the hint but it does'nt work :/. However, now im using passive 
ftp and the problem is that when I try to login with the client and do the 
"dir" command, when the ftp server send his IP, it send and the 
client try to connect to! How can I change this Ip for the ip of me 
routeur via ipnat command?

>From: "Thomas Foster" <tbonius at comcast.net>
>To: "eric wyzerski" 
><ericwyzerski at hotmail.com>,<freebsd-questions at freebsd.org>
>Subject: Re: Ftp behind firewall/nat
>Date: Mon, 31 Jan 2005 14:24:15 -0800
>You also might want to pass and redirect tcp port 20 (ftp data).. this 
>seems to work very well for me..  also.. what FTP client are you using?  
>You might want to use PASV FTP options
>----- Original Message ----- From: "eric wyzerski" 
><ericwyzerski at hotmail.com>
>To: <freebsd-questions at freebsd.org>
>Sent: Monday, January 31, 2005 12:11 PM
>Subject: Ftp behind firewall/nat
>>For a whole day I tried to make an ftp who is behind the firewall to work 
>>but Im not able. My ipf rules are:
>>pass in quick from any to any
>>pass out quick from any to any
>>So it is not a ipf problem. My ipnat rules are:
>>map rl0 -> 0/32
>>rdr rl0 X.X.X.X/32 port 21 -> port 21 tcp
>>where X.X.X.X is my external IP, rl0 my external interface and 
>>the ftp server. I am able to login and when I do the dir command its 
>>freeze. I have do tcpdump and I see the SYN packet goes but its never get 
>>answer. I really need help/advise
>>Thank you and please CC me the answer because im not in the list
>>Take advantage of powerful junk e-mail filters built on patented 
>>Microsoft® SmartScreen Technology. 
>>Start enjoying all the benefits of MSN® Premium right now and get the 
>>first two months FREE*.
>>freebsd-questions at freebsd.org mailing list
>>To unsubscribe, send any mail to 
>>"freebsd-questions-unsubscribe at freebsd.org"

Powerful Parental Controls Let your child discover the best the Internet has 
to offer. 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

More information about the freebsd-questions mailing list