Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Timur Alperovich" <timur.alperovich@gmail.com>
To: netfilter@vger.kernel.org
Subject: Re: ROUTE target
Date: Fri, 8 Feb 2008 16:32:03 -0500	[thread overview]
Message-ID: <52950c3f0802081332l2472c8bbm46cd376fc9e7145e@mail.gmail.com> (raw)
In-Reply-To: <002e01c86a20$801533b0$803f9b10$@info>

Thanks for the link! I got the ROUTE target working, but now I'm a bit
confused. I have 3 connections on a router. 2 to the ISP, ISP1 & ISP2,
and one for the LAN. I'd like all the LAN traffic bound for the
internet to be routed to ISP1 and all the traffic the router generates
locally to go through ISP2. I tried adding something like iptables -A
OUTPUT -j ROUTE --oif ISP2, which broke the LAN setup, as that traffic
was then forwarded through ISP2 too. I'm not sure why that happened.
The entry in the nat table for Masquerading is -t nat -o ISP1 -s
172.27.169.0/24 -j MASQUERADE. Anyone setup something similar?

Thank you,
Timur

>
> > Hi,
> >
> > I noticed there was a patch to add the ROUTE target and mangle the
> > interface used by the packets. I was looking through patch-o-matic-
> > ng and couldn't find it. I presume because it's not supported
> > anymore.
> > What is a way to accomplish similar results with netfilter? For
> > instance, if someone could give me an example of how to force all
> > ICMP packets through eth0, that would be great.
>
> http://marc.info/?t=120048157400002&r=1&w=2
>
>
> Grts,
> Rob
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  reply	other threads:[~2008-02-08 21:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08  0:18 ROUTE target Timur Alperovich
2008-02-08  7:01 ` Rob Sterenborg
2008-02-08 21:32   ` Timur Alperovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-15 11:32 Richard Bellamy

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=52950c3f0802081332l2472c8bbm46cd376fc9e7145e@mail.gmail.com \
    --to=timur.alperovich@gmail.com \
    --cc=netfilter@vger.kernel.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