Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
5/28/2007 4:40:05 PM EDT
Please help or my next thread will be “The Router of Truth”.

I am trying to enable FTP over a Linksys router. (BEFW11S4 v3. Firmware 1.45.1)
After opening all relavant ports TCP and UDP UPnP, enabling DMZ, etc, and still having no luck; I found out that Linksys routers have some kind of problem with passive FTP or something.

This is where my geek-fu gets a little weak.

If anyone [subliminal] Subnet [/subliminial] could explain this or just tell me if I need to buy a new router and give me a suggestion.

If not feel free to chime in with an “I like pie”.

eta.
I like pie count .... 2
5/28/2007 4:40:57 PM EDT
[#1]
I like pie....
5/28/2007 4:42:34 PM EDT
[#2]
What FTP program are you using?

Are you using DHCP or manually configured network?

Generally within the FTP program you need to list two IP addresses, your LAN IP and your WAN IP.
5/28/2007 4:44:32 PM EDT
[#3]
What exactly are you trying to do? Are you hosting an FTP server behind the router and clients are having trouble connecting to it via passive mode?

ETA: If this is what you are trying to do, remember that the client side will make the command connection via 21 and the data connection via a random high port number.
5/28/2007 4:45:16 PM EDT
[#4]

Quoted:
What exactly are you trying to do? Are you hosting an FTP server behind the router and clients are having trouble connecting to it via passive mode?


Sounds like it.
5/28/2007 4:47:52 PM EDT
[#5]
I'm just using the windows FTP. The idea was to enable me to download from customers machines without having to install a seperate client.

Network is DHCP except for the host machine, which is static. Comcast also uses dynamic so I registered with dyndns.

*eta* I enabled DMZ temporarily and disabled my firewall just to be sure I accounted for the random port # and still no luck. If you Google linksys ftp passive you will see all kinds of related problems but no real clear fix.  
5/28/2007 4:52:30 PM EDT
[#6]

Quoted:
I'm just using the windows FTP. The idea was to enable me to download from customers machines without having to install a seperate client.

Network is DHCP except for the host machine, which is static. Comcast also uses dynamic so I registered with dyndns.


Oh.

I have no idea how WinFTP works.

Generally with passive modes you have to list the internal (lan) IP, and then the external (wan) IP, along with a specific port.

I've only ever used cuteftp.. sorry.

Good luck tho.
5/28/2007 4:52:49 PM EDT
[#7]
Hmm, Windows FTP? IIS?  

Well, I don't have any experience with Linksys routers, but you might look at configuring the FTP server's passive settings to specify a port range that you are comfortable with.  When this is done, configure the router to forward the port 21 command connection (I assume the machine has a private RFC 1918 type address) and the range you specified for passive FTP data connections to the static server IP.

edited for some clarity I hope.
5/28/2007 4:53:05 PM EDT
[#8]
After three linksys routers that were a huge pain in my ass (providing service for a dozen clients, not just me) I finally got a generic buffalo router that uses the same broadcom chipset.  It has been flawless from the get go.  I have used open source firmware (DD-WRT) on all four of them, but none of the linksys ones were ever stable, no matter what I tried.  The last one was the highly rated WRT54-GL too.  
5/28/2007 4:56:53 PM EDT
[#9]

Quoted:
After three linksys routers that were a huge pain in my ass (providing service for a dozen clients, not just me) I finally got a generic buffalo router that uses the same broadcom chipset.  It has been flawless from the get go.  I have used open source firmware (DD-WRT) on all four of them, but none of the linksys ones were ever stable, no matter what I tried.  The last one was the highly rated WRT54-GL too.  


This is why I stay the hell away from consumer grade hardware for business use.
5/28/2007 4:56:57 PM EDT
[#10]

Quoted:

Quoted:
I'm just using the windows FTP. The idea was to enable me to download from customers machines without having to install a seperate client.

Network is DHCP except for the host machine, which is static. Comcast also uses dynamic so I registered with dyndns.


Oh.

I have no idea how WinFTP works.

Generally with passive modes you have to list the internal (lan) IP, and then the external (wan) IP, along with a specific port.


I've only ever used cuteftp.. sorry.

Good luck tho.



Thanks anyway.
5/28/2007 4:57:12 PM EDT
[#11]
Filezilla is a great separate client to use.  Very very easy.  I recommend it.
5/28/2007 4:59:19 PM EDT
[#12]
First thing to ask yourself. Does your ISP block ports?

Mine blocks pretty much everything. Whole residential agreement.
5/28/2007 4:59:29 PM EDT
[#13]

Quoted:
After three linksys routers that were a huge pain in my ass (providing service for a dozen clients, not just me) I finally got a generic buffalo router that uses the same broadcom chipset.  It has been flawless from the get go.  I have used open source firmware (DD-WRT) on all four of them, but none of the linksys ones were ever stable, no matter what I tried.  The last one was the highly rated WRT54-GL too.  


Thanks for the info. I'll check them out since I have a feeling I'll be getting a new router soon. Whats effed up is I really liked their stuff untill I ran into this. First problem turns out to be a deal breaker.
5/28/2007 5:02:25 PM EDT
[#14]

Quoted:

Quoted:
After three linksys routers that were a huge pain in my ass (providing service for a dozen clients, not just me) I finally got a generic buffalo router that uses the same broadcom chipset.  It has been flawless from the get go.  I have used open source firmware (DD-WRT) on all four of them, but none of the linksys ones were ever stable, no matter what I tried.  The last one was the highly rated WRT54-GL too.  


This is why I stay the hell away from consumer grade hardware for business use.



It's not a business, I share my signal with friends through a cooperative arrangement.  I'd be glad to buy a $500 router if I actually made any money with it, but I am lucky to break even.  If you have any unused cisco wireless access points laying around, I'd be happy to take them off your hands.  
5/28/2007 5:02:32 PM EDT
[#15]
I'm gonna go with pie on this one... I don't do routers.
5/28/2007 5:07:56 PM EDT
[#16]

Quoted:
First thing to ask yourself. Does your ISP block ports?

Mine blocks pretty much everything. Whole residential agreement.


Checked that; ran into it the other week with Verizon blocking port 80. Scanned mine with Shields up and CanUSeeMe. All ports were good to go, and it works great without the router.
5/28/2007 5:12:31 PM EDT
[#17]

Quoted:

Quoted:
First thing to ask yourself. Does your ISP block ports?

Mine blocks pretty much everything. Whole residential agreement.


Checked that; ran into it the other week with Verizon blocking port 80. Scanned mine with Shields up and CanUSeeMe. All ports were good to go, and it works great without the router.


Next, since you tried multiple means to route that traffic, reset those other means. For FTP you want to forward by default ports 20 and 21.
5/28/2007 5:15:43 PM EDT
[#18]

Quoted:

Quoted:

Quoted:
First thing to ask yourself. Does your ISP block ports?

Mine blocks pretty much everything. Whole residential agreement.


Checked that; ran into it the other week with Verizon blocking port 80. Scanned mine with Shields up and CanUSeeMe. All ports were good to go, and it works great without the router.


Next, since you tried multiple means to route that traffic, reset those other means. For FTP you want to forward by default ports 20 and 21.



Both 20 and 21 are forwarded in TCP and UDP. Even ran it as DMZ which supposedly is wide open and no luck.
5/28/2007 5:18:45 PM EDT
[#19]

Quoted:
It's not a business, I share my signal with friends through a cooperative arrangement.  I'd be glad to buy a $500 router if I actually made any money with it, but I am lucky to break even.  If you have any unused cisco wireless access points laying around, I'd be happy to take them off your hands.  


I saw the phrase "providing service for a dozen clients" and that set my business antenna twitching.

Hopefully your cooperative arrangement returns you some sort of goods or services!

All my Cisco gear is in use.  I actually use SonicWall stuff for branch side wireless.  The Cisco routers are higher up the food chain.
5/28/2007 5:18:46 PM EDT
[#20]

Quoted:

Quoted:

Quoted:

Quoted:
First thing to ask yourself. Does your ISP block ports?

Mine blocks pretty much everything. Whole residential agreement.


Checked that; ran into it the other week with Verizon blocking port 80. Scanned mine with Shields up and CanUSeeMe. All ports were good to go, and it works great without the router.


Next, since you tried multiple means to route that traffic, reset those other means. For FTP you want to forward by default ports 20 and 21.



Both 20 and 21 are forwarded in TCP and UDP. Even ran it as DMZ which supposedly is wide open and no luck.


Save the config, no DMZ, reset the router.

Next try to use a console telnet session to the ftp control port 21.
5/28/2007 5:20:42 PM EDT
[#21]

Quoted:
Both 20 and 21 are forwarded in TCP and UDP. Even ran it as DMZ which supposedly is wide open and no luck.


You mentioned passive mode.  Once again, 20/21 are going to be used for command.  You will still have a range of high ports that are going to be randomly used for data connections in passive mode.  If your router is not configured to accept connections from this range, it will not work.

Are you running a server or are you having trouble connecting out to FTP servers.  Your terminology is a little vague.
5/28/2007 5:22:39 PM EDT
[#22]

Originally Posted By geeze

Next try to use a console telnet session to the ftp control port 21.


If his server (assuming he has a server at this point) is set to listen in passive mode, then the client side will be making the data connections on random (specified in FTP config settings) high ports.  Simply making a control connection to 21 won't necessarily help him.
5/28/2007 5:22:40 PM EDT
[#23]

Quoted:

Quoted:
Both 20 and 21 are forwarded in TCP and UDP. Even ran it as DMZ which supposedly is wide open and no luck.


You mentioned passive mode.  Once again, 20/21 are going to be used for command.  You will still have a range of high ports that are going to be randomly used for data connections in passive mode.  If your router is not configured to accept connections from this range, it will not work.

Are you running a server or are you having trouble connecting out to FTP servers.  Your terminology is a little vague.


Those higher ports connect from out the ftp host. No need to forward back as the regular means of using NAT will suffice.
5/28/2007 5:24:00 PM EDT
[#24]

Quoted:

Originally Posted By geeze

Next try to use a console telnet session to the ftp control port 21.


If his server (assuming he has a server at this point) is set to listen in passive mode, then the client side will be making the data connections on random (specified in FTP config settings) high ports.  Simply making a control connection to 21 won't necessarily help him.


Your testing the command path, a single port. It is a troubleshooting method, no other ports are used.
5/28/2007 5:27:12 PM EDT
[#25]
Ok, you guys win.  It doesn't work.
5/28/2007 5:29:39 PM EDT
[#26]
I'll be back in a bit. Port forwarding on routers is a pain. Good luck until I return.
5/28/2007 5:29:54 PM EDT
[#27]



Save the config, no DMZ, reset the router.

Next try to use a console telnet session to the ftp control port 21.


help .... geek-fu .... failing....  

Cliff notes?  How do I start a telnet session? Suggested reading? Wiki is a little weak on this one.
5/28/2007 5:31:38 PM EDT
[#28]

Quoted:

Those higher ports connect from out the ftp host. No need to forward back as the regular means of using NAT will suffice.


Please explain to me, how you would configure a router to accept external client initiated sessions to an internal FTP server using passive mode.  This assumes that the internal FTP server is on a privately addressed NAT segment and is not part of a DMZ.
5/28/2007 5:34:25 PM EDT
[#29]

Quoted:
I'll be back in a bit. Port forwarding on routers is a pain. Good luck until I return.


Port forwarding is simple.  That is why I suggested it many posts ago.

GUMBY.  Are you running an FTP server from behind your router?  Are external clients (those outside the bounds of your network) unable to connect to said server?  

I still do not know if this is what you are trying to do!
5/28/2007 5:38:54 PM EDT
[#30]

Quoted:

Quoted:
I'll be back in a bit. Port forwarding on routers is a pain. Good luck until I return.


Port forwarding is simple.  That is why I suggested it many posts ago.

GUMBY.  Are you running an FTP server from behind your router?  Are external clients (those outside the bounds of your network) unable to connect to said server?  

I still do not know if this is what you are trying to do!


Your right it is very simple, if your the one doing it. It also helps when your using something guaranteed to work right the first time such as a linux machine with IPTables or and old kernel with IPChains.

The hassle of figuring out the trying to figure out the quirks of a consumer off the shelf router is a pain.
5/28/2007 5:39:46 PM EDT
[#31]

Quoted:

Quoted:

Those higher ports connect from out the ftp host. No need to forward back as the regular means of using NAT will suffice.


Please explain to me, how you would configure a router to accept external client initiated sessions to an internal FTP server using passive mode.  This assumes that the internal FTP server is on a privately addressed NAT segment and is not part of a DMZ.


Ahh you made me smile. First of the day. Of course I just woke up 40 minutes ago.
5/28/2007 5:43:36 PM EDT
[#32]

Quoted:



Save the config, no DMZ, reset the router.

Next try to use a console telnet session to the ftp control port 21.


help .... geek-fu .... failing....  

Cliff notes?  How do I start a telnet session? Suggested reading? Wiki is a little weak on this one.


Telnet. You want to do this from the computer that having the problem connecting.

Go start -> run -> Type in cmd and hit run.

From the Telnet> prompt type "open ftphost_ipaddress 21"
where ftphost is the internet ipaddress of your internet connection.

One second thought, also give me your current config. How are you setting it up, how are you trying to connect. etc..

ETA: I started it out with simple problems and got more complex, I may have yet overlooked something simple.
5/28/2007 5:46:32 PM EDT
[#33]

Quoted:

Ahh you made me smile. First of the day. Of course I just woke up 40 minutes ago.


Excellent!  I agree with you about something like IP Tables, or an enterprise grade piece of hardware.  But that ain't what we're working with here.

One thing I do know about consumer grade boxes (again, why I recommend against them) is that they do shit that is NOT easily explained given the relative simplicity of such basic network/server design configurations (I believe you called them "quirky" ).

That is why I am trying to establish the exact thing he's trying to accomplish and suggest basic, straightforward solutions.  I am reasonably sure, that if he's trying to host an FTP server behind something like a Linksys router, that he will need to forward the control/command ports as well as the passive range to the internal (NAT, RFC 1918, Private, whatever you want to call it) static IP of the host server since the client initiates both connections in passive mode.

That's all.  
5/28/2007 5:48:21 PM EDT
[#34]

Quoted:

Quoted:
I'll be back in a bit. Port forwarding on routers is a pain. Good luck until I return.


Port forwarding is simple.  That is why I suggested it many posts ago.

GUMBY.  Are you running an FTP server from behind your router?  Are external clients (those outside the bounds of your network) unable to connect to said server?  

I still do not know if this is what you are trying to do!


I am runing FTP IIS service off an XP pro machine. When an external client logs on they are imediatly given an error code about entering passive mode. Although the log does show they were connected. ???

After doing a lot of reading (Google linksys ftp passive to see what I mean) there is some kind of problem with linksys routers. Other people seem to be having the same problem.


eta. I have forwarded all ports to my machine and still get the same results.

Gonna go to bed. Will try again tomorrow.

Thanks all for the help.
5/28/2007 5:49:48 PM EDT
[#35]
See my post right before yours.  Have you done this?

ETA: I see this is XP Pro.  I know little to nothing about workstation OS server implemenations.  Failing my ramblings about passive mode, port ranges, and forwarding, you could check XP Pro local security settings.
5/28/2007 5:50:32 PM EDT
[#36]

Quoted:

Quoted:

Ahh you made me smile. First of the day. Of course I just woke up 40 minutes ago.


Excellent!  I agree with you about something like IP Tables, or an enterprise grade piece of hardware.  But that ain't what we're working with here.

One thing I do know about consumer grade boxes (again, why I recommend against them) is that they do shit that is NOT easily explained given the relative simplicity of such basic network/server design configurations (I believe you called them "quirky" ).

That is why I am trying to establish the exact thing he's trying to accomplish and suggest basic, straightforward solutions.  I am reasonably sure, that if he's trying to host an FTP server behind something like a Linksys router, that he will need to forward the control/command ports as well as the passive range to the internal (NAT, RFC 1918, Private, whatever you want to call it) static IP of the host server.

That's all.  


That is what he is trying to do, as he said with regards to blocked ports, it works without th router. Again you don't need to forward any more ports that 20/21 for ftp.

Forwarding a range of other ports will impact your overall network performance besides just be unnecessary.
5/28/2007 5:53:24 PM EDT
[#37]

Originally Posted By geeze

That is what he is trying to do, as he said with regards to blocked ports, it works without th router.


Without the router, there is no intermediary for traffic.  I'm not surprised it works without the router.



Again you don't need to forward any more ports that 20/21 for ftp.


for active FTP, absolutely not.



Forwarding a range of other ports will impact your overall network performance besides just be unnecessary.


Very well then.  Good luck Gumby.

ETA, since I realize I am talking out of my ass with regards to your Linksys box.  I googled "configuring passive ftp on a linksys router" and every first page return seems to indicate a need to port forward high range port ranges in order for it to work.

BTW Google Active and Passive FTP.  You will find it very helpful.  


5/28/2007 6:05:09 PM EDT
[#38]
Let us know if you figure it out Gumby!
5/28/2007 6:15:29 PM EDT
[#39]
Just referenced my config. I'm doing active ftp. Next best bet would be to see if linksys allows you to trigger a public port range for use in passive. Such a waste of network resources I think.