đź”° Use concept of routing table for perform this amazing Setup
Where you can ping google but not able to ping Facebook and Twitter from same system without any firewall
Just by using simple and right concepts of networking
First I show you now my system can connect to all the system who have public IP
“here I take the example of www.google.com, www.twitter.com, www.facebook.com”
First of all we check our existing route table by using cmd “route -n”
“here you can see in the first row of routing table that we can connect to all the Public IPs in the world”
So we first need to delete that rule of connectivity for this we have a CMD “route del -net <rule>”
Now we try ping with www.google.com, www.facebook.com, www.twitter.com
As you see we can’t able to connect with www.google.com, www.twitter.com
Now add new rule for make connectivity of your system with only google.com with using CMD:-
“route add -net 142.250.67.0 gw 192.168.80.0 netmask 255.255.255.0 ens160”
After add new rule we can able to ping with google only