Bonjour,
voilà j'ai un reseau avec une passerelle ubuntu. J'interdit l'accès internet excepté certains site web à l'aide d'un script iptables. Tout fonctionne bien tant qu'il s'agit de site "simple" mais je rencontre un problème avec googlemap.
Après de longue recherches j'ai fini par trouver pas mal d'info sur les différents serveurs qui sont appelé par googlemap mais voilà ça marche de manière aléatoire. Preuve qu'il doit encore me manquer des adresses ou que je n'utilise pas la bonne méthode ?
Avec le code ci-dessous, ca marche une fois sur deux.
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d ajax.googleapis.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d themes.googleusercontent.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d maps.google.fr -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d maps.gstatic.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d kh.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d khm0.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d khm1.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d khm2.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d khm3.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mt0.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mt1.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mt2.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mt3.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mts0.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mts1.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mts2.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d mts3.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d cbk0.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d cbk1.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d cbk2.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d cbk3.google.com -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -s $IPLAN -d ssl.gstatic.com -j MASQUERADE
Merci d'avance pour votre aide