Koozali.org: home of the SME Server

Services (Ports) not reachable - help requested

Offline snuggles99

  • **
  • 27
  • +0/-0
Services (Ports) not reachable - help requested
« on: September 12, 2012, 11:25:04 AM »
Hello Everybody,

I am a beginner to Linux and SME. I have installed a SME Server V8 on a normal PC using 2 ethernet cards and 1 modem for connection to the internet. I am running the machine is "Server and Gateway" moder, however during installtion I changed in once to "Private Server and Gateway", however I switched back to "Server and Gateway".

No everything is set up and internally the machine is working fine as Web-Proxy, Emailserver, MySQL Server, Fileserver.

However the services which should be reached from outside (Webserver (Apache) and Emailserver (IMAPS)) are not reachable as all ports are closed. I can see this by making a port scan from an outside Website (dnstools.ch) to my current IP. To make a cross check I installed another SME Server on another machine and made a port scan (right after the out of the box installation, not having configured anything) and could see that the required ports (80, 143) are open.

So I conclude: during my configuration of the main machine I have done something which rendered these services unreachable against the internet.

Does anybody have an idea what to do here?
Do I need to supply any additional information?

Thanks in advance for any help!

regards
Stefan

Offline snuggles99

  • **
  • 27
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #1 on: September 26, 2012, 03:49:08 PM »
Is my request unclear, do I need to explain more, or give more information?

Thank you for at least any hint if my request is "too stupid"

regards
Stefan

Offline _alex

  • ****
  • 103
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #2 on: September 26, 2012, 04:09:14 PM »
Just in case, are You sure that You are conneted to the internet with a modem (vs a router)?
What is the result of the ifconfig command? You don't need to post the result here, but check that the address for your internet bound card don't start with 192.168. 172.16. or 10.

Offline snuggles99

  • **
  • 27
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #3 on: September 26, 2012, 04:28:39 PM »
Well in order to make sure, here is my result of ifconfig (I am connected via a modem)
(I have replaced last digits under ppp0 myself by xxx.xxx!)
So my external network interface is not connected to 192.178.something, isn't it?:

Code: [Select]
eth0      Link encap:Ethernet  Hardware Adresse C8:60:00:E2:67:B5
          inet Adresse:192.168.171.1  Bcast:192.168.171.255  Maske:255.255.255.0
          inet6 Adresse: fe80::ca60:ff:fee2:67b5/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2316339 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4652982 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:190557171 (181.7 MiB)  TX bytes:6518080849 (6.0 GiB)
          Interrupt:50 Basisadresse:0x8000

eth1      Link encap:Ethernet  Hardware Adresse 74:EA:3A:81:D2:D4
          inet6 Adresse: fe80::76ea:3aff:fe81:xxxx/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5835735 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4069663 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:6372030092 (5.9 GiB)  TX bytes:389903940 (371.8 MiB)
          Interrupt:169 Basisadresse:0xa000

lo        Link encap:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:517744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:517744 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:77724218 (74.1 MiB)  TX bytes:77724218 (74.1 MiB)

ppp0      Link encap:Punkt-zu-Punkt Verbindung
          inet Adresse:188.109.xxx.xxx  P-z-P:188.109.xxx.xxx  Maske:255.255.255.255
          UP PUNKTZUPUNKT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:818450 errors:0 dropped:0 overruns:0 frame:0
          TX packets:680033 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:3
          RX bytes:564944621 (538.7 MiB)  TX bytes:69367458 (66.1 MiB)

Thank you for your interest in my case!

Offline _alex

  • ****
  • 103
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #4 on: September 26, 2012, 04:43:34 PM »
Looks good, at least to me.
The bad news, is that at this point I have no idea how to help You further... Sorry

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Services (Ports) not reachable - help requested
« Reply #5 on: September 27, 2012, 12:01:14 AM »
please post result of:
Code: [Select]
netstat -an|grep "LISTEN "
here is mine... to your info:
Code: [Select]
[root@guepardo ~]# netstat -an|grep "LISTEN "
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:10050               0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:10051               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:995                 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:3306                0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:139               0.0.0.0:*                   LISTEN     
tcp        0      0 192.168.13.1:139            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:80                  0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:980               0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:8021              0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.2:53                0.0.0.0:*                   LISTEN     
tcp        0      0 192.168.13.1:53             0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:3128              0.0.0.0:*                   LISTEN     
tcp        0      0 192.168.13.1:3128           0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:26                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:1723                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:636                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:3551                0.0.0.0:*                   LISTEN     
tcp        0      0 :::10050                    :::*                        LISTEN     
tcp        0      0 :::10051                    :::*                        LISTEN     
[root@guepardo ~]#
note the 143 and 80 ports as LISTEN.


and JUST TO BE SURE, verify the system status:
Code: [Select]
db configuration  show SystemMode   

Again, here is mine for you info:
Code: [Select]
[root@guepardo ~]# db configuration  show SystemMode   
SystemMode=servergateway
...

Offline snuggles99

  • **
  • 27
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #6 on: September 27, 2012, 02:47:03 PM »
Okay, here are my results:
Code: [Select]
[root@smeserver ~]# netstat -an|grep "LISTEN "
tcp        0      0 0.0.0.0:993                 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:995                 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:3306                0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:139               0.0.0.0:*                   LISTEN
tcp        0      0 192.168.171.1:139           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:80                  0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:980               0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.2:53                0.0.0.0:*                   LISTEN
tcp        0      0 192.168.171.1:53            0.0.0.0:*                   LISTEN
tcp        0      0 192.168.171.1:22            0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:3128              0.0.0.0:*                   LISTEN
tcp        0      0 192.168.171.1:3128          0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:26                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:636                 0.0.0.0:*                   LISTEN

and

Code: [Select]
[root@smeserver ~]# db configuration  show SystemMode
SystemMode=servergateway

but still checking from outside I get following result:


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Services (Ports) not reachable - help requested
« Reply #7 on: September 27, 2012, 03:00:23 PM »
snuggles99:

it seems that something went wrong during the switch between server mode..
then you should file a bug asap.. you will be steered in the right direction to solve your problem

so, please, open a bug in bugzilla and report here the reference for future readers, thank you

Offline snuggles99

  • **
  • 27
  • +0/-0
Re: Services (Ports) not reachable - help requested
« Reply #8 on: September 27, 2012, 03:40:05 PM »
OK, done.
Thanks for the advice.

regards
Stefan

Offline Stefano

  • *
  • 10,894
  • +3/-0