Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > lukemftpd Passive mode problems!

lukemftpd Passive mode problems!
Thread Tools
devNevyn
Fresh-Faced Recruit
Join Date: Jul 2002
Location: Karlshamn, Sweden
Status: Offline
Reply With Quote
Sep 2, 2002, 02:06 PM
 
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!
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Sep 3, 2002, 01:22 AM
 
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.
     
devNevyn  (op)
Fresh-Faced Recruit
Join Date: Jul 2002
Location: Karlshamn, Sweden
Status: Offline
Reply With Quote
Sep 3, 2002, 11:52 AM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:26 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,