ARTH TASK:- Create a Setup so that you can ping google but not able to ping Facebook from same system
Task :13
Task description
>> Create a Setup so that you can ping google but not able to ping Facebook from same system
Step :- 1
Checking the default routing table
cmd :-route -n
By default gateway is opened for facebook and google now we want delete this gateway ,Here both google and facebook are pinging
Step:- 2
Now delete the rule that can ping for evry server
cmd :-route del -net 0.0.0.0
Now rule is deleted now both google and facebook cant ping
Now am going to create a new rule which can ping google
For this we need to know Ip frist for that we use commad
cmd:- nslookup google.com
Now add new rule
cmd:- route add -net 142.250.67.0 netmask 255.255.255.0 gw 192.168.43.1 enp0s3
Now try to ping both google and facebook,facebook won’t ping beacuse we deleted the rule for facebook
Task succesfully completed
Thank for reading 🙏