Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[reseau] ftp, nat et internet ( résolu )
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
mdos
n00b
n00b


Joined: 28 Sep 2008
Posts: 18

PostPosted: Sun Sep 27, 2009 4:53 pm    Post subject: [reseau] ftp, nat et internet ( résolu ) Reply with quote

Bonjour a tous,

J'ai monté un petit serveur FTP chez moi, derrière une box avec un dyndns.
Tout marche très bien: j'y accède bien en local via son adresse ip et
depuis Internet via un nom de domaine genre: trucXX.homelinux.net
mais j'ai une question:
pourquoi sur un PC en local je ne peux pas y accéder en utilisant "trucXX.homelinux.net"
En cherchant sur le net j'ai cru comprendre que c'était normal, mais je n'arrive pas a comprendre pourquoi ?

Si quelqu'un peut éclairer ma lanterne,


Merci d'avance


Last edited by mdos on Mon Sep 28, 2009 6:50 am; edited 1 time in total
Back to top
View user's profile Send private message
gregool
Guru
Guru


Joined: 26 Nov 2007
Posts: 336
Location: Lille

PostPosted: Sun Sep 27, 2009 7:07 pm    Post subject: Reply with quote

Salut,

Le problème vient du NAT, tu demandes une connexion FTP, ton routeur reçoit la demande sur l'interface 'nattée' et va faire sortir la demande par l'interface publique en remplaçant l'IP source par son IP et en attribuant dynamiquement un port source à cette demande.

quand la demande revient elle est redirigée vers le port qui avait été dynamiquement attribuée lors de l'envoi du paquet donc la règle de NAT qui traite les paquets entrants n'est pas appliquée.
Back to top
View user's profile Send private message
mdos
n00b
n00b


Joined: 28 Sep 2008
Posts: 18

PostPosted: Sun Sep 27, 2009 8:36 pm    Post subject: Reply with quote

Merci pour ta réponse,

Il n'y a donc aucune solution possible pour utiliser ce nom de domaine depuis l'intérieur du réseau ?
Back to top
View user's profile Send private message
letchideslandes
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 197
Location: Landes France

PostPosted: Sun Sep 27, 2009 8:42 pm    Post subject: Reply with quote

Si, tu renseignes l'IP privée de ton domaine dans le fichier /etc/hosts
Back to top
View user's profile Send private message
mdos
n00b
n00b


Joined: 28 Sep 2008
Posts: 18

PostPosted: Mon Sep 28, 2009 6:49 am    Post subject: Reply with quote

effectivement, c'est tout bête

Merci à vous
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum