Create a setup so that you can ping google but not Facebook from the same system.

  1. type route -n

2. you need to check if your system is pinging to google or not

use command nslookup google.com

3.type route del -net 0.0.0.0

this command helps to not reach the internet gateway. if you try to ping other system through internet it will not ping.

so , after deleting the net gateway you need to add the ip address of google to your system. It will reach only google not other gateway.

4. try pinging the google now

5. now at the last we need to ping google but not facebook

--

--

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