Earthweb.com Practically Networked Home Earthweb developer.com HardwareCentral earthwebdeveloper CrossNodes Datamation
Welcome to PractiallyNetworked
 
Get The Newsletter!  
  
Product Reviews

 • Routers
 • Hubs/Switches
 • Wireless Gateway
 • Wireless AP
 • Wireless NIC
 • Network Storage
 • Print Servers
 • Bluetooth Adapters
Troubleshooting
& Tutorials

 • Networking
 • Internet Sharing
 • Security
 • Backgrounders
 • Troubleshooting
    Guides

 • PracNet How To's
User Opinions
Practicallynetworked Glossary

 Find a Network Term  
 
Daily News
Compare Prices

 • Routers
 • Hubs/Switches
 • Servers
 • Storage
 • Adapters
 • Wireless
Forums
About
Jobs
Home

internet.commerce
Be a Commerce Partner














Find a Hotspot...

Add this search code to your site!
Copyright 2003Jupitermedia
  Most Popular Tutorials

• Microsoft Vista Home Networking Setup and Options
The most daunting part of upgrading to Windows Vista may be trying to figure out where in the layers of menus the networking and file-sharing options are hidden.

• Do It Yourself: Roll Your Own Network Cables
It may not be something you do everyday, but having the supplies and know-how to whip up a network cable on the spot can be very handy.

• Tips for Securing Your Home Router
Seemingly minor and easily overlooked settings can still have profound security implications. Here are some steps you can take to make sure your wired or wireless home router — and by extension, your network — is as secure as possible.

  Most Popular Reviews

• Microsoft Windows Home Server
If you have a home network, you'll welcome the easy file sharing, remote access and the image-based backup features of Windows Home Server.

• Iomega StorCenter Network Hard Drive
Iomega's fourth generation StorCenter Network Hard Drive brings many of the features found in higher-end storage devices down to an attractive price.

• MikroTik's The Dude
This free tool delivers many of the same capabilities that you'd find in pricey network monitoring tools. As long as you don't mind tinkering, The Dude is a decent network utility that should be worth the download.


Networking
SW Proxy Servers  
NAT SW (ICS, Sygate, etc)
NAT HW Routers
NAT HW & SW
Wireless
Other Problems
 
Secure LAN
Special Applications
Other Help
Tools

 
Reader Ian Boyd contributed this info on how Linky can have problems with FTP if you don't observe two key rules.

Summary
FTP client PORT commands must be:

1) UPPERCASE and 

2) On the standard FTP port 21

in order to be automatically translated by a Linksys router.

Details
When clients behind the Linksys router try to FTP out on standard ports, the router does some behind the scenes manipulation of PORT commands - replacing the client machine's LAN IP with the real internet IP. However I have realized (after much cursing and swearing) that the router will only translate PORT commands sent in UPPERCASE. I had at some point turned on the option in BulletProofFTP to use lowercase commands. The router was then no longer translating my PORT commands, and I was forced to use PASV mode, or was unable to FTP at all. Once I turned off the option to use lowercase, or moved to a client program that sends uppercase commands (LeechFTP), everything was fine.

Technical Background
As you communicate with the FTP server, you have a choice between using PORT of PASV (passive) modes. In port mode, your FTP client tells the server an IP and port that it should connect to you in order to do the next transfer. The problem is that IP the your client sends to the server is the computer's IP on the internal LAN (i.e. 192.168.1.100).

> PORT 64,255,2,232,16,94 200 PORT command successful

The server then has to try to open a connection to that IP. That cannot happen, because 192.168.1.100 isn't a valid internet IP. (In fact, some FTP servers will complain that the ip does not match the address that already has the control connection open - and will give a "500 - Illegal port command" error.)

> port 192,168,1,101,16,92 500 Illegal PORT command

Fortunatly, the Linksys router (with a high enough firmware version - I'm not sure which one) can watch for PORT commands, and will replace the mention of the internal LAN IP sent in the packet, and replace it with the real IP of the router on the internet. I assume that it also replaces the port specified by the client with one of its own available ports. Any subsequent packets arriving on that port (presumably from the FTP server) will be automatically forwarded to the client machine who initially sent out the PORT command.

> PORT 192.168.1.101,15,34 200 PORT command successful

In addition to this behavior being undocumented, it only works on the STANDARD FTP PORT 21. If you connect to an ftp server that is running on some other port, the router will not intercept and translate your PORT commands. In addition, the router seems to only translate PORT commands when the PORT command itself is sent in UPPERASE. If the command is in lowercase, then the router WILL NOT TRANSLATE THE PORT COMMAND, and pass it off unaltered to the FTP server.


See this page for a general (non Linksys specific) explanation of how FTP PASV mode works.

 








The Earthweb Network


Earthwebnews.com Earthweb developer.com HardwareCentral earthwebdeveloper CrossNodes Datamation

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs



Home | Networking | Backgrounders | Internet Sharing | Security | HowTo | Troubleshooting | Reviews | News | About | Jobs | Tools | Forums