LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2011, 08:41 PM   #1
Smasher03
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
VPS Setting up multiple outgoing ips


IAfter doing a lot of researh and other crap i decided to post to get some help here is my issue. The issue I kept having was the outgoing ip was always the same for example. Lets say i have ip's which are 1.1.1.1 and 1.1.1.2. If i log into 1.1.1.1 the outgoing ip shows up as 1.1.1.1 and if i log into 1.1.1.2 the outgoing ip still shows up as 1.1.1.1. I need to set it so that when i log into a 1.1.1.2 to shows up as 1.1.1.2 as the outgoing. Same for when i log into 1.1.1.1 it shows up as 1.1.1.1 on the outgoing end. I need to know how to set it like this. Anyhelp would be greatly appreciated.

I am using my VPS as an SSH tunneling. I would to have it set up so that if i log into 1 account the ip will be x.xx.xx.1 and if i log into another account it would be x.x.xx.2 ect. I have been searching for hrs on thsi stuff and no luck at all. Any help would be great.

Smasher
 
Old 06-11-2011, 06:23 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The way Linux networking works is that the routes are set up
in the routing table. These routes determine how to connect
to any given IP address. You can run "route -n" to see the
current routing table for your host.

Unless a program specifies that it wants to use a given IP
address or interface, all connections will use the default
route (or gateway) as seen in the route -n output as UG.

Two programs that come to mind are ping and apache. You
can add the -I switch to select an interface for ping.
With apache you can select separate configurations for
each IP address. I don't know of any way to select a
different configuration based on your shell.
 
Old 06-11-2011, 10:25 AM   #3
Smasher03
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by carltm View Post
The way Linux networking works is that the routes are set up
in the routing table. These routes determine how to connect
to any given IP address. You can run "route -n" to see the
current routing table for your host.

Unless a program specifies that it wants to use a given IP
address or interface, all connections will use the default
route (or gateway) as seen in the route -n output as UG.

Two programs that come to mind are ping and apache. You
can add the -I switch to select an interface for ping.
With apache you can select separate configurations for
each IP address. I don't know of any way to select a
different configuration based on your shell.
Ok thanks, can you tell me how to setup apache?

Smasher
 
  


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
How to rotate outgoing ips on squid testingpepe Linux - Server 8 08-25-2010 01:01 AM
Getting things straight: Apache, SSL, Multiple External IPs / Internal IPs robin.com.au Linux - Server 21 10-13-2007 11:39 PM
setting up my own DNS on my new VPS system kumarsundaram Linux - Networking 0 11-07-2006 09:04 PM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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