Creating a Setup so that we can ping google but not able to ping Facebook from same system

Subhashyadav
2 min readMar 14, 2021

#TECHNICAL BLOG
#MAR POINT
#JGEC
SUBHASH YADAV(18101105016)

Before going ahead we need understand some basic concept of networking.

Whenever we send data or receive data via internet network . It come via some certain rule that is know as network protocol and data has to go some service running with some number known as port no. So what decides which network to send data or not. Here routing come into play. Routing decides some rule that data packet has to follow and these rule decided by routing table. Routing table is kind of rule which decide that will a network able to connect another network or not.

By default , All computer has such a routing table that that computer network can connect to public world but not a network from public world can connect to private world. So route play a important between public network and private network.

SO , Here we going to play some trick with routing table . First we will delete that rule which connect us to all network in public world.

Then we add google network in routing table .Doing so make us capable to connect to google network excluding all public network. Then we will remove google network and then will add facebook network. Doing so we can achieve our goal.SO lets get stated.

IN This we can connect to both facebook and google.

IN this I have deleted the the public world connecting rule .route del -net 0.0.0.0 done all the magic here. Now you can see I am not able to anyone.

Here I have added the rule for google network. So I am able to connect google but not Facebook.

Thanks for Reading. If you like it do leave like and do follow.

--

--