Koozali.org: home of the SME Server

Real Server and port oppening problems

Antony

Real Server and port oppening problems
« on: September 23, 2002, 09:54:18 PM »
Hello,
I have installed Real Server 8 on SME 5.5. Everyting works good in local. The streaming is ok and the Real Server is well configured.

But in the other hand, no one can reach the Real Server from outside. I've downloaded and installed the port opening RMP. All seems to work correctly and I've oppened ports 554,7070 and 8080.
I looked for the ipchan and everyting seem to bo ok :

#/sbin/ipchains -n -L
ACCEPT     tcp  ------  0.0.0.0/0            external.ip         * ->  554
ACCEPT     tcp  ------  0.0.0.0/0            external.ip         * -> 7070
ACCEPT     tcp  ------  0.0.0.0/0            external.ip         * ->  8080
ACCEPT     udp  ------  0.0.0.0/0            external.ip         * -> 554
ACCEPT     udp  ------  0.0.0.0/0            external.ip         * -> 7070
ACCEPT     udp  ------  0.0.0.0/0            external.ip         * -> 8080

When I check the system from outside ports are note responding ?

I've read in some other postes that I can use this command to see if the server is listening :
# netstat -l -n

Results :
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat
tcp        0      0 127.0.0.1:7802          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:7802        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:9090        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:3030          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:3030        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:7878          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:7878        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:5050          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:5050        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:4040          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:4040        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:22986         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:554           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:7070          0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:22986       0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:8080        0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:554         0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:7070        0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:53          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3128            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:980           0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:980         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:981           0.0.0.0:*               LISTEN
tcp        0      0 192.168.0.1:981         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:515             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN
udp        0      0 127.0.0.1:1028          0.0.0.0:*
udp        0      0 0.0.0.0:1027            0.0.0.0:*
udp        0      0 0.0.0.0:6770            0.0.0.0:*
udp        0      0 0.0.0.0:1026            0.0.0.0:*
udp        0      0 0.0.0.0:9875            0.0.0.0:*
udp        0      0 0.0.0.0:1025            0.0.0.0:*
udp        0      0 192.168.0.1:53          0.0.0.0:*
udp        0      0 127.0.0.1:53            0.0.0.0:*
udp        0      0 192.168.0.1:138         0.0.0.0:*
udp        0      0 192.168.0.1:137         0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 0.0.0.0:3130            0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
raw        0      0 0.0.0.0:1               0.0.0.0:*               7
raw        0      0 0.0.0.0:1               0.0.0.0:*               7
raw        0      0 0.0.0.0:6               0.0.0.0:*               7
Sockets du domaine UNIX actives(seulement serveurs)
Proto RefCpt Indicatrs   Type       Etat          I-Node Chemin
unix  0      [ ACC ]     STREAM     LISTENING     1673   /var/lib/mysql/mysql.sock

I don't see anything listening on ports 554,7070 and 8080 from external ip !

Has anyone any idea ? I'm note very good in Linux but your help will be appreciate.

Best regards,
Antony.

Nathan Fowler

Re: Real Server and port oppening problems
« Reply #1 on: September 23, 2002, 10:04:39 PM »
It looks like Realserver has bound itself to your internal network adapter (eth0 in most cases) and not to your external, assuming you are a server+gateway.  Can you configure RealServer to bind itself to an interface?

Antony

Re: Real Server and port oppening problems
« Reply #2 on: September 23, 2002, 10:11:53 PM »
Hello,
Thanks for your quick replay.
I use SME as Server+Gateway you're right. I could not imagine that real server use the internal network adapter ! Thant's maybe the clue. The problem is that I don't know how to switch to the external network adapter. I don't know if I have to set someting in real server or SME or both ?

Thanks for your help.
Best regards,
Antony

Nathan Fowler

Re: Real Server and port oppening problems
« Reply #3 on: September 23, 2002, 11:42:40 PM »
It would be something with Realserver itself, not E-Smith (I would imagine).  I would check your start-up routines and documentation for Realserver, surely you can bind it to an interface.  If all else fails let me know, I've got some code that will allow for port redirection, where you can redirect on the external interface to the internal interface, I'm confident this will work even if you can't get RealServer 8 to listen on the external interface.

Hope this helped,
Nathan

Antony

Re: Real Server and port oppening problems
« Reply #4 on: September 30, 2002, 08:01:40 PM »
Hello,
>Author: Nathan Fowler (evilghost_AT_packetmail.net)
>Date:   09-23-02 14:42

>It would be something with Realserver itself, not E-Smith (I would imagine). I >would check your start-up routines and documentation for Realserver, surely you >can bind it to an interface. If all else fails let me know, I've got some code that >will allow for port redirection, where you can redirect on the external interface to >the internal interface, I'm confident this will work even if you can't get RealServer >8 to listen on the external interface.

You were right. It has nothing to do with SME. The right configuration is :
1- Open ports with the installed open port RMP
2- Go to realserver administration, Menu Configure,  then General Setup, then IP Binding and ad 0.0.0.0 IP adress. That's It ;-)

>Hope this helped,
>Nathan

It helped ;-)

Best regards,
Antony.