LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2007, 08:59 PM   #1
rntr
LQ Newbie
 
Registered: Jul 2006
Distribution: Slackware/Zenwalk/Debian
Posts: 15

Rep: Reputation: 0
Specify an ethernet card for a specific app


Hello. I have two ethernet cards on my computer each connecting to two differnt places. I was wondering if it is somehow possible to setup a proxy type server so that if I set up the program to use a proxy which will be on this machine it will route all the programs network activity through the secondary ethernet card.
Someone told me to play around with privoxy and see if I could get it working that way. I have everything down to the fact that all I need to so is setup privoxy to use the secondary ethernet card but I do not know how to do so.
If I cannot configure privoxy to do so is there a small app that I can use to do this.
Thanks
~~rntr
 
Old 03-23-2007, 09:19 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Does each of the network cards connect to a different subnet? If so this is generally a matter of just having the routing tables correct. You could also use the route command to specify that certain IP addresses/subnets should be routed through a particular Ethernet device.
 
Old 03-23-2007, 09:24 PM   #3
rntr
LQ Newbie
 
Registered: Jul 2006
Distribution: Slackware/Zenwalk/Debian
Posts: 15

Original Poster
Rep: Reputation: 0
Yeah they are two networks and I just have lan from each connected to a differnt ethernet card in my computer. I have the subnet for both 255.255.255.0 should I not? The thing is that I want to have it so that I can connect to one when it is forwarded so that I can only get onto that side of the router to the ftp/http servs. But when the program is not forwarded via a proxy(ie privoxy) it will goto the primary card I have and will/can only access that sides servers.
 
Old 03-24-2007, 07:43 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
check out the owner module in iptables. this will let you mark packets based on things like the uid or process name of the process, and then use routing tables to route thos marked packets. this would presumably negate the need for any explicit application config, but you've not really done the best job in the world of explaining what you want to achieve...

as is often the case, wlug have a simple example here http://www.wlug.org.nz/SourceBasedRouting

Last edited by acid_kewpie; 03-24-2007 at 07:44 AM.
 
  


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
Dualhead (Xinerama): Starting app on specific screen? grayFalcon Linux - Newbie 2 07-22-2007 01:54 PM
How do you start an app on a specific virtual desktop? Nightblade_oz Linux - General 4 04-23-2005 05:19 AM
Do I install app software specific to a distribution vijaydeep Linux - Newbie 2 01-24-2005 03:40 PM
launching an app into a specific workspace? jasonv Fedora 0 11-14-2004 04:58 PM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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