• 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;.

This Article Has Been Shared 675 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Cloud Computing 3D Rendering And Scope In Film Industry

    Cloud Computing 3D Rendering Has Definite Scope in Film Industry which might alarm the Stars of tomorrow and relieve the Producers investing in the Films.

  • Juju on Rackspace Cloud Server : Test Drive with Ubuntu 12.04

    Juju on Rackspace Cloud Server is a test drive in real time. It is some what like driving a F1 car on a busy avenue for the first time in life. Start the Cloud. And the ride is too without wearing helmet – on an Operating System without any smartness – Windows 7 with PuTTY. […]

  • SaaS : Everything You Wanted To Know

    SaaS or Software as a Service is designed by the architecture to be used by the consumer. SaaS is the model oCloud which the general users mostly know to exist.

  • Cloud Computing Grown as There Was Real Demand From The Customers

    Cloud Computing grown as there was a clear cut demand from the consumer. Most users who cares for quality, actually went mad with the traditional web hosts. The crap graphics of cPanel, increasing bill for Virtual Private Server and Dedicated server, “your problem you will solve” type of mentality, usage of worst possible hardwares, all […]

  • Cloud Database : Migrating From Relational Database Model to NoSQL

    Cloud Database is more and being in use now than before. The question of migrating from relational database model to NoSQL Database is becoming more important.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • WordPress Link to text Fragment February 27, 2021
  • How to Protect IP Cameras From Hackers February 25, 2021
  • 6 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Enable Ping on HP Cloud Server : Router and Security Group Settings," in The Customize Windows, March 19, 2015, February 27, 2021, https://thecustomizewindows.com/2015/03/enable-ping-on-hp-cloud-server-router-and-security-group-settings/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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