From: Martin Klier Subject: Re: Clone a packet - iptables Date: Tue, 11 Apr 2006 08:46:56 +0200 Message-ID: <200604110846.56483.martin.klier@atu.de> References: <443A6BB3.2010902@poczta.onet.pl> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1731792.zcvcVfhUoQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <443A6BB3.2010902@poczta.onet.pl> Sender: linux-admin-owner@vger.kernel.org List-Id: To: Piotr Szczap Cc: linux-admin@vger.kernel.org --nextPart1731792.zcvcVfhUoQ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Am Montag 10 April 2006 16:29 schrieb Piotr Szczap: > Hello, > Is it possible to 'clone' a packet using iptables? > I would like to do something like > -A INPUT -p tcp --dport 1111 -j DNAT --to-destination host_a > --to-destination host_b > but without the round-robin load balancing, so that the packet coming to > port 1111 is sent to host_a AND host_b. > > Or perhaps it can be done with BSD's packet filter? I bet Linux' netfilter can't do this. Think about your tcp connection's=20 partner: it will receive ACK flags from two processes on the destination=20 machine. Your tcp connection won't survive for long. Kind regards, =2D-=20 Mit freundlichen Gr=FC=DFen i.A. Martin Klier Systemadministration / Datenbanken =2D---------------------------------------------------------------- A.T.U Auto-Teile-Unger Handels GmbH & Co. KG Dr.-Kilian-Stra=DFe 4 D-92637 Weiden i. d. OPf. --nextPart1731792.zcvcVfhUoQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEO1DgVKZfihvnEcQRAqtGAKCgRisOzuTSBE5G1v8/b9uOdsdqzQCfSrjt jMlBiPTpbbeVmOC3tfwJwDs= =FTHD -----END PGP SIGNATURE----- --nextPart1731792.zcvcVfhUoQ--