network problem

Discussion in 'Server Operation' started by DataVampire, Jul 8, 2010.

  1. DataVampire

    DataVampire New Member

    i have been having a few problems with debian lenny(64bit)
    basic problem is i cannot see my own domain/ and controle panel, the only way i can is via local ip, any thing out side of my local ip is a 404 not found.

    while loooking around

    ebian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Thu Jul 8 04:46:06 2010 from 192.168.2.2
    server1:~# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:30:1b:bd:10:dc
    inet addr:192.168.2.8 Bcast:192.168.2.255 Mask:255.255.255.0
    inet6 addr: fe80::230:1bff:febd:10dc/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:167 errors:0 dropped:0 overruns:0 frame:0
    TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:18469 (18.0 KiB) TX bytes:15834 (15.4 KiB)
    Interrupt:17

    eth0:1 Link encap:Ethernet HWaddr 00:30:1b:bd:10:dc
    inet addr:78.33.106.201 Bcast:78.33.106.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:17

    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:50 errors:0 dropped:0 overruns:0 frame:0
    TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:18112 (17.6 KiB) TX bytes:18112 (17.6 KiB)


    this part caught my attention

    eth0 Link encap:Ethernet HWaddr 00:30:1b:bd:10:dc
    inet addr:192.168.2.8 Bcast:192.168.2.255 Mask:255.255.255.0

    should Bcast:192.168.2.255 not be Bcast:192.168.2.0

    does anyone know what the command woudl be to edit this please or any idea of my problem
    thank you
     
  2. Mark_NL

    Mark_NL Member

    bcast of 192.168.2.255 is fine, .0 is your network (since nmask is /24)

    anyway, check "netstat -tapn" and see if apache is listening on your lan adapters as well.
     
  3. DataVampire

    DataVampire New Member

    After looking at the output of netstat -tapn
    i don`t think its listening to port 80 on my 192.168.2.8

    How can i add the port 80 to the internal ip please

    so for example i would need to add 192.168.2.8:80

    thank you
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Can you post the output of
    Code:
    netstat -tap
    ?
    Does your router forward port 80 to your server?
     
  5. DataVampire

    DataVampire New Member

    Hi thank you fir the reply. the port is forwarded but not needed as i have tried a dmz zone for the server. atm the firewal is off/

    Code:
    server1:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:imaps                 *:*                     LISTEN      2626/couriertcpd
    tcp        0      0 *:pop3s                 *:*                     LISTEN      2645/couriertcpd
    tcp        0      0 *:poppassd              *:*                     LISTEN      2699/xinetd
    tcp        0      0 *:mysql                 *:*                     LISTEN      2479/mysqld
    tcp        0      0 *:47498                 *:*                     LISTEN      2175/rpc.statd
    tcp        0      0 *:submission            *:*                     LISTEN      2699/xinetd
    tcp        0      0 *:pop3                  *:*                     LISTEN      2635/couriertcpd
    tcp        0      0 *:imap2                 *:*                     LISTEN      2615/couriertcpd
    tcp        0      0 *:sunrpc                *:*                     LISTEN      2164/portmap
    tcp        0      0 *:ssmtp                 *:*                     LISTEN      2699/xinetd
    tcp        0      0 *:ftp                   *:*                     LISTEN      2699/xinetd
    tcp        0      0 78-33-106-201.st:domain *:*                     LISTEN      2387/named
    tcp        0      0 server1.skull-an:domain *:*                     LISTEN      2387/named
    tcp        0      0 localhost.locald:domain *:*                     LISTEN      2387/named
    tcp        0      0 *:ssh                   *:*                     LISTEN      2402/sshd
    tcp        0      0 localhost.lo:postgresql *:*                     LISTEN      2553/postgres
    tcp        0      0 *:smtp                  *:*                     LISTEN      2699/xinetd
    tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      2387/named
    tcp        0      0 server1.skull-and-b:ssh 192.168.2.2:50733       ESTABLISHED 5951/0
    tcp6       0      0 [::]:www                [::]:*                  LISTEN      2838/apache2
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      2402/sshd
    tcp6       0      0 localhost:postgresql    [::]:*                  LISTEN      2553/postgres
    tcp6       0      0 [::]:https              [::]:*                  LISTEN      2838/apache2    
     
  6. Mark_NL

    Mark_NL Member

    err, your apache is only listening on all ipv6 interfaces?
     
  7. DataVampire

    DataVampire New Member

    sorry im new to this, how do i fix it
    Thanks
     
  8. Mark_NL

    Mark_NL Member

    check your /etc/apache2 config files.
     
  9. DataVampire

    DataVampire New Member

    Thank you

    Any idea wat the commands woudl be for debian ect pls so i may check them
     
  10. Mark_NL

    Mark_NL Member

    err, what?

    cd /etc/apache2

    then check the files in that dir ..

    i'd suggest you install midnight command

    Code:
    apt-get install mc
    mc
    
    happy browsing
     
  11. DataVampire

    DataVampire New Member

    wow thank you what a good addon that one is

    Is there a way i can check to make sure apche is serving on my lan, i know its workign perfectly serving http pages outside of my lan.

    Where do i check ?
    What am i looking for
    many thanks for the responses so far
     
  12. falko

    falko Super Moderator Howtoforge Staff

  13. DataVampire

    DataVampire New Member

    Thank you falko but als it did not work..............
    Thank you anyhow
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Do you get any errors in your browser?

    Are there any errors in Apache's error log?
     

Share This Page