LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2011, 09:13 AM   #1
sh4ka
LQ Newbie
 
Registered: Apr 2011
Posts: 13

Rep: Reputation: 0
Red5 + CentOS - Scripts can't connecto to media server.


Hi everybody,

The problem I'm facing is web scripts that need to connect to the server can't find a way to connect to port 1935, it seems to be blocked in some how...

Also, testing from the red5 test page (http://server.ip.address:5080/demos/port_tester.html) that tests the red5 common ports is also failing, when it should success.

Please note that:

* There is no firewall running on the server.
* Selinux has been disabled.
* No tcpwrappers rules working.
* Red5 service is up and running.

As said before, service is running and connections are responding, from inside and outside the server. But when I connect from any web scripts, it seems to be hang there and the connection is never stablished.

Code:
[root@my.server.com:~]service red5 status
red5 (pid 17731) is running...
Code:
[root@my.server.com:~]telnet localhost 5080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Code:
[root@my.server.com:~]telnet localhost 1935
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Code:
[root@my.server.com:~]lsof -i:1935
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 17731 root 92u IPv6 3864989 TCP *:macromedia-fcs (LISTEN)
[root@my.server.com:~]
Code:
[root@my.server.com:~]lsof -i:5080
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 17731 root 100u IPv6 3864990 TCP *:5080 (LISTEN)
[root@my.server.com:~]
Hope you can give me any ideas about why it's not working on the port pass test. I attached the image of the failed test so you can take a look.

Thanks a lot!
Attached Thumbnails
Click image for larger version

Name:	failed.png
Views:	13
Size:	80.6 KB
ID:	6942  
 
Old 05-04-2011, 09:40 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Did you try the telnet tests from the remote host rather than the application? That is to say your issue may not be that the port isn't responding but rather something in the application.

telnet my.server.com 5080
telnet my.server.com 1935

Do those connect? Do they immediately drop?

I've seen issues where security in the application itself causes ports to drop even though they're open from a system perspective. Also is there any firewall device (switch/router/load balancer) between the systems? If so it may be that device that is blocking the traffic.

Finally it isn't exactly correct to say there is no firewall on the server - it is built into RHEL/CentOS. It may be correct to say you have it stopped. Run "iptables -L" to see what it is showing. If it is stopped there should only be 3 entries. Try running "service iptables start" then rerunning "iptables -L" to see if they are different. Try running "service iptables stop" then rerunning "iptables -L" to see if they are different.
 
Old 05-05-2011, 05:34 AM   #3
sh4ka
LQ Newbie
 
Registered: Apr 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your answer.

It is responding to telnet requests from outside. Also, there is no router/switch/balancer between this server.
iptables rules are empty, that's what I mean, even with the service started it shows this:

Code:
[root@myserver:~]iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
[root@myserver:~]
I'm starting to think it's an app problem...

Thanks.
 
Old 05-05-2011, 09:00 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I agree - it's probably the app. As noted in my prior post some apps have their own security settings that have to be modified to allow connections. (Oracle and Nagios are two I can think of off the top of my head.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start red5 server via "./red5.sh" ceashton Linux - Software 5 08-08-2010 05:16 AM
How install red5 on centos 5 totallyfreak Linux - Server 4 07-03-2010 02:32 AM
LXer: Set Up A Linux PlayStation 3 Media Server (CentOS 5.2) LXer Syndicated Linux News 0 01-28-2009 01:20 PM
BASH: how to connecto to an ftp server poeta_boy Programming 9 01-26-2004 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration