Creating a Setup to ping Google but not to ping Facebook from same system
2 min readJan 1, 2021
ARTH — Task 13 👨🏻💻
Task Description📄
🔰 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
route -n
By looking at the routing table there is no rule for connecting to internet.
Step-2 :- TRY TO PING
ping <ip_address>
Trying to ping both Google and Facebook IP’s but network is unreachable
Step-3 :- CREATE RULE IN ROUTING TABLE
route add -net 142.25.67.0 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
ping 142.250.67.132
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