LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-16-2004, 11:30 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Rep: Reputation: 30
ftp behind a router


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
 
Old 09-16-2004, 11:33 PM   #2
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Rep: Reputation: 30
Re: ftp behind a router

Quote:
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.
 
Old 09-17-2004, 12:04 AM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Original Poster
Rep: Reputation: 30
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).


thanks again!!!
 
Old 09-17-2004, 12:29 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
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.
 
Old 09-17-2004, 12:37 AM   #5
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
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.
 
Old 09-30-2004, 01:29 PM   #6
ciscohead
Member
 
Registered: Mar 2003
Distribution: redhad 7.3
Posts: 42

Rep: Reputation: 15
port forwarded ftp server

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...
 
  


Reply



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
web,ftp server behind a router bashrc2 Linux - Networking 3 04-26-2004 06:45 PM
RH 9.1 as router/web/ftp/etc miR Linux - Networking 3 06-08-2003 12:28 AM
Ftp server through a router Chou Linux - Networking 11 08-21-2002 05:00 AM
ftp server behind a freesco router? progster Linux - Networking 3 03-27-2002 10:30 PM
FTP behind a router? fed007 Linux - Networking 8 08-17-2001 04:36 PM

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

All times are GMT -5. The time now is 11:01 PM.

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