FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 11th, 2004, 06:30 PM
captain_caveman captain_caveman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 143 captain_caveman User rank is Private First Class (20 - 50 Reputation Level)captain_caveman User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 19 h 54 m 5 sec
Reputation Power: 5
vsftpd + NAT causing failed connections

Hello
I've been searching all over the place and i haven't quite been able to solve my problem. I'm running vsftpd on several debian boxes behind a firewall and i am using NAT. I have ports 20 and 21 open. All services on these machines work perfectly except ftpd.

if i ssh onto any machine behind this firewall, i can
ftp localhost
ftp private address
ftp hostname
and connect sucessfully

but i cannot ftp to the public IP address, even if it's the IP of the machine i'm on. I'm not sure if the problem is firewall or server configuration, but i'm really leaning towards the server. problem is, I'm not even getting any messages in the log files when i try to connect to these machines via public IP, so the request seems to never make it to the machine. I have been assured repeatedly by other admins that the firewall is properly configured, so i'm working on the software side of things.

here's what i've done:

vsftpd is set to run standalone.

connect_from_port_20=YES
hide_ids=YES
pasv_enable=YES
pasv_min_port=5001
pasv_max_port=5005
pasv_address= ?

i've tried to set the pasv_address to both the public ip and the private ip, but with no luck at all. Bear in mind that isn't the entire config, just the parts that i feel might play a part in this problem.
i have both the public and private IP addresses in my /etc/hosts file, that seems to make no difference at all.

i'd appreciate any help in this matter, i really need access to these machines.
thanks in advance,
capt.
__________________
I before E, except in Budweiser.

Reply With Quote
  #2  
Old October 12th, 2004, 02:16 PM
cww's Avatar
cww cww is offline
flit, flit, flit...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: New York City
Posts: 167 cww User rank is Corporal (100 - 500 Reputation Level)cww User rank is Corporal (100 - 500 Reputation Level)cww User rank is Corporal (100 - 500 Reputation Level)cww User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 24 m 29 sec
Reputation Power: 8
Is your NAT box running Linux? If so, is CONFIG_IP_NF_FTP enabled in that kernel? If you're trying to NAT FTP, it needs to be.

If the box isn't running Linux, there will probably be some other kernel option in that particular kernel to manage FTP over NAT.

It's a pretty common problem (well, among people who actually NAT FTP servers), so it came to my mind first.

Colin
__________________
Colin Wetherbee

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > vsftpd + NAT causing failed connections


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway