LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-27-2010, 12:38 PM   #16
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422

Quote:
I can use the dos prompt to log in and view files,
Sorry if I'm being thick, but do you mean the dos command line FTP client or something else? If I remember correctly, the DOS FTP client doesn't do passive mode, which may mean it can connect because it is using active mode and you still have a problem with passive mode.

Quote:
but not any sort of ftp server or windows explorer.
I'm going to be even thicker: Explorer handles FTP? Sorry, it has been a looooooong time since I used explorer for much of anything. I would also do some searching and see if Explorer does passive mode. Microsoft seems to have some weird problem with using passive mode as the default.

I guess the upshot is that make sure you're using a decent FTP client like FileZilla and that you're using a client and not a server.

Now for a couple of things about the vsftpd.conf file:

Quote:
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
You might want to double check your xinetd configuration. A lot of distros are configured to have FTP work through xinetd (or inetd in Slackware) and if you didn't disable the FTP portion of xinetd, it could be causing complications.

Quote:
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
You may want to temporarily disable this just to remove a variable from the equation. Once you've got FTP working right without encryption, then you can try it with encryption. By the way, this looks suspiciously like an example certificate. Have you really created a certification called ssl-cert-snakeoil.pem?

Quote:
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
chown_uploads=YES
I don't think this is only a yes/no option. If you say YES here, I think you also need chown_username to be set to an actual user on the system (NOT root!). I doubt this is part of the problem, but having incomplete options might be causing some confusion. Besides, you've already disabled anonymous logins, so having this active isn't doing anything.

The next couple things almost certainly aren't part of the connection problem, but you might want to think about the decision again:

Quote:
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=077
Quote:
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
If you're running this as a standalone server, I think you really want to use this option, otherwise if someone compromises vsftpd, they have root privileges.
I guess I just don't like having things uploaded as executable, particularly world executable.
 
Old 07-30-2010, 03:23 PM   #17
rubberducky
Member
 
Registered: Sep 2009
Posts: 46

Original Poster
Rep: Reputation: 20
Well I have officially done something officially very un-geeky: I threw in the towel. The time sensitivity of this project wouldn't let me tinker til it ran, I had to figure out something else. Wasn't sure having an open door into my firewall was a good idea anyway.
What I've done is uninstalled vsftpd off my machine completely (after backing up the .conf file) as it wouldn't work to begin with.
I then installed filezilla server on an internal virtual machine. Now everything came together quickly, except i'm having issues with the DNAT rules. What would be the set of rules I needed to forward the FTP traffic to IP 192.168.1.63?

Thanks for all the help, it was greatly appreciated.
 
Old 07-31-2010, 06:18 AM   #18
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Now everything came together quickly, except i'm having issues with the DNAT rules. What would be the set of rules I needed to forward the FTP traffic to IP 192.168.1.63?
I'd start a new thread, probably in Networking. My experience with NAT is rather sparse.
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apache: free access from lan users and password access to wan users... how? maginotjr Linux - Server 4 01-01-2011 11:08 AM
Trying to run ftp server on Suse 10: Problem with WAN side access cornfusedlinuxuser Linux - Networking 1 03-07-2006 05:34 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
Sending WAN IP address to FTP server sloik2000 Linux - Networking 2 02-08-2005 02:59 PM
Can I get to my ftp from WAN rogk Linux - Networking 6 08-14-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration