<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">geoffrey mendelson
wrote:<br>
</p>
<blockquote cite="mid:C389111B-060F-45A5-A202-95343380D775@gmail.com"
type="cite"><br>
I have two routers on my network. let's say 192.168.1.1 and
192.168.1.2. One connects to Netvision the other to 012. Now host based
routing is simple, e.g. I can say route all packets to host 1.2.3.4 via
gateway 192.168.1.1 and using a default route, everything else via
192.168.1.2.
<br>
<br>
What I want to do is become more granular. I want to be able to route
all packets to/from a specific port via one router, and everything else
to use the
<br>
default route.
<br>
<br>
These are all connections to/from this particular system, I don't need
to do it for everything on my network, or I can do it indiviudally.
Currently the systems are running Ubuntu 9.04 with the latest kernel,
but if I need to I can change them.
<br>
<br>
</blockquote>
<br>
Either do it globally with packet marks and specific routing table as
Shimi suggested, or, which may or may not be simpler in your case
depending on the specifics, you ca force connection from a specific
socket or application via a specific device - here's how:
<a class="moz-txt-link-freetext" href="http://tuxology.net/2008/05/15/forcing-connections-through-a-specific-interface/">http://tuxology.net/2008/05/15/forcing-connections-through-a-specific-interface/</a><br>
<br>
Cheers,<br>
Gilad<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.
Web: <a class="moz-txt-link-freetext" href="http://codefidence.com">http://codefidence.com</a>
Cell: +972-52-8260388
Tel: +972-8-9316883 ext. 201
Fax: +972-8-9316884
Email: <a class="moz-txt-link-abbreviated" href="mailto:gilad@codefidence.com">gilad@codefidence.com</a>
Check out our Open Source technology and training blog - <a class="moz-txt-link-freetext" href="http://tuxology.net">http://tuxology.net</a>
        "Now the world has gone to bed
         Darkness won't engulf my head
         I can see by infra-red
         How I hate the night."
</pre>
</body>
</html>