• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Enable Ping on HP Cloud Server : Router and Security Group Settings

By Abhishek Ghosh March 19, 2015 8:56 am Updated on March 19, 2015

Enable Ping on HP Cloud Server : Router and Security Group Settings

Advertisement

We Need To Tweak The Router and Security Group Settings By Editing The ICMP Rules For Apache2 or Nginx To Enable Ping on HP Cloud Server. Previously, We Have Published Guides on Router & Subnet Settings and Settings of Ingress Egress Policies For Proper Web Server Setup on HP Cloud. This time, we will enable Ping on HP Cloud Server, which is less documented for a beginner. Beginner means, one who has less than a decades experience on UNIX System and Networking. Working with Router demands practical experience. This settings will work for all types of HP Cloud and for DataStax Enterprise.

 

Enable Ping on HP Cloud Server : Understanding Ping and ICMP

 

ICMP stands for Internet Control Message Protocol. This is another Internet Protocol and differs from TCP and UDP. Ping is a computer network software utility used to test the reachability of a host on a network and it is also used to measure the round-trip time for messages sent from the origin to a destination computer.

Without enabling Ping and ICMP, a web server can run quite nicely. Ping can be abused to create denial-of-service attack and Nginx or Apache2 must be configured properly, keeping this basic abuse in mind. We do not recommend to enable Ping or widely open the security settings for ICMP.

Advertisement

---

ICMP, again can be dependent on IPv4 or IPv6. What we are describing is for IPv4, although for IPv6, the technical steps will be the same. Security settings for IPv4 and IPv6 are different from the OS level Firewall and Router. IPv6, can proved to be a bottleneck of security.

 

Enable Ping on HP Cloud Server : Configuration For PHP5-FPM and Nginx as Web Server

 

For a standard PHP5 FPM-Ngnix setup, we need to configure two files for a right Ping response. You need to uncomment ( remove ;) from the /etc/php5/fpm/pool.d/www.conf file :

Vim
1
2
3
4
;pm.status_path = /status
ping.path = /ping
ping.response = pong
;access.log = log/$pool.access.log

You do not need to enable status if only Ping is what you want to work it. Opening status widely will invite more trouble. In the Nginx Site specific file (/etc/nginx/sites-available/default) :

Vim
1
2
3
4
5
6
7
8
9
10
11
location /ping {
    access_log off;
    # allow 127.0.0.1; # localhost
# allow ::1; # IPv6 localhost
    allow all;
      fastcgi_split_path_info ^(.+.php)(.*)$;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
}

Now restart the services :

Vim
1
2
service php5-fpm restart
service nginx -t && service nginx restart

OPTIONAL STEP

If you have the need and SNMP installed, you need to add this line in /etc/snmp/snmp.conf file :

Vim
1
extend php-fpm /etc/snmp/php-fpm-stats

The above is an optional step and you must know what you are doing. SNMP (Simple Network Management Protocol) is separately discussed as well as the setup of SNMP.

 

Enable Ping on HP Cloud Server : Router and Security Group Settings

 

Up to the above step, all can do rightly. Next steps are most important. Create a security group or use an existing one and add a permission for ICMP IP with Custom ICMP Rule with a type and code of -1 against IPv4 as Ingress Policy :

Enable Ping on HP Cloud Server

Lot of fields to work with. Create another rule for the same security group and add a permission for ALL ICMP with a type and code of -1 against CIDR as Ingress and Egress Policy separately. We are showing only Ingress :

Ping HP Cloud Server Security Group Settings

So much wider settings actually not required. You can tighten it by narrowing down the port. With this settings, you’ll get a proper Ping response (Pong) :

Vim
1
ping -c 1 thecustomizewindows.com

Do not Ping others’ server without any reason. Google does not give importance to Ping result. For security reason, you can keep the Ping to closed. Low end old systems on various websites uses Ping to check online status of the server. Basically you can test with cURL :

Vim
1
curl -I https://thecustomizewindows.com/ping

If you open this location – https://thecustomizewindows.com/ping on browser, you will get a “pong” page. That we can emulate with cURL :

Vim
1
curl https://thecustomizewindows.com/ping

You will get this – pong%. Thats the right setup. You can use Pingdom like online tools to test. We actually have no real file at that location. See this settings :

Vim
1
curl https://rtcamp.com/ping

Response :

Vim
1
2
3
4
5
6
7
<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>

This is happening because they kept the /ping location to deny all;.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Enable Ping on HP Cloud Server : Router and Security Group Settings

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Enable Nginx PHP-FPM Status Page (Ubuntu, HP Cloud)

    Here is How To Enable Nginx PHP-FPM Status Page on Ubuntu Server Instance Running on HP Cloud. Enabling Ping Has Difference With Enabling Status.

  • Install WordPress on HP Cloud (Ubuntu, Nginx)

    Here is step by step guide to install WordPress on HP Cloud with one Database Server and one Web server on Ubuntu and Nginx PHP5-FPM platform.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy