You are not logged in.

#1 2010-03-25 20:39:07

ziarkaen
Member
Registered: 2009-06-21
Posts: 20

Force application to use one network interface

I want one application's traffic to go though one interface (ppp0), but everything else using the regular eth0.
The app connects to many IPs, and recieves connections from many others, so I cannot route by IP.
At the moment I use ppp0 as the default route and everything goes through there.

Is there no way to force the app into using ppp0, then I could set the default back to eth0.  Does there exist a wrapper, etc. to do this?  It seems like a simple scenario which is easily doable from a theory POV.

Thanks


ziarkaen

Offline

#2 2010-03-25 21:18:21

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Force application to use one network interface

You may be able to tweak this script I wrote to do what you're after:
http://github.com/fukawi2/pb-route

Offline

Board footer

Powered by FluxBB