Creating a Setup to ping Google but not to ping Facebook from same system

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:-

route -n

By looking at the routing table there is no rule for connecting to internet.

ping <ip_address>

Trying to ping both Google and Facebook IP’s but network is unreachable

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.

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store