Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2009
    Posts
    58

    Can't ping vps, but sites work fine

    The sites on the vps work fine. But I can't ping the server. Hostname lookup is fine, just nothing ever comes back. Using cpanel/virtuozzo. Is there some setting in the server or firewall (virtuozzo, advanced mode) that would keep ping from working?

    Thanks.

  2. #2
    Join Date
    May 2003
    Location
    Kirkland, WA
    Posts
    4,448
    Quote Originally Posted by turbo2ltr View Post
    The sites on the vps work fine. But I can't ping the server. Hostname lookup is fine, just nothing ever comes back. Using cpanel/virtuozzo. Is there some setting in the server or firewall (virtuozzo, advanced mode) that would keep ping from working?

    Thanks.
    Many networks block ICMP. I'd talk to your network admins.
    Nick Nelson
    Sr. Director & GM, VAS
    Demand Media
    425.298.2282 nn@demandmedia.com

  3. #3
    Join Date
    Dec 2009
    Posts
    58
    ok, thanks!

  4. #4
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    You could determine this yourself to an extent. Run a tcpdump on your VPS then from your home PC ping the VPS IP. So get on the VPS as root and run this:

    tcpdump -nvvv -i venet0:0 host HOME_IP and icmp
    Then ping the VPS IP from HOME_IP. If the ping is getting through to your VPS, you'll see something similar to this:

    21:07:13.118043 IP (tos 0x0, ttl 62, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) HOME_IP > VPS_IP: ICMP echo request, id 3666, seq 1, length 64
    21:07:13.118119 IP (tos 0x0, ttl 64, id 49662, offset 0, flags [none], proto: ICMP (1), length: 84) VPS_IP > VPS_IP: ICMP echo reply, id 3666, seq 1, length 64
    Regards
    Joe
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  5. #5
    Join Date
    Dec 2009
    Posts
    58
    Nice, thanks! Yes, I see the packets coming in. I have so much CLI stuff to learn... thanks.

  6. #6
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Quote Originally Posted by turbo2ltr View Post
    Nice, thanks! Yes, I see the packets coming in. I have so much CLI stuff to learn... thanks.
    It's very possible then that your own firewall rules are blocking icmp. Try this and inspect the iptables rules:

    /sbin/iptables -nL|grep -i icmp
    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  7. #7
    Join Date
    Dec 2009
    Posts
    58
    So what am I looking at here. The iptables help doesnt really tell you much as to what it's actually listing.. I suppose if I knew how to use the iptables, it would be apparent what it's listing..
    Code:
               icmp --  [ip1]                0.0.0.0/0
               icmp --  0.0.0.0/0            [ip1]
               icmp --  [ip2]                0.0.0.0/0
               icmp --  0.0.0.0/0            [ip2]

  8. #8
    Hi,

    1. Please confirm about the IP address.
    2. Please check whether you have enabled anyother firewall(APF, CSF)
    3. Please check the log files ( /var/log/messages, /var/log/secure)

    -Stephan
    --------------
    VHeeds - Remote Infrastructure / WebHosting support
    E-mail: Stephan.heeds@gmail.com

  9. #9
    Join Date
    Oct 2006
    Location
    /usr/src/linux/
    Posts
    700
    A simple traceroute would show where the pings are being dropped and a tcptraceroute to compare the results.
    VPSnoc.com offers high quality Xen® OpenVZ & Windows® Virtual Private Servers at affordable prices.
    99.95% Uptime | 24/7/365 Support | Unmetered bandwidth.
    Follow us: twitter.com/VPSnoc

Similar Threads

  1. Replies: 26
    Last Post: 08-16-2008, 04:12 AM
  2. Ping result is fine but can not access my site
    By manindarkjp in forum Hosting Security and Technology
    Replies: 5
    Last Post: 05-29-2008, 12:42 PM
  3. Will this work fine?
    By champrock in forum Dedicated Server
    Replies: 5
    Last Post: 05-08-2008, 10:41 PM
  4. Ah, more fine police work..
    By unixorn in forum Web Hosting Lounge
    Replies: 1
    Last Post: 02-18-2008, 03:11 PM
  5. Ping & Tracert fine, then y cannot find server?
    By RaghavT in forum Hosting Security and Technology
    Replies: 2
    Last Post: 01-04-2007, 06:05 PM

Posting Permissions

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