NETWORKING : Create a setup so that you can ping GOOGLE but not able to ping FACEBOOK from same system


In this blog I'm going to show you how to create a setup that can ping some specific websites.


Here I'm creating a setup that can ping GOOGLE but not able to ping FACEBOOK from same system.

Believe me it's so simple, it's just a game of networking and routing table.

What is routing table?


  • A table is maintained by the internal router called as Routing table.
  • It helps the internal router to decide on which interface the data packet should be forwarded.

 

Routing table consists of the following three fields-

  1. IP Address of the destination subnet
  2. Subnet mask of the subnet
  3. Interface


Let's see how to create such setup:

1. Check the ip address and netmask of the system.



2. Here you can see I'm able to ping Google and Facebook.




3. Check the ip of google.
    Here i've used nslookup command to check the ip.



4. Delete the Internet Gatewaty for all Ip.



5. Then add rule in routing table according to google's ip so that google's ip will come in that range and add internet gateway for it.



6. Then check by pinging Google and Facebook.


Here you can see it's able to ping google.com.


But it's not able to ping facebook.com.

Facebook server comes under different ip range.
And I have not given any rule in routing table for the range of Facebook server . That's why it's not able to ping Facebook.

Hope you liked my blog :)


Comments

Popular posts from this blog

Automation Using Python

NETWORK TOPOLOGY

Chat Server using UDP