Routing to the specific Route

Sourabhmiraje
3 min readDec 31, 2020

Hello folks,

I am back with another article on Networking. this time we have to create a network setup so that we can ping to the google servers but not other any systems.

Task Description:

🔰 Create a Setup so that you can ping google but not able to ping Facebook from same system

Lets jump to the task…

First I will show you by default my system can go to the internet anywhere on the internet because of destination set to 0.0.0.0

Before pinging we need google and facebook server ip.

I am taking it by using nslookup comand

I am pinging to google below

Now I am pinging to Facebook

As you can see I can go anywhere on the internet.

Now lets manipulate our routing table so that we can ping only google and not other systems.

First I will delete destination 0.0.0.0 so that my system can’t go to the over the internet.

Now my system is not able to ping anything on the internet.

Here I will add route to the google server only.

Now I can able to ping google but not Facebook.

And as you can see we have done our task successfully, yeah…!!!

Please comment below to let me know about the article…

Any suggestions are always appreciated.

Thank You for reading.

Here is my LinkedIn profile to know more about me.

--

--