• 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 403 Times!

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

  • 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

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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

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, January 31, 2023, https://thecustomizewindows.com/2015/03/enable-ping-on-hp-cloud-server-router-and-security-group-settings/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT