🔰 Create a Setup so that you can ping google but not able to ping Facebook from same system.
Solution of this task step wise……………….
step1:- Find the IP address of the Facebook and Google.
Solving this step we use nslookup command to find the ip adress of the servers.
Show the IP address of the google servers using nslookup command……..
Using this command show the ip address of google.
Show the IP address of the Facebook servers using nslookup command…….
Step2:- Show all the ip address bound with systems.
Solving this step we use command like,
Step3:- Delete universal route rule to ping any website.
Solve this command use command like,
route del -net 0.0.0.0
step4:- Ping google check google connect or not.
step5:- Ping Facebook check Facebook ping able or not.
step6:- Add the rule for google using command like.
route add -net ***googleIp*** netmask 255.255.***.*** gw **internet gateway** wlp3s0
Add the rule and ping then we find google ping able, but try to ping facebook not ping able why write rule only google address.
step7:-show route table rule is add or not
step8:- Delete rule of google.
route del -net 18.104.22.168 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0
stpe9:- Add rule for facebook rule.
route add -net 22.214.171.124 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0
Step10:- Show rule add or not using command like.
step11:- Ping Facebook check ping able or not.
step11:- Ping google check google ping able or not, but failed why because rule delete for google.
step12:- Delete rule for facebook in the route table.
route del -net 126.96.36.199 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0
step13:- Now add universe rule for ip table.
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 wlp3s0
Thanks for reading artical.