"?? Setup so that you can ping google but not able to ping Facebook from same system"
Nitin Tilwani
Serving Notice Period | SDE@ DevOps engineer at Nykaa | Python | RHCSA | Docker | Kubernetes | Ansible | AWS | Kong || RHCE Certified
STEP1:- Firstly analyze your routing table and save your gateway IP , and also check the connectivity to google and Facebook.
Here you can see , i can connect to both , google as well as Facebook.
STEP2:- Now the first rule of routing table helps us to connect with all. But i have to connect with google only. So delete the first routing rule, and after check whether you can ping to google and Facebook.
STEP3:- Now find the ip of google by the command nslookup google.com , So the ip of google is 142.1250.194.14. SO i have to only allow the ip's who are in range of google ip's.
As well as check the routing table also.
And now you can see that , we cannot ping fb.com but we can ping google.com.
?
Salesforce DevOps Engineer at Red Hat
4 年Great ??