From: Karina <kgs@acabtu.com.mx>
To: Alistair@nerdnet.ca
Cc: netfilter@lists.netfilter.org
Subject: Re: How to send all packets to a router
Date: Sun, 24 Feb 2002 19:42:04 -0600 [thread overview]
Message-ID: <3C79966C.5B80DDA@acabtu.com.mx> (raw)
In-Reply-To: 200302241310.52400.Alistair@nerdnet.ca
I don't think the location of the rule is the problem. It seems that this line
is changing the final destination ip, instead of setting a next hop for my
route, i think this because if i ping an external host as yahoo, the ping
command returns me values or <10 ms , that are exactly the same values for the
ping for the alternate router. So the ping is not reaching yahoo, it seems is
reaching only the router as a final destination, instead of routing the
packets.
Karina.
Alistair Tonner wrote:
> On February 24, 2002 12:18 pm, Karina wrote:
> > Hi, i have this problem..
> >
> > I have an iptables-box, that is the default gateway for all my internal
> > addresses, after this box all the packets are sending to my main router.
> > But now, I need to send one of my internal Class C to another router
> > instead of the main one.
> >
> > I try with this line:
> >
> > $IPTABLES -T NAT -a PREROUTING -i eth0 -s $THISCLASS -j DNAT --to
> > other.router.ip
> >
> > but it seems this is not working.
> >
> > If i setup a computer and i put as gateway directly the new router ip
> > all works. But , if i setup this same comptuer and i put as gateway my
> > iptables-box (all the computers have this settings) this doesn't work.
> > The packets sent by my other ip addresses are going to main router as
> > usual, but the other class is not going to the alternate router.
> >
> > Any ideas ?
>
> Perhaps you have the order of the NAT rules incorrect?
> This rule should occurr in the table *before* the default one
> that routes the rest of your network.
>
> Alistair
--
LSCI Karina Gómez Salgado
mailto:kgs@acabtu.com.mx
Systems Administrator & Web Projects Manager
BTU Comunicación, S.A. de C.V.
next prev parent reply other threads:[~2002-02-25 1:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-24 17:18 How to send all packets to a router Karina
2003-02-24 18:10 ` Alistair Tonner
2002-02-25 1:42 ` Karina [this message]
2003-02-25 3:11 ` Joel Newkirk
2003-04-01 4:25 ` John Covici
2003-04-06 5:40 ` Ian Morgan
2003-04-06 7:44 ` John covici
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=3C79966C.5B80DDA@acabtu.com.mx \
--to=kgs@acabtu.com.mx \
--cc=Alistair@nerdnet.ca \
--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.