From: Tiaan Wessels <tiaan@netsys.co.za>
To: netfilter@vger.kernel.org
Subject: Re: Packet duplication
Date: Thu, 25 Oct 2007 07:35:18 +0000 [thread overview]
Message-ID: <47204736.8030803@netsys.co.za> (raw)
In-Reply-To: <000301c816d8$1e355da0$0b0ffe0a@NS006819>
Rob Sterenborg wrote:
>> thanks a million Rob,
>>
>
> You're welcome..
>
>
>> I got it working at last using your instructions.
>> cheers
>>
>
> Does this mean that the ROUTE patch is actually working (I didn't get to
> test that) and which kernel version did you use?
>
>
not exactly, it only meant all error messages was gone printed to the
tty when i run the iptables command. i'm now trying to create what i
originally set out to do. if you'r interested here's my scenario.
i have one machine with two interfaces eth0 192.168.51.151 and eth1
192.168.3.11. i have udp packets coming in on eth1 from 192.168.3.77
destined for 192.168.3.11:9090 . i want to duplicate these packets so
they go to their original destination but also go out on eth0 to
192.168.51.46:9090. that's in short what i'm trying. so i have the
following rules i'm trying now (hope this is not laughable as i'm a novice)
/usr/local/sbin/iptables -F INPUT
/usr/local/sbin/iptables -F OUTPUT
/usr/local/sbin/iptables -F FORWARD
/usr/local/sbin/iptables -t nat -F POSTROUTING
/usr/local/sbin/iptables -t nat -F PREROUTING
/usr/local/sbin/iptables -t mangle -F POSTROUTING
/usr/local/sbin/iptables -t mangle -F PREROUTING
/usr/local/sbin/iptables -t mangle -A PREROUTING -p udp --dport 9090 -j
ROUTE --tee
/usr/local/sbin/iptables -t nat -A PREROUTING -p udp --dport 9090 -j
DNAT --to-destination 192.168.51.46:9090
but alas once i run these commands the packets just disappear. it
doesn't reach either of the two destinations then. any comments ?
next prev parent reply other threads:[~2007-10-25 7:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 6:19 Packet duplication Tiaan Wessels
2007-10-19 9:25 ` Gáspár Lajos
2007-10-19 9:42 ` Tiaan Wessels
[not found] ` <47186FC3.6030402@freemail.hu>
[not found] ` <471875A4.8010000@netsys.co.za>
2007-10-19 10:11 ` Gáspár Lajos
2007-10-19 10:44 ` Tiaan Wessels
2007-10-19 11:25 ` Rob Sterenborg
2007-10-24 8:20 ` Tiaan Wessels
2007-10-24 9:31 ` Rob Sterenborg
2007-10-24 10:00 ` Tiaan Wessels
2007-10-24 10:36 ` Rob Sterenborg
2007-10-24 10:43 ` Tiaan Wessels
2007-10-24 12:45 ` Rob Sterenborg
2007-10-24 15:02 ` Tiaan Wessels
2007-10-24 15:43 ` Rob Sterenborg
2007-10-25 6:14 ` Tiaan Wessels
2007-10-25 7:24 ` Rob Sterenborg
2007-10-25 7:35 ` Tiaan Wessels [this message]
2007-10-25 8:34 ` Rob Sterenborg
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=47204736.8030803@netsys.co.za \
--to=tiaan@netsys.co.za \
--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