All of lore.kernel.org
 help / color / mirror / Atom feed
* Packets from "self" dont pass through netfilter
@ 2006-01-11 15:35 Thanos Panousis
  2006-01-12 12:52 ` Markus Marquardt
  0 siblings, 1 reply; 3+ messages in thread
From: Thanos Panousis @ 2006-01-11 15:35 UTC (permalink / raw)
  To: netfilter

Hello,

I have bothered this list before with a little project I am working
on, so here goes again.

I have 3 hosts: a client, a primary and a backup server, all on a HUB,
so everybody hears everybody else's traffic. The primary and the
backup have the same IPs AND the same MACs. The backup has

ifconfig eth0 -arp
ifconfig eth0 promisc

, meaning I have disabled arp broadcasting and I ve put its interface
in promisc mode. I am using iptables in the backup to redirect all
traffic going in or out of its NIC to a QUEUE target, and these
packets get processed by a script of my that is suppossed to do
smthing.

So, say I do a telnet from client to primary(and the backup, since
they got the same IP). The primary will do the TCP handshake OK, and
the backup will get fucked up, sending RST tcp packets. What SHOULD
traverce the firewall (and hence the QUEUE target) on the backup is:

-the clients SYN packet going in
-the primary SYN/ACK packet going in
-the backup SYN/ACK going out
-the client ACK going in

then the backup server would see the wrong ACK that came in and get
fucked up(send an RST?).

But the packets that come from the primary server(which has the same
IP/MAC) NEVER go in the backups QUEUE. Why is that?? I dont grab them
at the QUEUE target, but I can see them crossing if I use ethereal!


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

end of thread, other threads:[~2006-01-12 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 15:35 Packets from "self" dont pass through netfilter Thanos Panousis
2006-01-12 12:52 ` Markus Marquardt
2006-01-12 15:19   ` Thanos Panousis

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.