Pure Networking Setup To Ping Google but not Facebook.

what is router or gateway ?
router is the device used to connect two different networks
Let’s check our routing table.
route -n

as it’s clearly visible that we can go anywhere from the gateway.
Let’s try to ping some webservers
ping <ip_or_website>


Basically route table allow system to create and send the packet. Now we’ll remove the route_ip which let us ping anywhere in internet.
route del -net <dest_ip>

Now try to ping the google and facebook

To ping google we need it’s ip_address

let’s add the rule that is come under the range of above google address.

Now try to ping the google.

try to ping the facebook.

THANK YOU !!