[Red5] Bind to port 80 is impossible, not a kinda noob trouble here!
Kunthar
kunthar at gmail.com
Thu Feb 12 17:18:21 PST 2009
I am not riled anyway.
This is meaningless to bind port by using iptables.
Server will have an extra overhead and i do not want this.
I had working this binding thingy on 0.7
This is what i meant.
I now svn co from 0.8 RC2 and trying to figure out what in deep would be.
Let you know and better i'll submit a patch if possible to jira.
Peace
Kunth
On Fri, Feb 13, 2009 at 3:11 AM, Tyler Kocheran <rfkrocktk at gmail.com> wrote:
> Hey, we're just trying to help. No need to get 'riled.
>
> On Thu, Feb 12, 2009 at 4:31 PM, Kunthar <kunthar at gmail.com> wrote:
>>
>> Why?
>> I dont have to and i dont want to do this!
>>
>>
>>
>> On Wed, Feb 11, 2009 at 4:30 PM, Walter Tak <walter at waltertak.com> wrote:
>> > You can reroute incoming traffic for port XXX to IP2:portYYY with
>> > iptables.
>> >
>> > Example:
>> >
>> > # redirecting incoming traffic for port 1935 to port 11935 on the other
>> > IP
>> > of this box
>> > /sbin/iptables -t nat -A PREROUTING -p tcp -d 10.10.10.10 --dport 1935
>> > -j
>> > DNAT --to 123.123.123.123:11935
>> >
>> > Read about more "multihomed" issues in this thread ;
>> > http://osflash.org/pipermail/red5_osflash.org/2008-October/026620.html
>> >
>> >
>> >
>> >> I have two ip address. Check ifconfig man!
>> >> apache is already listening on other ip.
>> >> I can bind port 80 to second ip in normal conditions.
>> >>
>> >> --> spring or whatever sends null to tomcat when port is 80. This is
>> >> the problem.
>> >> Anyone could resolve this, just send me a diff of file then i can
>> >> rebuild
>> >> red5.
>> >>
>> >> Peace
>> >> Kunth
>> >>
>> >>
>> >>
>> >> On Wed, Feb 11, 2009 at 2:28 PM, Miguel Martín-Forero
>> >> <mmartin at imaste-ips.com> wrote:
>> >>>
>> >>> Oh, yeah, I see it now. I was confused at first when I saw mysql
>> >>> service
>> >>> running on port 80, but well, I only notice the wrong line.
>> >>> Anyways, you have Apache2 listening on 80 port (a more reasonable app
>> >>> for
>> >>> that port, http; and reading the correct line right now :) so if you
>> >>> are
>> >>> trying to
>> >>> make Tomcat listen on port 80 you'll receive a conflict message, cause
>> >>> that
>> >>> port is already in use. You have to change your tomcat or apache port
>> >>> to
>> >>> another one
>> >>> in order to have both apps running on your machine.
>> >>>
>> >>> Cheers.
>> >>> Kunthar escribió:
>> >>>>
>> >>>> No, because of a line break you see in wrong line :)
>> >>>>
>> >>>> Thanks anyway
>> >>>> Kunth
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> On Wed, Feb 11, 2009 at 2:09 PM, Miguel Martín-Forero
>> >>>> <mmartin at imaste-ips.com> wrote:
>> >>>>
>> >>>>>
>> >>>>> Hmmm, your netstat output shows that you have mysqld listening on
>> >>>>> port
>> >>>>> 80,
>> >>>>> so that's a good reason for not binding your red5 service to an
>> >>>>> already
>> >>>>> open
>> >>>>> port.
>> >>>>> You can also check your open ports using the following command:
>> >>>>> # nmap -v localhost
>> >>>>>
>> >>>>> If you see port 80 open in that list, that's it.
>> >>>>> Cheers.
>> >>>>>
>> >>>>> Kunthar escribió:
>> >>>>>
>> >>>>>>
>> >>>>>> 0.8 RC2
>> >>>>>> Basically red5 is refusing to bind to a second ip on port 80.
>> >>>>>> If i change from port 80 to 81 or any number, everything works
>> >>>>>> okay.
>> >>>>>> Something wrong with src/org/red5/server/tomcat/TomcatLoader.java
>> >>>>>> or
>> >>>>>> springframework ultra smart loader shitty.
>> >>>>>>
>> >>>>>> NO, i am not running red5 more then once! (watch -n4 'ps aux | grep
>> >>>>>> red5') on my other console.
>> >>>>>> NO, no other apps uses ports (netstat -anp | grep LISTEN)
>> >>>>>> NO, no other confusing applications installed yet under webapps.
>> >>>>>> Just
>> >>>>>> naked red5.
>> >>>>>> NO, apache is not listens on 0.0.0.0 /etc/apache2/ports.conf
>> >>>>>> I've even checked with rkhunter and chkrootkit if something nasty
>> >>>>>> happens,
>> >>>>>> bah.
>> >>>>>> YES, even i have rebooted the server too...
>> >>>>>>
>> >>>>>> Any brave heart(s) around?
>> >>>>>>
>> >>>>>> Peace
>> >>>>>> Kunth
>> >>>>>>
>> >>>>>>
>> >>>>>> /usr/lib/red5 # ifconfig
>> >>>>>> eth0 Link encap:Ethernet HWaddr 00:19:DB:F8:D0:B5
>> >>>>>> inet addr:211.129.114.121 Bcast:213.239.214.127
>> >>>>>> Mask:255.255.255.224
>> >>>>>>
>> >>>>>> eth0:1 Link encap:Ethernet HWaddr 00:19:DB:F8:D0:B5
>> >>>>>> inet addr:74.57.65.85 Bcast:78.47.65.103
>> >>>>>> Mask:255.255.255.248
>> >>>>>>
>> >>>>>>
>> >>>>>> # netstat -anp | grep LISTEN
>> >>>>>> tcp 0 0 0.0.0.0:3306 0.0.0.0:*
>> >>>>>> LISTEN 2417/mysqld
>> >>>>>> tcp 0 0 211.129.114.121:80 0.0.0.0:*
>> >>>>>> LISTEN 3057/apache2
>> >>>>>> tcp 0 0 127.0.0.1:25 0.0.0.0:*
>> >>>>>> LISTEN 2915/exim4
>> >>>>>> tcp 0 0 211.129.114.121:443 0.0.0.0:*
>> >>>>>> LISTEN 3057/apache2
>> >>>>>> tcp6 0 0 :::222 :::*
>> >>>>>> LISTEN 2983/sshd
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> red5.properties
>> >>>>>> # Socket policy
>> >>>>>> policy.host=74.57.65.85
>> >>>>>> policy.port=843
>> >>>>>>
>> >>>>>> # HTTP
>> >>>>>> http.host=74.57.65.85
>> >>>>>> http.port=80
>> >>>>>> https.port=8449
>> >>>>>>
>> >>>>>> # RTMP
>> >>>>>> rtmp.host=74.57.65.85
>> >>>>>> rtmp.port=1935
>> >>>>>> rtmp.event_threads_core=16
>> >>>>>> rtmp.event_threads_max=64
>> >>>>>> # event threads queue: -1 unbounded, 0 direct (no queue), n bounded
>> >>>>>> queue
>> >>>>>> rtmp.event_threads_queue=0
>> >>>>>> rtmp.event_threads_keepalive=60
>> >>>>>> rtmp.send_buffer_size=271360
>> >>>>>> rtmp.receive_buffer_size=65536
>> >>>>>> rtmp.ping_interval=5000
>> >>>>>> rtmp.max_inactivity=60000
>> >>>>>> rtmp.tcp_nodelay=true
>> >>>>>>
>> >>>>>> # RTMPS
>> >>>>>> rtmps.host=74.57.65.85
>> >>>>>> rtmps.port=8443
>> >>>>>> rtmps.ping_interval=5000
>> >>>>>> rtmps.max_inactivity=60000
>> >>>>>> rtmps.max_keep_alive_requests=-1
>> >>>>>> rtmps.max_threads=20
>> >>>>>> rtmps.acceptor_thread_count=2
>> >>>>>> rtmps.processor_cache=20
>> >>>>>> # RTMPS Keystore Password
>> >>>>>> rtmps.keystorepass=password
>> >>>>>>
>> >>>>>> # RTMPT
>> >>>>>> rtmpt.host=74.57.65.85
>> >>>>>> rtmpt.port=8088
>> >>>>>> rtmpt.ping_interval=5000
>> >>>>>> rtmpt.max_inactivity=60000
>> >>>>>> rtmpt.max_keep_alive_requests=-1
>> >>>>>> rtmpt.max_threads=20
>> >>>>>> rtmpt.acceptor_thread_count=2
>> >>>>>> rtmpt.processor_cache=20
>> >>>>>>
>> >>>>>> # MRTMP
>> >>>>>> mrtmp.host=74.57.65.85
>> >>>>>> mrtmp.server=video.englishyourself.com
>> >>>>>> mrtmp.port=9035
>> >>>>>> mrtmp.event_threads_core=4
>> >>>>>> mrtmp.event_threads_max=32
>> >>>>>> # event threads queue: -1 unbounded, 0 direct (no queue), n bounded
>> >>>>>> queue
>> >>>>>> mrtmp.event_threads_queue=0
>> >>>>>> mrtmp.event_threads_keepalive=60
>> >>>>>> mrtmp.send_buffer_size=271360
>> >>>>>> mrtmp.receive_buffer_size=65536
>> >>>>>> mrtmp.ping_interval=5000
>> >>>>>> mrtmp.max_inactivity=60000
>> >>>>>> mrtmp.tcp_nodelay=true
>> >>>>>>
>> >>>>>> # Debug proxy (needs to be activated in red5-core.xml)
>> >>>>>> proxy.source_host=127.0.0.1
>> >>>>>> proxy.source_port=1936
>> >>>>>> proxy.destination_host=127.0.0.1
>> >>>>>> proxy.destination_port=1935
>> >>>>>>
>> >>>>>> # JMX
>> >>>>>> jmx.rmi.port.registry=9999
>> >>>>>> jmx.rmi.port.remoteobjects=
>> >>>>>> jmx.rmi.host=74.57.65.85
>> >>>>>> jmx.rmi.ssl=false
>> >>>>>>
>> >>>>>> -----------------------------------------
>> >>>>>>
>> >>>>>>
>> >>>>>> After start in /usr/lib/red5
>> >>>>>> ./red5.sh
>> >>>>>>
>> >>>>>> Error is:
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting
>> >>>>>> connector:
>> >>>>>> org.apache.catalina.connector.Connector
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat
>> >>>>>> context
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root:
>> >>>>>> /usr/lib/red5
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root:
>> >>>>>> /usr/lib/red5/conf
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Application
>> >>>>>> root:
>> >>>>>> /usr/lib/red5/webapps
>> >>>>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat
>> >>>>>> servlet engine
>> >>>>>> [INFO] [main] org.apache.catalina.startup.Embedded - Starting
>> >>>>>> tomcat
>> >>>>>> server
>> >>>>>> [INFO] [main] org.apache.catalina.core.StandardEngine - Starting
>> >>>>>> Servlet Engine: Apache Tomcat/6.0.18
>> >>>>>>
>> >>>>>> [ERROR] [main] org.apache.coyote.http11.Http11Protocol - Error
>> >>>>>> initializing endpoint java.net.BindException: Address already in
>> >>>>>> use<null>:80
>> >>>>>>
>> >>>>>> at
>> >>>>>> org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502)
>> >>>>>> [tomcat-coyote-6.0.18.jar:na]
>> >>>>>> at
>> >>>>>>
>> >>>>>> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
>> >>>>>> [tomcat-coyote-6.0.18.jar:na]
>> >>>>>> at
>> >>>>>>
>> >>>>>>
>> >>>>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
>> >>>>>> [catalina-6.0.18.jar:na]
>> >>>>>>
>> >>>>>> _______________________________________________
>> >>>>>> Red5 mailing list
>> >>>>>> Red5 at osflash.org
>> >>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>> Red5 mailing list
>> >>>>> Red5 at osflash.org
>> >>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>>>>
>> >>>>>
>> >>>>
>> >>>> _______________________________________________
>> >>>> Red5 mailing list
>> >>>> Red5 at osflash.org
>> >>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>>>
>> >>>>
>> >>>
>> >>> _______________________________________________
>> >>> Red5 mailing list
>> >>> Red5 at osflash.org
>> >>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>>
>> >>
>> >> _______________________________________________
>> >> Red5 mailing list
>> >> Red5 at osflash.org
>> >> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>
>> >>
>> >>
>> >> --
>> >> No virus found in this incoming message.
>> >> Checked by AVG.
>> >> Version: 7.5.552 / Virus Database: 270.10.21/1945 - Release Date:
>> >> 11-02-09
>> >> 08:01
>> >>
>> >
>> >
>> > _______________________________________________
>> > Red5 mailing list
>> > Red5 at osflash.org
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> >
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> --
> And do this, knowing the time, that now it is high time to awake out of
> sleep;
> for now our salvation is nearer than when we first believed.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
More information about the Red5
mailing list