SETUP BY WHICH WE CAN PING GOOGLE BUT NOT FACEBOOK FROM SAME SYSTEM
Here we gonna Create a Setup by which we can Ping Google But Not able to ping Facebook from same system.
As we know that, whenever we PING any of the IP from our System, It will start to create a Network packets but ROUTING TABLE is the one who decides whether we have to send this Packets or not by seeing their ROUTER RULES. If the IP is comes under the IP ranges that’s present in Routing Table of our OS, then it will start to send the packets else it wouldn’t possible to send the packets to that IP.
ROUTING TABLE: In computer networking a routing table, or routing information base (RIB), is a data table stored in a router or a network host that lists the routes to particular network destinations, and in some cases, metrics (distances) associated with those routes. All IP-enabled devices, including routers and switches, use routing tables.
STEP-1:- For doing this practical I have used the RED HAT 8 Linux OS. Command to see the Routing table:-
Here, my OS has 4 Rules in my OS Routing Table. This rules are by-default present in all the OS, depends on their IP Address.
STEP-2:- If you try to Ping the Google and Facebook, you will see it is Pinging:-
STEP-3:- I am removing the default rule from the routing table. After ping the Google and facebook it was not reachable.
NETMASK:- A netmask is a 32-bit binary mask used to divide an IP address into subnets and specify the network’s available hosts. In a netmask, two of the possible addresses, represented as the final byte, are always pre-assigned and unavailable for custom assignment. For example, in 255.255.225.0, “0” is the assigned network address.
GATEWAY:- A gateway is a piece of networking hardware used in telecommunications for telecommunications networks that allows data to flow from one discrete network to another.
STEP-4:- Now for completing this practical we just only have to add 1 rule in our OS Routing table, by which it only ping google but not facebook.
Thanks For Reading!!!!
This Task done under the mentorship of Mr. Vimaldaga sir at ARTH - The School of Technologies