Creating a Setup to ping Google but not to ping Facebook from same system
ARTH — Task 13 👨🏻💻
🔰 Create a Setup so that you can ping google but not able to ping Facebook from same system.
We have to Follow some steps to do this:-
Step-1 :- ROUTING TABLE
By looking at the routing table there is no rule for connecting to internet.
Step-2 :- TRY TO PING
Trying to ping both Google and Facebook IP’s but network is unreachable
Step-3 :- CREATE RULE IN ROUTING TABLE
route add -net 18.104.22.168 netmask 255.255.255.0 gw 10.0.2.2
By creating rule in routing table we can now ping to Google but we can not ping to Facebook.
Step-4 :- CHECK PINGING FROM GOOGLE
We can see here we can ping to Google IP it is pinging and when we trying to ping to the Facebook IP is not working.
Thanks For Reading