|
|
lukemftpd Passive mode problems!
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2002
Location: Karlshamn, Sweden
Status:
Offline
|
|
Hey. I can't get the ftpd that comes with 6c115 to work in passive mode behind a router.
It keeps insisting on using the internal IP instead of the external! Does anyone know how to change this? I can't find it in the man pages, and I can't find a config file.
nevyn@tango:~$ ip nevyn.mine.nu
nevyn.mine.nu = 213.67.220.128
nevyn@tango:~$ ftp nevyn.mine.nu
Connected to nevyn.mine.nu.
220 192.168.0.33 FTP server (lukemftpd 1.1) ready.
Name (nevyn.mine.nu:nevyn):
331 Password required for nevyn.
Password:
230-
Welcome to Darwin/Kenkari.
don't forget tmp.txt.
230 User nevyn logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pasv
?Invalid command
ftp> passive
Passive mode on.
ftp> ls
227 Entering Passive Mode (192,168,0,33,199,165)
ftp: connect: No route to host
ftp>
|
Move .Sig... For Great Justice!
|
|
|
|
|
|
|
|
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status:
Offline
|
|
Typically this is handled by the router rewriting FTP responses. Alternatively, according to 'man ftpd.conf', create the file /etc/ftpd.conf and add the line:
advertise all <your_real_IP>
This changes the response to passive transfers to use the specified IP address instead of the machine's own IP.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2002
Location: Karlshamn, Sweden
Status:
Offline
|
|
Originally posted by Camelot:
Typically this is handled by the router rewriting FTP responses. Alternatively, according to 'man ftpd.conf', create the file /etc/ftpd.conf and add the line:
advertise all <your_real_IP>
This changes the response to passive transfers to use the specified IP address instead of the machine's own IP.
IT WORKED! Aaahhh! Because the file ftpd.conf didn't exist in /etc/, I thought the system used another location for the ftpd configuration, like in NetInfo or something. It obviously accepted /etc/ftpd.conf, though! Thanks a lot! =D
|
Move .Sig... For Great Justice!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|