ARTH- Task 13
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
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 188.8.131.52 netmask 255.255.255.0 gw 10.0.2.2 enp0s3
Step 5: Try to ping google. Now google is pingable.
command: ping 184.108.40.206
Step 6: Now try to ping Facebook it won’t be pingable.