Ubuntu 8.04.1: Split PPPoE connections among applications

sn3rd

Expert Member
Joined
Jan 18, 2008
Messages
4,305
Reaction score
11
How can I specify which PPPoE connection each application should use? I make two PPPoE connections and split local and international traffic accordingly, but I would like to specify that certain applications should ONLY use the local account. How can I do this?
 
if you know the IP addresses that app accesses then you could do it at the level that does the splitting
 
I think I know what you're getting at, but what if the destination is constantly changing like in the case of, say, a browser?
 
This is routing issue -

You dont need to know the specific ip - You need to know the block of ip's - of which there are many in the ZA space.

The ZA route servers can be found at:

SAIX: tpr-route-server.saix.net
IS: public-route-server.is.co.za

You can get your routes from these servers - thats what they are for.
But that is beyond the scope of this explanation.

For Windows - RouteSentry has a copy of the local ZA routing space - It lets your machine know about that setup when you run it.

For you to do this on a linux box you would need to add the same routing setup to your machine this can be done with the 'route' command AFAIK.

It would be incredibly tedious to do it manually, the ZA route space is to large, so you would need to automate this with shell scripts.

There has been discussion on the topic here before - guys wanted to do this on there hardware routers (I think there were some scripts written - you should search around these forums you might strike it lucky)

Hope this helps point you in the right direction - it will take a fair amount of research + alot trial and error. But the information u need is out there you just need to find it.

GL! :)
 
This is routing issue -

You dont need to know the specific ip - You need to know the block of ip's - of which there are many in the ZA space.

The ZA route servers can be found at:

SAIX: tpr-route-server.saix.net
IS: public-route-server.is.co.za

You can get your routes from these servers - thats what they are for.
But that is beyond the scope of this explanation.

For Windows - RouteSentry has a copy of the local ZA routing space - It lets your machine know about that setup when you run it.

I don't use Windows. But in any case, RouteSentry only splits the traffic between the two interfaces. I want to assign only ONE PPPoE connection (whether it be local or blended) to an application, so that the particular application may ONLY use EITHER local OR blended (and not both, depending on the destination).

For you to do this on a linux box you would need to add the same routing setup to your machine this can be done with the 'route' command AFAIK.

It would be incredibly tedious to do it manually, the ZA route space is to large, so you would need to automate this with shell scripts.

There has been discussion on the topic here before - guys wanted to do this on there hardware routers (I think there were some scripts written - you should search around these forums you might strike it lucky)

Hope this helps point you in the right direction - it will take a fair amount of research + alot trial and error. But the information u need is out there you just need to find it.

GL! :)

I am already doing this. What I would like is to specify that application X may only use a certain ppp interface.
 
Last edited:
i doubt that you will find a solution as it is only in South Africa really where you get this split routing issue.Certainly the major apps that you are probably running are from an environment where such a thing is not even thought of.

i remember asking on many linux forums for routing solutions and also on router forums and the overwhelming response is one of bewilderment as to why you would even want to think of doing such a thing.

So I am afraid that if you cannot handle it at the routing level, i reckon it's highly unlikely a program will allow for this.
 
Install an Emulator like MS Virtual PC and in the emulator establish a VPN that uses your desired connection and then run the Application in the Emulator so that is uses that VPN.

Yuck.

Otherwise, the only remaining option is to rewrite that application to set one of the state flags in the TCPIP packets and then do some custom routing at the gateway based on that state flag.
 
i doubt that you will find a solution as it is only in South Africa really where you get this split routing issue.Certainly the major apps that you are probably running are from an environment where such a thing is not even thought of.

i remember asking on many linux forums for routing solutions and also on router forums and the overwhelming response is one of bewilderment as to why you would even want to think of doing such a thing.

So I am afraid that if you cannot handle it at the routing level, i reckon it's highly unlikely a program will allow for this.

The more I search, the more I find this is true...
 
Install an Emulator like MS Virtual PC and in the emulator establish a VPN that uses your desired connection and then run the Application in the Emulator so that is uses that VPN.

Yuck.

Otherwise, the only remaining option is to rewrite that application to set one of the state flags in the TCPIP packets and then do some custom routing at the gateway based on that state flag.

Overkill! :sick:
 
i doubt that you will find a solution as it is only in South Africa really where you get this split routing issue.Certainly the major apps that you are probably running are from an environment where such a thing is not even thought of.

i remember asking on many linux forums for routing solutions and also on router forums and the overwhelming response is one of bewilderment as to why you would even want to think of doing such a thing.

So I am afraid that if you cannot handle it at the routing level, i reckon it's highly unlikely a program will allow for this.

+1
Absolutely true. I've found this too.


The only robust solution I've thought of (but not implemented) is to run the restricted apps in a separate virtual machine, and then filter that machine's IP address on the router. It would work ... but fiddly.
eta: kind of like stoke suggested, but without a vpn
 
Last edited:
Thanks for all replies, guys.

Well, I guess I'm stuck with this messy solution. Will maybe implement it on the weekend :sick:

Unless of course I (or one of you) come up with something else
 
I had a lookie around but there is not all that much you can do for this :(
 
Top
Sign up to the MyBroadband newsletter
X