All of lore.kernel.org
 help / color / mirror / Atom feed
* How to send all packets to a router
@ 2002-02-24 17:18 Karina
  2003-02-24 18:10 ` Alistair Tonner
  2003-02-25  3:11 ` Joel Newkirk
  0 siblings, 2 replies; 7+ messages in thread
From: Karina @ 2002-02-24 17:18 UTC (permalink / raw)
  To: netfilter

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 ?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-06  7:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.