Dedicated server offline, only connection through SSH

Discussion in 'Site & Server Administration' started by joujoba, Feb 16, 2010.

  1. #1
    hello

    my dedicated server is offline, i cannot access it through any of it's IP's or domains.
    i can only access it through SSH, i tried rebooting it through SSH but that did not fix the problem.

    i tried restarting several things:

    but that also didn't work, i uninstalled drweb but still the same...

    I'm using Plesk v9.3.0
    thanks
     
    joujoba, Feb 16, 2010 IP
  2. ddmd

    ddmd Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check if Apache is running:

    # service httpd status

    Of run netstat -tanep |grep LISTEN

    To see what is running.

    --dd http://sucuri.net
     
    ddmd, Feb 16, 2010 IP
  3. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hello
    httpd (pid XXXX) is running...
    but still i cannot access my server
     
    joujoba, Feb 16, 2010 IP
  4. bogdanas

    bogdanas Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try disabling iptables:
    service iptables stop
    or
    /etc/init.d/iptables stop
     
    bogdanas, Feb 16, 2010 IP
  5. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank you very very very much it worked!
    should i start it again? or do anything else?

    what seemed to be the problem?
     
    joujoba, Feb 16, 2010 IP
  6. bogdanas

    bogdanas Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I had this problem myself once, so that was lucky guess :). Looks like Your 80 port is closed, You should open it with:
    iptables -A FORWARD -d YOUR_IP_ADDRESS -p tcp --dport 80 -j ACCEPT
    Code (markup):
    Some Reading:
    http://www.howtoforge.com/linux_iptables_sarge
    Code (markup):
    And good luck with iptables, you will need it
     
    bogdanas, Feb 16, 2010 IP
  7. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    lol thanks anyways, hopefully this doesn't happen again.
    isn't it a risk to open such a port?
     
    joujoba, Feb 16, 2010 IP
  8. bogdanas

    bogdanas Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Emm... Well It's HTTP default port :), without ir sites won't work (as it happened).
     
    bogdanas, Feb 16, 2010 IP
  9. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Install APF, its a good policy control script for iptables.
     
    FavouritesBlog, Feb 16, 2010 IP
  10. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    by your IP address you mean the root IP address of the server or each domain IP address (sub IP's)
    by the way when running it i got this error:
     
    joujoba, Feb 16, 2010 IP
  11. jakd

    jakd Peon

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    try csf too, www.configserver.com
    it has a gui, makes everything easier.
     
    jakd, Feb 17, 2010 IP
  12. Ashley Merrick

    Ashley Merrick Greenhorn

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #12
    Its quite Common for the default CentoOS and a few other OS's depending on there installation to have all Port's block incoming apart from the SSH port, as others had said you need to install a Firewall which will open the basic port's aswel as any other port's that you may need.

    As disabling iptables opens your server up to a large amount of attacks and the extra Security features with CSF really can help you with small DDOS and other attacks.
     
    Ashley Merrick, Feb 17, 2010 IP