Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Different routes on different apps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Mon Nov 13, 2006 4:51 pm    Post subject: Different routes on different apps Reply with quote

Sometimes I have 2 connections on my computer, like my eth0 and ra0 both connected to different networks or eth0 on a network and a vpn device tunnled through it.
I know I can select which connection to use to access WLAN (since both provide access to internet) setting the default gateway using route.
But I'd like to know how could I run 2 applications at the same time each one using a different gateway to access the internet.
Example:
Have Firefox access through eth0 (cabled connection) and Opera access through ra0 (wireless connection).
Is there something I can set up before fire'ing an application so it uses a different gateway from the defined in route?

Thanks
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Mon Nov 13, 2006 9:11 pm    Post subject: Reply with quote

as long as you can differentiate on a source ip and/or (destination) port level you can use iproute2 to handle traffic based on those.

If this isn't possible you could use a proxy on one of the links (and have one of the browsers configured to use it and the other goes direct)
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Nov 21, 2006 11:36 pm    Post subject: Reply with quote

oh ok. I'll like into that package. I haven't understood very well how to use it, but nothing like google hehe

Thnks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum