Results 1 to 3 of 3
Thread: Passive FTP
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2004
I have a small webserver going in my basement for me and some friends to host off of. It is running Mandrake 9.2 and ProFTPd 1.2.8 (mdk RPM package). The server works fine if I connect via LAN, but for those who are outside of it, they get the following:
gFTP 2.0.17pre0, Copyright (C) 1998-2003 Brian Masney <email@example.com>. If you have any questions, comments, or suggestions about this program, please feel free to email them to me. You can always find out the latest news about gFTP from my website at http://www.gftp.org/
gFTP comes with ABSOLUTELY NO WARRANTY; for details, see the COPYING file. This is free software, and you are welcome to redistribute it under certain conditions; for details, see the COPYING file
Looking up xx.xx.xx.xx
Connected to xx.xx.xx.xx:21
220 ProFTPD 1.2.8 Server (ProFTPD Default Installation) [server]
331 Password required for xxxx.
230 User xxxx logged in.
215 UNIX Type: L8
200 Type set to I
257 "/" is current directory.
227 Entering Passive Mode (192,168,1,101,16,145).
Cannot create a data connection: No route to host
Disconnecting from site xx.xx.xx.xx
Also, which ports should be forwarded to the FTP server through the router (besides 21)?
BTW, I have /etc/hosts set that the machine is set to the external IP. Is this correct?
Thanks for your help.If you love something, emerge it
- Join Date
- Apr 2003
- London, UK
Re: Passive FTPOriginally Posted by Blue|Fusion
it is possible you dont need to change anything to do with the IP address issue, look in the proftpd config file, if there is no setting in there ,it doesnt need changing.
I have absolutly no idea why you've done the last part with /etc/hosts..
- Join Date
- Feb 2004
Looking up 18.104.22.168 Trying d149-67-88-3.clv.wideopenwest.com:21 Connected to 22.214.171.124:21 220 ProFTPD 1.2.8 Server (Welcome to hax0r's FTP. You are now being hacked.) USER jchambers 331 Password required for jchambers. PASS xxxx 230 User jchambers logged in. SYST 215 UNIX Type: L8 TYPE I 200 Type set to I PWD 257 "/" is current directory. PASV 227 Entering Passive Mode (192,168,1,101,4,13). Cannot create a data connection: No route to host Disconnecting from site 126.96.36.199
Here is /etc/proftpd.conf:
# This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "Welcome to hax0r's FTP. You are now being hacked." ServerType standalone DefaultServer on # Allow FTP resuming. # Remember to set to off if you have an incoming ftp for upload. AllowStoreRestart off # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 30 # Set the user and group under which the server will run. User nobody Group nogroup # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> # Needed for NIS. PersistentPasswd on # Default root can be used to put users in a chroot environment. # As an example if you have a user foo and you want to put foo in /home/foo # chroot environment you would do this: # # DefaultRoot /home/foo foo
127.0.0.1 localhost 192.168.1.101 server
What I am very confused about it at the bottom of the gFTP log is:
227 Entering Passive Mode (192,168,1,101,4,13).If you love something, emerge it