Results 1 to 4 of 4

Thread: no internet connection but LAMP working

  1. #1
    Join Date
    Jun 2012
    Beans
    2

    Unhappy no internet connection but LAMP working

    I got a working server running on ubuntu 12.04.
    I can access through ssh,ftp and http just fine.
    Both from LAN and WAN.

    But i cannot access the internet when I'm working on the server itself.
    "sudo apt-get update" gives me could not find errors.
    a ping to google.com gives me no results.
    Also a ping to another lan machine gives me no results.
    A ping from another lan machine to the the server also gives me timeout error.
    But when i enter the same ip in a browser i just get the normal expected website.

    I also cannot ping any address when i am connected via ssh, which does work just fine.

    The server is behind a router with dhcp enabled and with a virtual server setup.
    port 80,21 and 22 are forwarded to the server's static ip.

    any idea what i did wrong?

  2. #2
    Join Date
    Sep 2006
    Beans
    8,365
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: no internet connection but LAMP working

    Did you crank down the packet filter too much? What does UFW or iptables say?

    Code:
    sudo ufw status

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    10,247
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: no internet connection but LAMP working

    Some ISPs block inbound traffic on ports 80 and 25 to enforce the usual "no servers" rule on residential connections. If you turn off port forwarding for port 80 and look at your router from a remote location with a web browser, what happens?
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Jun 2012
    Beans
    2

    Re: no internet connection but LAMP working

    It gave me this:

    @ubuntu-server:/var/www$ sudo ufw status
    WARN: Dubbel profiel 'Dovecot POP3', laatst gevonden wordt gebruikt
    WARN: Dubbel profiel 'Dovecot Secure POP3', laatst gevonden wordt gebruikt
    WARN: Dubbel profiel 'Dovecot IMAP', laatst gevonden wordt gebruikt
    WARN: Dubbel profiel 'Dovecot Secure IMAP', laatst gevonden wordt gebruikt
    Status: inactief

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •