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 03-02-2003, 10:52 PM   #1
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
ftp server behind NAT


Does anybody have any suggestions on setting up a publicly accessible Linux based FTP server from behind a router w/ a static IP running NAT? I am planning to use Redhat 8x but I'm open to suggestions.
 
Old 03-03-2003, 12:29 AM   #2
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
what kind of nat server do you have running. I am running a linux firewall/router box for my inet access. I am using an iptables script and in order to make it work just pick some random port number that isn't normally in use ie something kind of high and then you just setup a rule that forwards all traffic going to that port to your internal computer's IP addy on port 21. If you are running an iptables script I can help you out really quickly. Otherwise it will take a little thinking and a little more info on your setup.
 
Old 03-03-2003, 07:58 AM   #3
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
I don't know what model but I htink it's just a Linksys.
 
Old 03-03-2003, 09:10 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You should be able to configure your Linksys router to do port forwarding. As bbenz3 said you can tell the router to forward all requests it gets for port 21(FTP) to the port that you have assigned FTP to on your machine. You can specify what port you want FTP to run on your machine but the default is 21. In this case you would just have the router forward all requests from port 21 to port 21 on your machine.
 
Old 03-04-2003, 08:45 PM   #5
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
Cool, sounds like I'll either have to have the ftp box send its hostname to the router or give the ftp box a static IP, right?
Any recommendations on which software packages to use?
 
Old 03-04-2003, 08:50 PM   #6
wind
LQ Newbie
 
Registered: Sep 2002
Posts: 12

Rep: Reputation: 0
i suggest you could use the proftpd server + iptables (NAT)

perhaps you should try it for some times
 
Old 03-04-2003, 09:41 PM   #7
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
The Linksys should give out IPs automatically and if it is like most DHCP servers it won't assign the IP to another computer till it has used all the available IPs, so you shouldn't to worry about trying to make it static. All you need to do is figure out how to access your Linksys router's config page and setup the port forwarding part to go the IP of your ftp server. Then on your ftp server you have to have the actual ftp server app running to host the server and that should be it, besides setting up the actual accounts.
 
  


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
FTP server (Windows) behind NAT (IPtables) SWAT Linux - Newbie 10 01-08-2004 12:54 PM
iptables and passive ftp behind NAT radix Linux - Security 7 10-21-2003 02:06 PM
Can't use ftp nat whhappy Linux - Software 4 08-11-2003 05:33 AM
ftp server behind nat alansk Linux - Networking 2 07-17-2003 01:31 AM
iptables, NAT and FTP cestor Linux - Security 10 01-04-2002 09:57 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration