Creating a Setup so that we can ping google but not able to ping Facebook from the same system .

Ankit Pramanik
3 min readMar 11, 2021

--

A gateway is a node (router) in a computer network, a key stopping point for data on its way to or from other networks.

Basically, it is a gateway is a hardware device that acts as a “gate” between two networks. It may be a router, firewall, server, or other device that enables traffic to flow in and out of the network. It allows computers within the local network to send and receive data over the Internet

There are two main types of gateways: unidirectional gateways and bidirectional gateways.

  1. Unidirectional gateways allow alerts to flow in only one direction.

2. Bidirectional gateways can be considered as synchronization tools.

Gateways regulate traffic between two dissimilar networks, while routersregulate traffic between similar networks. … Because TCP/IP is also the primary protocol of the Internet, you could use a router to connect your network to the Internet.

502 and 504 errors are related to a bad gateway, meaning that while the reverse proxy server is operational, something it needs to collect from the origin server is not working, or the connection between the reverse proxy server and the origin server is broken.

How does we connect to the Internet ??

we use the physical devices like MODEM

That device is required for the internet connection is a MODEM. A modem(modulator–demodulator) is a network hardware device that modulates one or more carrier wave signals to encode digital information for transmission.

Basic elements required to connect to the internet connectivities are :-

1. physical wires,

2. Modem (router), and

3. NIC (network card) and IP (i.e public and private).

A router is mainly used in the local area network(LAN) and wide area network(WAN) domain. The data is transferred across the network by using the routing protocols.

It is much more costly in comparison to other network devices like hub, switch etc.
Some of the companies that develop routers are D-Link, Cisco, Nortel etc.

Main idea of setting up the gateway to ping google but not facebook domain:

Here we have shown that we can successfully ping both google and Facebook
We got the ip’s of google and facebook with the help of nslookup
Checking the routes and deleting the route to the whole internet so that i cannot reach the internet
Now if we see, we cannot ping to google or facebook anymore

So what we have done is deleted the route to all traffic so that we cannot ping to any servers. The next part is to set a traffic route to only google servers.

Using the route add command, we have specified the ip of one of the google servers and adding that.

Finally now we are able to ping to only the google servers.

Thank You for your time

Task-13 completed. I would like to thank our mentor Mr Vimal Daga Sir for all the help and guidance.

#vimaldaga #righteducation #educationredefine #rightmentor#worldrecordholder #linuxworld #makingindiafutureready #righeducation#arthbylw #k8s #aws #ansible #automation #cluster #kubernetes#multinode #kubectl #kubeadm #kubelet

--

--