All of lore.kernel.org
 help / color / mirror / Atom feed
* Redirect Packets From Interface in Promiscuous Mode
@ 2005-09-29 18:28 Rodre Ghorashi-Zadeh
  2005-09-30 12:29 ` Henrik Nordstrom
  2005-10-02 18:56 ` Mart Frauenlob
  0 siblings, 2 replies; 6+ messages in thread
From: Rodre Ghorashi-Zadeh @ 2005-09-29 18:28 UTC (permalink / raw)
  To: netfilter

Hello List,

I have a problem that I am hoping someone can help me with. I am currently 
conducting some load testing on a test MySQL server that is destined to 
replace our current production MySQL server. What I want to do is send our 
current MySQL traffic, in real time, to the test MySQL server to measure the 
load in comparison with our current production MySQL server.

What I have done so far is setup port mirroring on the switch that is shared 
by the Production MySQL server, the test MySQL server, and my Linux based 
management station, with the Linux based managment station sniffing the 
mirrored port of the Production MySQL server.

I am able to see the MySQL traffic going to the production MySQL server 
using tcpdump. For a next step what I want to be able to do is have iptables 
sniff the port (I set the interface into promiscuous mode using ifconfig), 
grab all packets that are destined for my Production MySQL server from the 
mirrored port, rewrite the source IP address to be my Linux based management 
stations IP address and rewrite the destination address to be my Test MySQL 
Servers IP address. I don't really care about the MySQL results returned to 
tthe Linux based management station, they can go to /dev/null for all I 
care, but I want to see the queries going through the Test MySQL server.

I am pretty familiar with iptables but the two problems that I see/foresee 
are: getting iptables to grap traffic from the interface in promiscuous mode 
that are not destined for the Linux based Management station, and, properly 
setting up the TCP/IP sessions, between the Test MySQL Server and the Linux 
Based Management Station.

If what I am doing is not possible can anyone give me some advice on how to 
achieve what I am trying to do (send queries in realt time from my 
Production MySQL server to my Test MySQL Server)?

~Rodre




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

end of thread, other threads:[~2005-10-03 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 18:28 Redirect Packets From Interface in Promiscuous Mode Rodre Ghorashi-Zadeh
2005-09-30 12:29 ` Henrik Nordstrom
2005-09-30 19:16   ` Rodre Ghorashi-Zadeh
2005-09-30 21:14     ` Henrik Nordstrom
2005-10-02 18:56 ` Mart Frauenlob
2005-10-03 11:56   ` Henrik Nordstrom

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.