Arth — Networking Task

ARTH — Task 13 👨🏻‍💻

Task Description📄

🔰 Create a Setup so that you can ping google but not able to ping Facebook from same system

This task is to be performed by creating rule in routing table .

  • First of we have to disable ipv6 of our os

command to disable ipv4 -

# sysctl -w net.ipv6.conf.all.disable_ipv6=1

# nslookup www.google.com

# nslookup www.facebook.com

we got the ip of google — 172.217.166.164

and facebook — 69.171.250.35

  • Have a look at the routing table
  • Now we have to remove the universal rule and add the a rule such that system can ping google but not facebook .

# route add -net 172.217.0.0/16 gw 192.168.43.1 enp0s3

  • Command to delete Universal rule —

# route del -net 0.0.0.0/0 enp0s3 —

Thank you for reading…

#vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeudcation #arthbylw

#netmask #routetable #gateway

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store