Task:: Create a Setup so that you can ping google but not able to ping Facebook from same system
A routing table is a set of rules, often viewed in table format, that is used to determine where data packets traveling over an Internet Protocol (IP) network will be directed.
We have default environment where we can ping all ip as we have rule 0.0.0.0 in routing table and system ip has 192.168.1.7
We can ping google and facebook as well
Here we can conclude that google ip is 172.217.167.228
So first of all we have to delete the rule 0.0.0.0 which allows all ips to ping and after that we have to make rule which allows to ping google only by ruleroute add -net n/w_name netmask range_of_n/w gw gateway_ip NIC
here is the routing table after adding the rule which allows to ping google only
We can see that we can ping google but not facebook .
TASK COMPLETED Successfully✌🏻👨🏻💻
Thanks for reading !!!😊✨