LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-01-2007, 10:33 AM   #1
dablew
Member
 
Registered: Oct 2006
Distribution: CentOS | Fedora | Mint | Ubuntu
Posts: 43

Rep: Reputation: 15
How can I Access remote FTP servers on Private IPs


Hi all,
I need any precious advice on how to sort this:

Am setting up a number of FTP servers(more than 50 and going higher!) around some offices(all in one autonomous WAN).All of these servers have to be accessed publicly by clients anywhere and for this I have had to give each server a public IP.Am afraid I might end up overusing my public IPs and run short of them with more sites coming.

Are there ways I can configure in Linux or better according to my setup,to have all the servers on private IPs mapped on a single Public IP and yet manage to reach all of them independently?I was thinking of manipulating these with ports but am not sure how or even if most FTP clients can support this.

All the sites connect to the same cisco router to make the WAN and connect to the internet.

Please assist.

Last edited by dablew; 12-01-2007 at 10:52 AM.
 
Old 12-01-2007, 11:01 AM   #2
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally Posted by dablew View Post
Hi all,
I need any precious advice on how to sort this:

Am setting up a number of FTP servers(more than 50 and going higher!) around some offices(all in one autonomous WAN).All of these servers have to be accessed publicly by clients anywhere and for this I have had to give each server a public IP.Am afraid I might end up overusing my public IPs and run short of them with more sites coming.

Are there ways I can configure in Linux or better according to my setup,to have all the servers on private IPs mapped on a single Public IP and yet manage to reach all of them independently?I was thinking of manipulating these with ports but am not sure how or even if most FTP clients can support this.

All the sites connect to the same cisco router to make the WAN and connect to the internet.

Please assist.
have you looked into using a router/switch and forwarding ..
 
Old 12-01-2007, 11:36 AM   #3
Th3_J3st3R
Member
 
Registered: Mar 2003
Location: Milwaukee
Distribution: Slackware 12.0
Posts: 84

Rep: Reputation: 16
Well as far as I know you can only forward to one client. I don't know how you would set up a router/switch to forward random IP address' to specific servers without knowing who is who.

You could set up some sort of login script which forwards to the correct ftp server. Thats the only solution that I can think of.

The main problem is allowing people to log in from anywhere. If your clients had static IP addresses (their home address') that you could map THEN you can forward to the correct ftp server. Just set up the port forwarding tables on the cisco router.
 
Old 12-03-2007, 01:14 AM   #4
dablew
Member
 
Registered: Oct 2006
Distribution: CentOS | Fedora | Mint | Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks utanja and Th3_J3st3R for your comments,
I am just curious,Is there a way I can forwad a request from lets say:
A public a.b.c.dortZ to a private e.f.g.hortY.If this is possible how would it fare with having each private IP matched with a different port on the same public IP.

Or how best can save on my public IPs and have my setup working right.

Thanks again.
 
  


Reply

Tags
access, can, ftp, how, ips, private, remote, servers


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 scripts check remote servers file manish_meet_in Linux - General 1 02-28-2007 02:07 PM
firewall with private ips samg Linux - Security 7 06-02-2006 06:41 PM
can you restrict ftp USER access to certain ips? linuxboy69 Linux - Software 2 02-26-2004 04:05 PM
Rouing to Private IPs AustinS Linux - Networking 4 05-24-2003 06:09 AM
Multiple NIC cards - public and private IPs harryinjapan Linux - Networking 2 12-02-2001 04:25 AM


All times are GMT -5. The time now is 11:16 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