Setup to ping google but not Facebook from same system

 Today we will create a setup so that we can ping to google but not facebook by using networking concepts and not a firewall.

First, let's see our routing table by command 

route -n


Currently, we can ping to both google.com and facebook.com



Here, -c refers to the number of counts of ping.

Now, we will delete the rule that allows us to connect to the internet by command 
route del -net 0.0.0.0


Now, we will add a new rule that only allow google to connect.




Now, let's try to ping both again

Facebook Failed

Google Success

 

Thank You for reading.

I would like to thanks Vimal Daga Sir.

My Email — ayanchawlae@gmail.com







 

Comments

Popular posts from this blog

Key Announcements at Microsoft Ignite

Ansible Handlers

Ansible Roles (Httpd + Haproxy)