CREATING A SETUP SUCH THAT SYSTEM A CAN PING SYSTEMS B AND C BUT THEY SHOULD NOT PING EACH OTHER.

Himanshu Yadav
3 min readJan 26, 2021

This type of setup can be done two ways : 1. By blocking systems using firewall 2. By modifying routing table.

Here we are gonna use routing table method to this.

So first we find our system’s IPs using :

ifconfig enp0s3

System A :

ip = 192.168.43.122

System B :

ip = 192.168.43.14

System C :

ip= 192.168.43.65

Now we check if System A is pinging to System B and C :

as we can see they are connected.

Now we check if System B is able to ping System A and C :

as we can see they are also connected.

Now we check if System C is able to ping System B and A :

at last we can see C is also connected.

now we change the routing table for system B:

route add host <ip_address of system C> reject

now we can see system B can’t ping to System C but can ping to system A.

similarly we check for System C :

we can see it can’t ping System B but can ping System A.

Hence we can conclude that System B and C are not pinging to each other but can ping System A.

and System A is still able to ping System B and System C.

OUR SETUP IS COMPLETE.

That’s it.

Thank you.

TASK #14.1

--

--