Pure Networking Setup To Ping Google but not Facebook.

Vineet Negi
Dec 24, 2020

what is router or gateway ?

router is the device used to connect two different networks

Let’s check our routing table.

route -n 

as it’s clearly visible that we can go anywhere from the gateway.

Let’s try to ping some webservers

ping <ip_or_website>

Basically route table allow system to create and send the packet. Now we’ll remove the route_ip which let us ping anywhere in internet.

route del -net <dest_ip>

Now try to ping the google and facebook

To ping google we need it’s ip_address

let’s add the rule that is come under the range of above google address.

Now try to ping the google.

try to ping the facebook.

THANK YOU !!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Vineet Negi
Vineet Negi

Written by Vineet Negi

★ Aspiring DevOps Engineer ★ Technical Volunteer @LinuxWorld ★ Technical Content Writer @Medium ★ ARTH Learner

No responses yet

Write a response