PDA

View Full Version : Change rtmpsuck port?


Quintana
07-30-2012, 06:20 PM
Hi, I'm on Linux and I need to change the port rtmpsuck runs on; the server I'm trying to sniff uses a port other than 1935 and I don't know how to do it. I tried with:

iptables -t nat -A OUTPUT -p tcp --dport 190 -j REDIRECT --to-port 1935

But that didn't end up well... rtmpsuck was caught in an endless loop. I was told on IRC that there was a patch that allowed to change the port, but I don't know where's it.

Looking forward for your answers... thanks!

svnpenn
07-30-2012, 10:12 PM
github.com/svnpenn/rtmpdump/commit/1b39

RtmpSuck, support other ports

If you have environment variable set RTMPPORT, it will use it; otherwise default
to 1935. Something like "export RTMPPORT=19350" should work in Bash.

Quintana
07-31-2012, 07:06 AM
Exactly what I needed. Thanks.

compn
08-01-2012, 05:36 AM
hah, tried to help you on irc, but i could not find the commit. thanks svnpenn.

svnpenn
08-01-2012, 10:09 AM
hah, tried to help you on irc, but i could not find the commit. thanks svnpenn.

The "commit" people were looking for was for RtmpSrv. I duplicated it for RtmpSuck after reading this thread. I am going to try to make it a command line switch.