What kind of traffic? You know TCP traffic won't work right? Also, have you verified the src/dst IP and MAC addresses of the packets match up to something the NAT gateway will accept? Ie: the correct dst IP/MAC (needs to be the interface of the NAT box tcpreplay is facing) and the source IP is in the right subnet (so routing works).
Been a while since I played with iptables, but you should look in the log files and see how the packets are being processed. On Tue, Jan 31, 2012 at 9:53 PM, Senthil Kumar S <senthilkuma...@sasken.com> wrote: > Hi, > > Thanks for your reply. I am sorry to give you a whole lot of explanation > below, > > NAT box set up is done with the iptable commands > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > This works good if I browse or if connect to internet from the behind nat > windows pc. > > So I thought the same is enough and so I didn make any changes in the > captures with respect to tcpreplay. I just pumped the traffic I already > captured using tcpreplay in the nat box eth0 interface. Still the traffic is > not received by the behind nat windows pc. > > Any small help is really appreciable. > > Regards > S. Senthil kumar > > > > -----Original Message----- > From: Aaron Turner [mailto:synfina...@gmail.com] > Sent: Wednesday, February 01, 2012 5:41 AM > To: Main forum for tcpreplay > Subject: Re: [Tcpreplay-users] An Help needed in using tcpreplay for behind > NAT setup > > Not really a whole lot to go on, but obviously I'd make sure your NAT config > is correct and that the destination MAC/IP/Ports are correct. > And read any logs on the NAT box. > > On Tue, Jan 31, 2012 at 2:41 AM, Senthil Kumar S <senthilkuma...@sasken.com> > wrote: >> Hi All, >> >> >> >> I am using tcpreplay version - 3.4.4 for my testing activity. >> >> >> >> My test set up consists of, >> >> >> >> one windows pc sits behind nat (eth0 ---> connected to eth1 of nat >> pc), one nat pc (eth1 --> connected to behind nat windows pc, eth0 >> ---> connected to ubuntu pc where tcpreplay is running), one ubuntu pc >> where tcpreplay is running (eth0 ---> connected to eth0 of nat pc). >> >> >> >> I had already taken some captures and trying to replay that traffic >> using tcpreplay from the ubuntu pc (in the above mentioned set up). >> problem is packets are received in eth0 of the nat pc but not >> forwarded to the behind nat (windows) pc. >> >> >> >> Is there anything I need to do with tcpreplay??? >> >> >> >> kindly help. >> >> >> >> Regards >> >> S. Senthil kumar >> >> >> >> >> >> >> ________________________________ >> SASKEN BUSINESS DISCLAIMER: This message may contain confidential, >> proprietary or legally privileged information. In case you are not the >> original intended Recipient of the message, you must not, directly or >> indirectly, use, disclose, distribute, print, or copy any part of this >> message and you are requested to delete it and inform the sender. Any >> views expressed in this message are those of the individual sender >> unless otherwise stated. Nothing contained in this message shall be >> construed as an offer or acceptance of any offer by Sasken >> Communication Technologies Limited ("Sasken") unless sent with that >> express intent and with due authority of Sasken. Sasken has taken >> enough precautions to prevent the spread of viruses. However the >> company accepts no liability for any damage caused by any virus transmitted >> by this email. >> Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html >> >> ---------------------------------------------------------------------- >> -------- Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft >> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you >> subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Tcpreplay-users mailing list >> Tcpreplay-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > > > -- > Aaron Turner > http://synfin.net/ Twitter: @synfinatic http://tcpreplay.synfin.net/ > - Pcap editing and replay tools for Unix & Windows Those who would give up > essential Liberty, to purchase a little temporary Safety, deserve neither > Liberty nor Safety. > -- Benjamin Franklin > "carpe diem quam minimum credula postero" > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Tcpreplay-users mailing list > Tcpreplay-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Tcpreplay-users mailing list > Tcpreplay-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support -- Aaron Turner http://synfin.net/ Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin "carpe diem quam minimum credula postero" ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support