Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-02-2005, 09:40 PM
|
#1
|
Member
Registered: Oct 2004
Location: Merrimack, NH
Distribution: Ubuntu / Apple
Posts: 46
Rep:
|
FTP Timeout
Hey everybody,
I recently got an SDSL connection from G4 Communications for my servers here at home. Everything seems to be working great except for FTP.
I am running VSFTPD on a FC3 based box. I can connect to it just fine from anywhere in the local network. When somebody on the outside tries to connect, it doesn't work. They seem to be able to authenticate just fine, but when the directory listing comes it just times out.
I logged into one of the UNIX servers over at work and logged into my server here at home, it timed out as expected - I then turned off passive mode and the directory listing came without any problem.
I am using 1:1 NAT on my gatway (m0n0wall) - 216.177.19.108, port 20 and 21 TCP (Among the other usuals) are being forwared to 10.0.1.1
In the config for VSFTPD I tried "pasv_enable=NO" - That just gave me permission denied, though, when I tried to list the directory.
I should also note that it is possible to connect to the FTP server when I (Or anybody else) is connected to the m0n0wall's PPTP VPN service
At this point I am sort of stuck - Any help or suggestions would be greatly appreciated
Thanks a bunch!
-Equin
Last edited by Equin; 10-02-2005 at 10:04 PM.
|
|
|
10-02-2005, 11:07 PM
|
#2
|
Member
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150
Rep:
|
I belive you need the ftp connection tracking module
Quote:
CONFIG_IP_NF_FTP - This module is required if you want to do connection tracking on FTP connections. Since FTP connections are quite hard to do connection tracking on in normal cases, conntrack needs a so called helper; this option compiles the helper. If you do not add this module you won't be able to FTP through a firewall or gateway properly
|
run this command
Code:
/sbin/modprobe ip_conntrack_ftp
|
|
|
10-02-2005, 11:52 PM
|
#3
|
Member
Registered: Oct 2004
Location: Merrimack, NH
Distribution: Ubuntu / Apple
Posts: 46
Original Poster
Rep:
|
I just run that command once in the command line? Or is this an option for VSFTPD ?
Thanks
-Eq
|
|
|
10-02-2005, 11:55 PM
|
#4
|
Member
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150
Rep:
|
is actually a kernel module, is part of iptables which is the m0n0wall's underlying program.
Yeah just give it a run on the command line and see if it makes a diff. if it doesn't find it, you may need to download it.
|
|
|
10-03-2005, 09:32 AM
|
#5
|
Member
Registered: Oct 2004
Location: Merrimack, NH
Distribution: Ubuntu / Apple
Posts: 46
Original Poster
Rep:
|
Okey - So I am running this command on the m0n0wall?
If so - where do I execute it? I don't think there's any command line on m0n0wall - is there?
-Equin
|
|
|
10-05-2005, 03:33 PM
|
#6
|
Member
Registered: Oct 2004
Location: Merrimack, NH
Distribution: Ubuntu / Apple
Posts: 46
Original Poster
Rep:
|
Still haven't got it to work. Here's the error I get in a command line on my Mac. (OS X 10.4 Tiger)
ftp> open
(to) equis.seanspc.net
Connected to equis.seanspc.net.
220 Equis.seanspc.net - FTP Service. Please play nice
Name (equis.seanspc.net:sean): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
^C
421 Service not available, user interrupt. Connection closed.
Here's the configuration on my server (Part of it, at least):
pasv_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Anybody got any ideas?
Thanks a bunch!!!
-Equin
|
|
|
All times are GMT -5. The time now is 11:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|