Can't Ping my Amazon EC2 Server
As I explored in Can't Access Solr from my Webserver on Amazon EC2 Instance,As I discussed in Can't Access Solr from my Webserver on Amazon EC2 Instance, a good understanding of your network setup is crucial. This includes knowing how to configure security settings and access permissions. Pinging was an easy way to go. Pinging was an easy way to go. I ping-ed google. Good. Then i tried to ping my own server. Nothing.
I left it since it wasn’t important, but it sort of bothered me.
Fast forward to Sunday. I am studying SOLR for searches on my site. The New Horizons post discusses experimenting with search engines, and this got me thinking about how Solr works. I was reminded of this challenge when I started experimenting with search engines, as described in New Horizons. I was reminded of this challenge when I started experimenting with search engines, as described in New Horizons.
A Few Hours Later
After mucking about with Ubuntu iptables and ubuntu’s firewall ufw, I finally stumble on a reference in a site the pretty much sent me in the right directions, but not quite 100%.
The Solution
To find a solution, I went to the AWS Management Console. This process is similar to what I described in Can't Access Solr from my Webserver on Amazon EC2 Instance, where I had to configure AWS security settings.
- Go to the EC2Dashboard, and bring up your security groups.
- Choose the correct group for your server.
- Click the INbound tab.
- Click the Edit button.
- Click ‘add rule’, and choose ‘Custom ICMP Rule’.
- Set the protocol to ‘echo reply’, and appropriate ip source.
- repeat 6 and 5 but this time protocol is ‘echo request’
- done!
Now you should be able to ping your server nicely.
Get My Free E-book
Cleaner Living: Breathe through life's difficulties
Learn the scanning breath technique that helped me dissolve decades of emotional baggage. Discover practical tools you can use anywhere to process difficult emotions and find lasting well-being.
We respect your privacy. Your email will only be used to send the download link.