ARTH- Task 13
Task Description:
Create a Setup so that you can ping google but not able to ping Facebook from the same system.
First we use system that can ping both servers i.e facebook and google.
Let’s start the task:
Step 1: First check the rules in routing table.
command: route -n
Step 2: Check the IP of Google and facebook using nslookup
command: nslookup www.google.com , nslookup www.facebook.com
Step 3: Now delete the Universal destination IP.
command: route del -net 0.0.0.0
Step 4: Now to ping google we have to add new rule in routing table.
command: route add -net 216.58.196.0 netmask 255.255.255.0 gw 10.0.2.2 enp0s3
Step 5: Try to ping google. Now google is pingable.
command: ping 216.58.196.78
Step 6: Now try to ping Facebook it won’t be pingable.