LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2005, 05:45 PM   #1
qnx
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
a complicated case with VSFTPD


Hi all,

First of all I'm from Bulgaria so excuse me for my english!!!

So, my case is a little bit complicated. What I mean is that I have a small LAN (4 PCs) behind a Repotec router which I use mainly for ICS. Recently I decided to run an anonymous FTP server on the Linux PC (OS - Redhat 8.0). I configured my /etc/vsftpd.conf, so every other PC on my LAN is capable of downloading (with a pretty good speed 10-12 MB/s). Then I decided to "broadcast" it over the internet. And then the problems appeared. Nobody is able to connect to my ftp server. I found it's something about PASV. So I "played" a little with the PASV options (in vsftpd.conf and in the router's menu). And finally I got it! My friends were able to connect. But here is the big problem. When somebody tries to download something big (like 600 MB) the router freezes (blocks out) and I must reset it. I have the latest firmware!!!! Between the LAN PCs there is no such thing. 10 days ago I transfered 30Gb with 10MB/s. I think that this is something related with my vsftpd.conf (I realy don't think that the router is causing the problem). Here I'll give you only the options that I've changed:
1. anonymous_enable=YES
2. local_enable=NO
3. all of the write/upload related stuff -> NO
4. connect_from_port_20=YES
5. pam_service_name=vsftpd
I've added
6. pasv_promiscuous=YES
7. anon_root=/mnt/seagate
8. pasv_min_port=65000
9. pasv_max_port=65534
10. pasv_address=xxx.xxx.xxx.xxx -> my WAN IP(it's static)

and in the router settings page

I forwarded port 21 to 192.168.1.10 on the "uPnP forwarding" page and from 65000~65534 to 192.168.1.10 on the "port range forwarding" page
So any help is highly appriciated! 10x a lot!

PS: I'm a

Last edited by qnx; 10-25-2005 at 06:21 PM.
 
Old 10-24-2005, 10:10 PM   #2
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Rep: Reputation: 16
since FTP uses both port 20 and 21 try forwarding both. I assume 168.192.1.10 is the actual FTP server?? Does your router also lock up when your friends are downloading much smaller files?
 
Old 10-25-2005, 12:14 PM   #3
qnx
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
No the server doesn't lock up for smaller files, and port 20 is forwarded too (I forgot to write that, srry)
 
Old 10-25-2005, 01:18 PM   #4
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Rep: Reputation: 16
im not sure if this will help you or not but this site has some documentation on many types of routers.

http://www.portforward.com/routers.htm

Typically the internal IP range of 192.168.x.x is used.
 
Old 10-25-2005, 07:38 PM   #5
qnx
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
OK, 10x

I checked it. I couldn't found nothing different from what I did. Today I had an idea. Once I've tried to setup ftp server on windows XP machine and now I remember that only one user connected, initiated more than 10 connections to different ports (according to tcpview). So I'm thinking: is it possible that vsftpd acts the same way - allowing too much connections, that overloads the router and it freezes?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ipw2200 ...this looks complicated jnsg Slackware 7 12-22-2005 11:03 AM
Converting sLoPPy cASE to Pretty Case with tr lowpro2k3 Programming 4 04-13-2005 08:13 PM
Why are all my upper case files being shown as lower case?? [Kernel 2.6.9-1.667 FC3] t3gah Fedora 4 03-11-2005 04:09 PM
Lower case to upper case letter sudhasmyle Programming 1 12-03-2004 04:15 AM
Complicated Network XTJ7 Linux - Networking 9 05-18-2004 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:31 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