Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.