Creating a Setup so that you can Ping Google but not able to Ping Facebook from same System :)
Welcome back to another article :)
I’m using RHEL7 Operating System for this Configuration
So, let’s get started — — — — — — →
Open the Terminal of Rhel7 and check all the routes of the system :
Check if we are able to ping google as well as Facebook or not :)
So we are able to Ping google as well as Facebook :) but this is not our task . We have to create a policy so that we can ping google but not able to ping Facebook .. So that in company or anywhere we cannot use Facebook and focus in our work !!!!
So both Servers are Pingable :)
:)) Now the Question arises “how we can able to ping Google and Facebook”?
- When you ping to google , it will send your packets to google. But for creating packets you must have a rule for this server range. So if these rules are not available in the routing table then we cannot ping to google or any other server. But it is there in (0.0.0.0), so packet will go through Destination = 0.0.0.0 and Gateway = 192.168.29.1 routing table rule. So, if we can remove this then we can not ping google or any other server……
- Step 3:
- Removing the rule
Using route del -net 0.0.0.0 is deleted and now if we are able to ping google and Facebook we cannot able to ping any of the servers ..
We can see we are not able to ping google and Facebook . but our Task is we can ping google but not able to ping Facebook …..
Create a rule in the routing table, so we can ping google.
So we created a rule using this command and now if we will check we can able to ping one of the ip of google but not Facebook …..
And here is the proof ….
So this is how it works ……..……
I would like to thanks my Mentor Mr.Vimal Daga Sir for giving us such challenging Task… hashtag#task13 hashtag #arth hashtag #arthbylw hashtag#righteducation hashtag#rightmentor hashtag#worldrecordholder hashtag#linuxworld hashtag#vimaldaga hashtag#google hashtag#facebook hashtag#ping