All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <jsullivan@opensourcedevel.com>
To: Neil Russell <NeilR@mulberry.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Force use of outgoing IP address
Date: Fri, 01 Jun 2007 13:24:31 -0400	[thread overview]
Message-ID: <1180718671.6539.1.camel@localhost> (raw)
In-Reply-To: <B3FAB89EFECD684E9E648B81133263F1466025@MAIL_COM.MULBERRY.COM>

On Fri, 2007-06-01 at 17:42 +0100, Neil Russell wrote:
> Hi,
>  
> new to all this so please be gentle with me....
>  
> I have a linux router with 3 network cards in, each card has multiple IP
> address's assigned. I want to route all aoutbound traffic TO a
> destination port of $DESTPRT out of eth0 on its IPAddress of 10.0.0.2
>  
> 
> Example is 
>  
> Eth0 has IP address's of 
> 10.0.0.1
> 10.0.0.2
> 10.0.0.3
> and connects to 10.0.0.99 (Internet router)
>  
> eth1 has ip address's of
> 192.168.0.1
> 192.168.0.2
> 192.168.0.3
>  
> 
> and eth3 has ip address's of
> 192.168.1.0
> 192.168.1.2
> 192.168.1.3
>  
> 
> So ALL traffic on the router with a destination address MUST go out on
> eth0 and show its IP address as 10.0.0.2 even though the default route
> is out via 10.0.0.1
>  
> Hope thats clear and that someone can advise.
>  
> 
> Neil.
> 
I believe you're going to want to use iproute2 to do this.  There is a
somewhat dated slideshow on doing something very close to this (if I
recall correctly) in the training section of http://iscs.sourceforge.net
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

Financially sustainable open source development
http://www.opensourcedevel.com



      parent reply	other threads:[~2007-06-01 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01 16:42 Force use of outgoing IP address Neil Russell
2007-06-01 17:22 ` Grant Taylor
2007-06-01 17:24 ` John A. Sullivan III [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1180718671.6539.1.camel@localhost \
    --to=jsullivan@opensourcedevel.com \
    --cc=NeilR@mulberry.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.