not ip-address in netstat command

Discussion in 'Installation/Configuration' started by marra87, Sep 23, 2006.

  1. marra87

    marra87 New Member

    Hi!

    When I run
    [root@localhost ~]# netstat -an | grep LISTEN

    I get the following.
    My IP-address is *.*.*.*
    But I can't access my webserver at :81
    How to get 0.0.0.0 to become my ip?


    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN
    tcp 0 0 *.*.*.*:53 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:953 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:37500 0.0.0.0:* LISTEN
    tcp 0 0 :::993 :::* LISTEN
    tcp 0 0 :::995 :::* LISTEN
    tcp 0 0 :::110 :::* LISTEN
    tcp 0 0 :::143 :::* LISTEN
    tcp 0 0 :::80 :::* LISTEN
    tcp 0 0 :::21 :::* LISTEN
    tcp 0 0 :::22 :::* LISTEN
    tcp 0 0 :::443 :::* LISTEN
     
  2. falko

    falko Super Moderator

    What are the outputs of
    Code:
    ifconfig
    and
    Code:
    netstat -tap
    ?
     
  3. marra87

    marra87 New Member

    ifconfig:
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:0D:61:76:6B:3E
              inet addr:80.*.*.46  Bcast:80.*.*.47  Mask:255.255.255.252
              inet6 addr: fe80::*:*:fe76:6b3e/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:48150 errors:0 dropped:0 overruns:0 frame:0
              TX packets:43554 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:38907536 (37.1 MiB)  TX bytes:7376800 (7.0 MiB)
              Interrupt:17 Base address:0x8000
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:292 errors:0 dropped:0 overruns:0 frame:0
              TX packets:292 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:70735 (69.0 KiB)  TX bytes:70735 (69.0 KiB)
    
    
    netstat -tap:
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:59625                     *:*                         LISTEN      1373/rpc.statd
    tcp        0      0 *:mysql                     *:*                         LISTEN      3079/mysqld
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1355/portmap
    tcp        0      0 *:hosts2-ns                 *:*                         LISTEN      25557/ispconfig_htt
    tcp        0      0 d2h.wris***d.no:domain     *:*                         LISTEN      25683/named
    tcp        0      0 localhost.localdomai:domain *:*                         LISTEN      25683/named
    tcp        0      0 localhost.localdomain:rndc  *:*                         LISTEN      25683/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      25649/master
    tcp        0      0 *:imaps                     *:*                         LISTEN      2652/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      2652/dovecot
    tcp        0      0 *:pop3                      *:*                         LISTEN      2652/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      2652/dovecot
    tcp        0      0 *:http                      *:*                         LISTEN      25579/httpd
    tcp        0      0 *:ftp                       *:*                         LISTEN      25700/proftpd: (acc
    tcp        0      0 *:ssh                       *:*                         LISTEN      1595/sshd
    tcp        0      0 d2h.wris***d.no:ssh        ti221110a081-8508.bb.:60127 ESTABLISHED 23179/1
    tcp        0   2072 d2h.wris***d.no:ssh        ti132110a080-:bluectrlproxy ESTABLISHED 23146/0
     
  4. falko

    falko Super Moderator

    Looks ok, and ISPConfig is running, too. Make sure your firewall doesn't block port 81, and also make sure your ISP doesn't block that port.
    Which distribution do you use?
     
  5. marra87

    marra87 New Member

    Forget it...
    It was an error in the certificate...
    thanks for help!
     

Share This Page