M
M
Maga Izdaga2021-09-24 13:14:28
Computer networks
Maga Izdaga, 2021-09-24 13:14:28

How, sitting behind the provider's nat, does the requested info from the Internet know the exact client's network?

I am sitting at the nat of the provider, I wonder how, if a whole bunch of people like me are given a fixed number of IPs and they are distributed when someone accesses any resource on the Internet in turn, the one from whom I request information , knows which of the bunch of other clients this call belongs to? For example, IP bans, how does the server understand that it is specifically forbidden for computers from my network to access the server, because it is provided with one of the other addresses that can be issued to a completely different person?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Karabanov, 2021-09-24
@MagaVTanke

which of the bunch of other clients this appeal belongs to

The router has a NAT table in which it recognizes the correspondence SRC_IP: SRC_PORT -> DST_IP: DST_PORT.
how does the server understand that it is specifically forbidden for computers from my network to access the server

On the Internet, IP addresses from the local network are not routable. If banned by IP into which addresses from the local network are pulled, then the entire local network will be banned.

R
res2001, 2021-09-24
@res2001

When you are behind a provider, the external service can only know the address from which you actually access the Internet, i.e. external NAT address.
An external service can block this address. Then all your NAT neighbors will automatically be blocked.
Another point: the provider has a pool of white addresses from which clients can access the Internet. The pool can have several subnets assigned to the provider.
Information about provider subnets is publicly available on the Internet. It can be obtained through whois services, etc.
So having received one address, the service can find out the entire subnet of the provider and block it all.

K
Keffer, 2021-09-24
@Keffer

Because the nat technology also transfers all the information about the internal network to the server. Everything is simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question