[Linux-bruxelles] problème de serveur web avec un modem SpeedTouch 510 (ip dynamique, DNS chez dyndns.org)

Gaëtan Frenoy gaetan at frenoy.net
Ven 6 Fév 11:46:41 CET 2004


CT> En fait tu ne peux pas accéder à ton serveur web local à partir d'une
CT> machine locale en passant par ton adresse externe... Mais si tu
CT> essayes avec une machine externe, elle doit pouvoir y accéder.
CT> La dernière version de coyote linux corrige ce 'problème' mais je ne
CT> sais pas comment ils ont fait...

 Quelque chose dans ce goût là?

# Step 1 - Change destination of all traffic to external Web server
$IPTABLES -t nat -A PREROUTING -d $EXTIP -p tcp --dport $WEB_PORT 
          -j DNAT --to $WEB_SERVER:$WEB_PORT
# Step 2 - Alter source so the packets come back to the NAT box
$IPTABLES -t nat -A POSTROUTING -d $WEB_SERVER -s $LAN_RANGE 
          -p tcp --dport $WEB_PORT -j SNAT --to $NAT_SERVER

 Plus d'explications:
   http://www.netfilter.org/documentation/HOWTO/fr/NAT-HOWTO-10.html

 Bonne journée.

-- 
Gaëtan Frenoy (gaetan [à] frenoy.net)
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: non disponible
Type: application/pgp-signature
Taille: 187 octets
Desc: non disponible
URL: </pipermail/linux-bruxelles/attachments/20040206/30dec37c/attachment-0001.sig>


Plus d'informations sur la liste de diffusion Linux-bruxelles