How to create a set up so that you can ping Google but not able to ping Facebook from the same system..?

Sanat Dash
2 min readMar 15, 2021

--

Hello everyone….

Let’s begin the steps to create the setup,

1- First check the Google’s IP Address

Command — nslookup google.com

from the above command we can find the IP address of google

Google IP: 172.217.160.142

2- Now check Facebook’s IP Address

Command — nslookup facebook.com

from the above command we can find the IP address of google

Facebook’s IP- 157.240.23.35

3- Then ping Google

4- Then ping Facebook

5- Display Route Table

command — route -n

6- Delete universal Route Rule to allow all IP-addresses of any range

cmd — route del -net 0.0.0.0

7- Add Route rule in Routing table to allow Google IP Address range

Rule added for google

  • Now, if you again check and ping facebook and google then, you will see that it will pinging google now but not facebook because here , we have only allowed google’s ip address range.

So that’s all , this is how you can add limited IPs to work in your system.

Thank you for reading..!!

#RedHat #vimaldaga #righteducation #educationredefine #rightmentor #linuxworld #makingindiafutureready #righeducation #arthbylw

--

--

No responses yet