Visit Our UNIX and Linux User Community


Regarding accessing multiple servers using single public ip address

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Regarding accessing multiple servers using single public ip address
# 1  
Old 07-27-2009
Regarding accessing multiple servers using single public ip address

Hello,

Currently we are having different linux servers (for example: let's assume audio server, video server and text server) to handle requests from outside users. Suppose the outside users in different LAN (Local Area Network), other than the servers. For example user is in 20 series LAN and audio server is in 10 series LAN then we are assigning one public IP address to the audio server so that the outside users can connect with audio server using this public IP address.

In the same way we are assigning different public IP address to video server and text server also. So like this it will be the costly process, as first we have to purchase every public ip address to use for our servers.

So instead of purchasing many public ip's, we want to purchase single public ip and then we want to access all the servers (in our case audio/video/text server) using only single public ip. So pls tell me is there any way to bind all the servers (with private ip's) by using only single public ip.

Is there any configuration steps or any other mapping techniques to do this?

please reply. I will be highly thankful to you.

Thanks & Regards,
NAVNEET GOEL
# 2  
Old 07-27-2009
How are users connecting? Your description sounds like either a proxy or a firewall/router would be the best option.

If your users are connecting via a web page, you can run an apache proxypass server based on the URL and direct them to the correct page, without the URL passed to them changing. A proxy can do similar things. I would look at Apache, IPTables and Squid to see if they do what you are looking for.
# 3  
Old 07-28-2009
Regarding accessing multiple servers using single public ip address

Hello Sir,

Thanks for ur interest in my question.

Actually outside users are connecting through the public ip's. But currently we are using seperate public ip for each server and it is costly process. So instead of using many public ip's we want to limit public ip's so that all the users can connect with different servers using only single public ip only.

We want to know that If we use single public ip for three servers (let's say audio server, video server and text server) then how can we map this single public ip with the three servers (may be we have to map private ip of servers with single public ip). So pls suggest me is there any way to do this, so that all users requests can be handle properly with correct servers. Pls reply soon....

Thanks & Regards,
Navneet Goel
# 4  
Old 07-28-2009
I read your original response but it seems you did not read mine. I am not concerned as much as to how many IPs you are using, but what sort of protocol you are using.


However, you have only restated your original request. That does nothing to give more information.
# 5  
Old 07-29-2009
Regarding accessing multiple servers using single public ip address

Hello Sir,

Actually we are using clients are connecting with servers using UDP protocol.

I got the below link. Pls go through this link-
(http://www.sadikhov.com/forum/index.php?showtopic=169048)

In this link they gave given the way of accessing multiple servers using only single public ip. Also they have given the example like all the servers having same port to listen the client request.

They have told like router will do it itself, but they have not mentioned what router configuration settings need to do at router side. Also we do not know how the router will itself select the server to connect with client, based on the client request. So plese do some needfully.......

Thanks & Regards,
Navneet Goel
# 6  
Old 07-29-2009
Regarding accessing multiple servers using single public ip address

Hello Sir,

Actually clients are connecting with servers using UDP and TCP protocols.

We got the below link. Pls go through this link.
http://www.sadikhov.com/forum/index.php?showtopic=169048

In this link they have mentioned the way that how we can access multiple servers using single public ip. But by this link we are not able to understand that how we have to do mapping at router side.

Also we are not clear if all the servers are having same port number then how the client request will know itself that to which server system it has to connect. So we want to know these details. Pls do some needfully.......

Thanks & Regards,
Navneet Goel

Previous Thread | Next Thread
Test Your Knowledge in Computers #533
Difficulty: Easy
A Boolean is type of variable that is used to hold a truth value, either true or false.
True or False?

10 More Discussions You Might Find Interesting

1. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

Hello Admins, My ask is how can I add two different subnet IPs to same box with two different gateways? The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware. How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

2. IP Networking

3 public servers: middle machine for traffic forwarding

With the following machines... Server 1: PPTP client windows; Public IP: 1.1.1.1 Server 3: PPTP server centos6; Public IP: 3.3.3.3 Connecting VPN server3 from server1 works correctly! Goal is to have a middle server forwarding traffic in both ways Server 1: PPTP client windows; Public IP:... (0 Replies)
Discussion started by: pedroz
0 Replies

3. Shell Programming and Scripting

How to run simple single command on multiple Linux servers?

Hi All, How can i run a single command on multiple servers with or without giving credentials. I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server. I tried below code... (9 Replies)
Discussion started by: darling
9 Replies

4. Shell Programming and Scripting

Require single command to start script in multiple servers

I have 9 servers, on each server a script with common name is available. I send a token file to all server from 1 particular server. so when a daemon job checks that token file is available then it triggers the script.. I want to know is there any command or script which I will run/execute on... (16 Replies)
Discussion started by: mirwasim
16 Replies

5. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

6. Programming

Would you please give me some idea about single client and multiple servers

Hi, I have a program which needs to connect multiple servers at the same time. The program has to collect data from each of servers and then make a decision regarding to the data received. There are several requirements. 1. Server (s) may shutdown anytime without any ack (e.g.power... (1 Reply)
Discussion started by: sehang
1 Replies

7. Shell Programming and Scripting

Issue faced while accessing data from files on different servers.

I have two log files of same name and structure which resides on different servers with ssh-keygen installed. I want to search for a list of strings available in an array on last 15 minutes logs of both files and calculate the total count of occurence of each string. Sample format of both file... (0 Replies)
Discussion started by: poweroflinux
0 Replies

8. HP-UX

Automatic execution of commands in multiple servers using single script.

Hi, I've to do a simple job many times whenever it has been asked, just i've to log in to all of fourtien HP servers and i've to execute ps -fu user > temp cat temp|sendmail "xyz@z.com" commands to send the statics of all of 14 servers over the mail to particular user id.. Though logging... (4 Replies)
Discussion started by: vickramshetty
4 Replies

9. UNIX for Advanced & Expert Users

Generate Public key for non ssh enabled servers

I am writing a script that needs to access various servers some of which are not ssh enabled. In order to access the ssh enabled servers I am using the following command to generate the public key : ssh-keygen -t rsa Is there a similar command for the other servers as well. If I try to use... (1 Reply)
Discussion started by: ravneet123
1 Replies

10. Shell Programming and Scripting

Accessing single elements of a awk array in END

How do I access one of the indices in array tst with the code below? tst=sprintf("%5.2f",Car / 12) When I scan thru the array with for ( i in tst ) { print i,tst } I get the output of: vec-7 144 But when I try this in the END print tst It looks like it's not set. What am... (6 Replies)
Discussion started by: timj123
6 Replies

Featured Tech Videos