PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > ping through NAT
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

ping through NAT

Réponse
 
LinkBack Outils de la discussion
Vieux 25/09/2007, 10h26   #1
nahum_barnea@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut ping through NAT



Hi.

Assume I have 2 computers in a LAN behind a NAT router.
The 2 computers ping to the same remote server at the same time.

Because of the NAT, the source IP address of both ping is replaced .
Since it is ICMP there is no port address to destinguish between th
packets as in regular browser application.

How does the NAT router destinguish between the ping replies?

Thanks,
NAHUM

  Réponse avec citation
Vieux 25/09/2007, 16h37   #2
Scott Gifford
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ping through NAT

nahum_barnea@yahoo.com writes:

> Hi.
>
> Assume I have 2 computers in a LAN behind a NAT router.
> The 2 computers ping to the same remote server at the same time.
>
> Because of the NAT, the source IP address of both ping is replaced .
> Since it is ICMP there is no port address to destinguish between th
> packets as in regular browser application.
>
> How does the NAT router destinguish between the ping replies?


At a glance, it looks like conntrack_icmp in the Linux kernel uses the
Identifier field. See:

http://svn.netfilter.org/cgi-bin/vie...39&view=markup
http://www.networksorcery.com/enp/pr.../icmp/msg8.htm

----Scott.
  Réponse avec citation
Vieux 25/09/2007, 19h20   #3
Rod Dorman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ping through NAT

In article <lywsuerc1o.fsf@gfn.org>,
Scott Gifford <sgifford@suspectclass.com> wrote:
>nahum_barnea@yahoo.com writes:
>> Assume I have 2 computers in a LAN behind a NAT router.
>> The 2 computers ping to the same remote server at the same time.
>>
>> Because of the NAT, the source IP address of both ping is replaced .
>> Since it is ICMP there is no port address to destinguish between th
>> packets as in regular browser application.
>>
>> How does the NAT router destinguish between the ping replies?

>
>At a glance, it looks like conntrack_icmp in the Linux kernel uses the
>Identifier field. See:


While using the Identifier is probably what the router is doing (its
how Cisco routers do it) how were you able to tell that the router in
question is running Linux?

--
-- Rod --
rodd(at)polylogics(dot)com
  Réponse avec citation
Vieux 25/09/2007, 20h21   #4
Scott Gifford
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ping through NAT

rodd@panix.com (Rod Dorman) writes:

> In article <lywsuerc1o.fsf@gfn.org>,
> Scott Gifford <sgifford@suspectclass.com> wrote:
>>nahum_barnea@yahoo.com writes:
>>> Assume I have 2 computers in a LAN behind a NAT router.
>>> The 2 computers ping to the same remote server at the same time.
>>>
>>> Because of the NAT, the source IP address of both ping is replaced .
>>> Since it is ICMP there is no port address to destinguish between th
>>> packets as in regular browser application.
>>>
>>> How does the NAT router destinguish between the ping replies?

>>
>>At a glance, it looks like conntrack_icmp in the Linux kernel uses the
>>Identifier field. See:

>
> While using the Identifier is probably what the router is doing (its
> how Cisco routers do it) how were you able to tell that the router in
> question is running Linux?


Oh, I have no idea, it's just much easier to find the source to
Linux's NAT stack than to cisco's. :-)

Of course, finding out how a particular router implements this (and
whether the implementation works), will require looking at the
router's specs or source code, or doing some experiments.

----Scott.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08978 seconds with 12 queries