Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Taylor Grant <gtaylor@riverviewtech.net>
To: Andreas Mimz <Andreas.Mimz@kos2.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: route all internet traffic through dummy device?
Date: Fri, 22 Apr 2005 03:10:33 -0500	[thread overview]
Message-ID: <4268B179.7090107@riverviewtech.net> (raw)
In-Reply-To: <21722.212.18.18.20.1114156139.squirrel@212.18.18.20>

Andreas Mimz wrote:
> Hello there!
> 
> I'm trying to route all internet traffic through a dummy network device.
> Unfortunately, I wasn't able to do that yet :-(
> 
> my setup is:
> 
> eth0: 172.20.39.1 (netmask 255.255.255.0)
> dummy0: 172.25.79.1 (netmask 255.255.255.0)
> ppp0: <dynmic-ip>
> 
> currently, all outgoing traffic from the clients (connected to eth0) is
> masqueraded and then send via the ppp0 device. what I'm trying to do is
> that outgoing data through ppp0 is first routed through dummy0, basically
> just adding one hop.
> 
> can anybody point me to the right direction?
> 
> thanks in advance,
> 
> andreas

I'm at a loss as to why you might want to do this but this is all that I can come up with early in the morning (3:00 A.M. here).

You could have all traffic coming in to ppp0 use a routing table other than main (the system's default routing table that knows about just about everything by default).  Likewise you could have all traffic that comes in to eth0 use a routing table other than main.  These two routing tables would only have routes for the network they are configured for and the dummy0 network.  I.e. ppp0 table would only know about ppp0 net and dummy0 net and eth0 table would only know about eth0 net and dummy0 net.  If you did such a thing dummy0 could probably use the main routing table so that it would know that it could go out each interface respectively.  I'd say that both routing tables ppp0 and eth0 would just use the IP of dummy0 as their next hop router and / or default gateway (respectively) for routes to the destination network.

If you need me to I could possibly come up with ip route commands to set this up tomorrow after I have some sleep.



Grant. . . .


  parent reply	other threads:[~2005-04-22  8:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-22  7:48 route all internet traffic through dummy device? Andreas Mimz
2005-04-22  7:59 ` Mariusz Kruk
2005-04-22  8:01   ` Taylor Grant
2005-04-22  8:50     ` Mariusz Kruk
2005-04-22  8:03 ` Fabien Germain
2005-04-22  8:10 ` Taylor Grant [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-22 14:29 Paulo Ricardo Bruck
2005-04-22 16:56 ` Mariusz Kruk

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=4268B179.7090107@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=Andreas.Mimz@kos2.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox