Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:when': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:file': 0.13; 'how,': 0.16; 'received:173.11': 0.16; 'subject: \n ': 0.16; 'subject:interface': 0.16; 'subject:port': 0.16; 'linux': 0.17; 'header:In-Reply-To:1': 0.22; 'way?': 0.23; 'tried': 0.26; 'server': 0.29; 'subject:some': 0.30; 'subject:?': 0.31; 'there': 0.33; 'to:addr:python-list': 0.33; "i've": 0.34; 'header:User-Agent:1': 0.34; 'be,': 0.34; 'option.': 0.34; 'header:X-Complaints-To:1': 0.35; 'subject:How': 0.35; 'but': 0.37; 'received:org': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'enough': 0.39; 'header:Mime-Version:1': 0.39; 'basic': 0.39; 'to:addr:python.org': 0.39; "i'd": 0.40; 'replay': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed? Date: Wed, 31 Aug 2011 09:20:21 -0700 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 173-11-108-137-sfba.hfc.comcastbusiness.net User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314807648 news.xs4all.nl 2549 [2001:888:2000:d::a6]:47075 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12495 On 8/31/2011 8:37 AM king6cong@gmail.com said... > In fact,UDP is enough for me,I heared that tcpdump and netcat can store > and resend the udp packages to get the replay effect,but I don't know > how, That may be, but I've never tried that. > or is there some better way? I am working on a Linux server and > only some basic terminal tools are available :) If appropriate, I'd try the iptables --tee option. Emile