[rtmpdump] rtmpsuck configuration

Monsieur Video monsieurvideo at gmail.com
Mon Feb 8 19:24:52 CET 2010


On 7 February 2010 08:43, <hyc at highlandsun.com> wrote:

> On Sat, Feb 06, 2010 at 04:55:45PM -0800, Rtmp wrote:
> > I'm trying to configure rtmpsuck on a linux box which is not one which I
> am running the flash player on.  My PC has the linux box as its default
> gateway and the linux box is configured as a router, so in theory I should
> be able to capture streams passing through that box.  I've tried the setting
> up the iptables as described in the documentation.  I'm not sure if I need
> to specify a user in my redirect statement since the traffic is not
> generated locally.  The end result is that I can play my streams fine, tcp
> dump seems to indicate the stream is passing through the router as expected,
> but rtmpdump doesn't do anything.
> >
> > Thanks for any help you can give me or suggestions for debugging this.
>
> The example iptables command only works for locally generated connections.
> You'll
> have to read the iptables doc yourself to come up withthe proper command
> for a
> router. I don't know it offhand, and I'm on the road and unable to research
> it
> at the moment.
>

It should just be a matter of using the PREROUTING chain rather than OUTPUT,
i.e.:
 iptables -t nat -A PREROUTING -p tcp --dport 1935 -j REDIRECT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20100208/9769483f/attachment.htm>


More information about the rtmpdump mailing list