<div class="gmail_quote">On 7 February 2010 08:43, <span dir="ltr"><<a href="mailto:hyc@highlandsun.com">hyc@highlandsun.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, Feb 06, 2010 at 04:55:45PM -0800, Rtmp wrote:<br>
> 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.<br>
><br>
> Thanks for any help you can give me or suggestions for debugging this.<br>
<br>
</div>The example iptables command only works for locally generated connections. You'll<br>
have to read the iptables doc yourself to come up withthe proper command for a<br>
router. I don't know it offhand, and I'm on the road and unable to research it<br>
at the moment.<br></blockquote><div><br>It should just be a matter of using the PREROUTING chain rather than OUTPUT, i.e.:<br> iptables -t nat -A PREROUTING -p tcp --dport 1935 -j REDIRECT<br><br><br></div></div>