Linux - NetworkingThis 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.
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.
Dont school networks suck!!! i know mine does. I have amazingly set up my own LAN within my schools LAN so i can run winXP and FC1 on my ip address (149.106.145.85).
Via DHCP my computers are given ips (192.168.1.100~105). I would like to be able to ftp through my linksys BEFW11S4 router and access my FTP server on my FC1 box, usually with ip 192.168.1.102.
I believe that i will need to do some port forwarding, but i not too familiar with the use of port forwarding.
Originally posted by blizunt7 Dont school networks suck!!! i know mine does. I have amazingly set up my own LAN within my schools LAN so i can run winXP and FC1 on my ip address (149.106.145.85).
Via DHCP my computers are given ips (192.168.1.100~105). I would like to be able to ftp through my linksys BEFW11S4 router and access my FTP server on my FC1 box, usually with ip 192.168.1.102.
I believe that i will need to do some port forwarding, but i not too familiar with the use of port forwarding.
Ideas??
thanks so much!
Josh
Easy. I've done this myself. Just forward ports 21 to whatever internal IP addy the FTP server has. I would ditch DHCP, and set everything static. You can seill use the same IP address scheme.
the port forwarding is done in the router correct??? and should i also forward port 20, as FTP data is sent via port 20 and the requests via port 21 (i believe).
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
No, the FTP daemon will make a request from port 20 to an ephemeral port on the client (when in active mode). If it's in passive mode, the daemon will open a high numbered ephemeral for the client to connect to. Two ports are always used. Port 21/TCP is always used for the command channel. The data channel depends on whether it's active or passive.
Linksys routers don't do anything to outbound traffic, so it doesn't matter what port the ftp server is returning data on. You only need to forward port 21 to the server so incoming connections can get to it.
I have this FTP server running on an internal box with a private IP. It is vsftpd in case anyone cares. Port forwarding has been set up on the router (which unfortunately I don't have access to)
The same guy who set up the router also tweaked the config on this box. The wierd thing is that the internal box is actually LISTENING on a non standard port. If it was a linux or cisco router and if I were setting it up I would just forward anything on the high port at the router's public IP address to 21 on the internal and just have the internal listen on port 21 as usual... and the internal would never know the difference. The only info I have on that router is that it's a "cheap crappy router".
My colleague really needs to be able to connect from home. He can connect here at the office by using the internal address obviously. I myself was able to use it at one time from home, but it worked rather badly. I was using WS_FTP on Win XP from home I believe. The errors we were getting seemed to be relatied to things timing out. I configured my connection to be a little more patient and that's how I got it to work. My colleague wants to connect with a program called HTMLKit, and I guess it doesn't have many options, but at least it lets you set the port.
Is there anything I can do to make this work (better?) Thanks...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.