[rtmpdump] rtmpsrv with osx : ipfw configuration
Howard Chu
hyc at highlandsun.com
Sun Feb 21 11:38:33 CET 2010
Carmelo Ingrao wrote:
> Hello,
>
> I have compiled 2.1c for mac os : rtmpdump works fine, thanks for this amazing
> software.
>
> In order to use rtmpsrv, I need to play with iptables :
>
> sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
>
> But on a mac, there's no iptables, but only ipfw.
>
> So in the readme, there's :
>
> ipfw add 40 fwd 127.0.0.1 1935 tcp from any to any 1935
> ipfw add 40 fwd 127.0.0.1 1935 tcp from any to any 1935 not uid proxy
>
> (little correction for the readme : correct syntax is 127.0.0.1,1935 rather
> 127.0.0.1)
Thanks for the correction. As I stated in that document, I have never tested
this on MacOSX before, that was just a guess based on reading the manual.
> So, i launch this 2 lines on mac :
>
> *MacPro:rtmpdump2.1d Carmelo$ sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any
> to any 1935Password:*
> *00040 fwd 127.0.0.1,1935 tcp from any to any dst-port 1935*
> *
> *
> *MacPro:rtmpdump2.1d Carmelo$ sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any
> to any 1935 not uid proxy*
> *ipfw: uid "proxy" nonexistent*
Obviously you need to use the uid of an account that actually exists on your
machine, and then you need to run the rtmpsuck program using that account.
More information about the rtmpdump
mailing list