ARTH- Task 13
ARTH — Task 13 👨🏻💻
Task Description📄
🔰 Create a Setup so that you can ping google but not able to ping Facebook from same system
As instructed this task need to be done without the use of firewall
So we need make modifications with the routing table of the OS
We can see the routing table in the RHEL 8 by the command:
route -n
The Destination being 0.0.0.0 we are able to ping to any destination IP in the world so we need to remove that by
route del -net 0.0.0.0
Now we can manually check the IP’s of Google and Facebook by the command:
nslookup www.google.com
Similarly for Facebook
nsloolup www.facebook.com
Now we need to run this command so that we can only have the connection with the google IP only:
route add -net 216.58.196.164 netmask 255.255.255.255 gw 192.168.43.1 enp0s3
Now after adding this IP to the routing table we have done the setup successfully
Now if we ping google and Facebook we can see that we are only able to ping the google not to the Facebook
So hence the task is completed
Thank you Mr. Vimal Daga Sir for teaching us so much interesting concepts
Proud to be an ARTH Learner…..!!!!!