From: "Bob Beers" Date: Tue, 21 Nov 2006 00:46:00 +0000 Subject: [LARTC] Re: iptables rule not matching after stream begins Message-Id: <4f6ba3b0611201646k750995d3oe0cd605890b7f2a7@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Trying again, after re-subscribing: On 11/20/06, Bob Beers wrote: > Hello, > > I want to dynamically create DNAT rules for > RTP streams (port-mapping for a SIP proxy). > > If my proxy adds the rule before the first packet > of the RTP stream hits the port, all is well. But, if > the stream begins arriving before my rule is in > place, it never matches. I cannot always be > sure that the info for setting up the rule > arrives sufficiently ahead of the stream. > > I suspect if there is a simple resolution to my > problem. Does anyone else see this behavior, > and will share with me the solution? > > Apologies if there is a better place to seek an > answer to this question, please redirect me as > necessary. > > I am using kernel 2.6.15.4, and iptables 1.3.3. > > My rules are similar to this: > iptables -I PREROUTING -t nat -p UDP \ > -d --dport \ > -j DNAT --to-destination > iptables -I FORWARD -p UDP \ > -d --dport > -- -Bob _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc