Un petit de coup de main

Forum traitant de la distribution sécurisée montante nommée IP cop et basée sur la distribution Smoothwall. C'est à l'heure actuelle le forum le plus actif du site.

Modérateur: modos Ixus

Messagepar targa » 17 Juin 2003 17:08

Bonjour, <BR> <BR>Je viens de mettre mon firewall en production, configuration de base avec des transfert de port du rouge vers mon green ou j'ai un serveur ( je n'ai que 2 interfaces réseaux) je redirige vers les ports 22,3389,80,53. <BR>j'arrive à pinguer <!-- BBCode auto-link start --><a href="http://www.yahoo.fr" target="_blank">www.yahoo.fr</a><!-- BBCode auto-link end -->, mais je ne peux y accéder avec mon navigateur. Je peux aussi faire un telnet sur le port 25 d'un serveur de mail. <BR>Tout fonctionne sauf la navigation sur le web. <BR> <BR>Est ce que le problème peut venir de mes transferts de port ?? <BR> <BR>
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar tomtom » 17 Juin 2003 17:17

Bien que je sois etonné, ca peut venir de la... <BR> <BR>Peux-tu poster un <BR> <BR>iptables -t nat -L <BR> <BR> <BR>T.
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Messagepar targa » 17 Juin 2003 17:22

Et voila <BR> <BR><!-- BBcode auto-mailto start --><a href="mailto:root@ipcop:~">root@ipcop:~</a><!-- BBCode auto-mailto end --> # iptables -t nat -L <BR>Chain PREROUTING (policy ACCEPT) <BR>target prot opt source destination <BR>CUSTOMPREROUTING all -- anywhere anywhere <BR>SQUID all -- anywhere anywhere <BR>PORTFW all -- anywhere anywhere <BR> <BR>Chain POSTROUTING (policy ACCEPT) <BR>target prot opt source destination <BR>RED all -- anywhere anywhere <BR> <BR>Chain OUTPUT (policy ACCEPT) <BR>target prot opt source destination <BR> <BR>Chain CUSTOMPREROUTING (1 references) <BR>target prot opt source destination <BR> <BR>Chain PORTFW (1 references) <BR>target prot opt source destination <BR>DNAT tcp -- anywhere tracker.thecrmcompany.comtcp dpt:http to:10.0.0.6:80 <BR>DNAT tcp -- anywhere tracker.thecrmcompany.comtcp dpt:https to:10.0.0.6:443 <BR>DNAT tcp -- anywhere tracker.thecrmcompany.comtcp dpt:3389 to:10.0.0.6:3389 <BR>DNAT tcp -- anywhere tracker.thecrmcompany.comtcp dpt:ssh to:10.0.0.6:22 <BR>DNAT tcp -- anywhere tracker.thecrmcompany.comtcp dpt:domain to:10.0.0.6:53 <BR>DNAT tcp -- anywhere host4.thecrmcompany.comtcp dpt:http to:10.0.0.5:80 <BR>DNAT tcp -- anywhere host4.thecrmcompany.comtcp dpt:https to:10.0.0.5:443 <BR>DNAT tcp -- anywhere host4.thecrmcompany.comtcp dpt:ssh to:10.0.0.5:22 <BR>DNAT tcp -- anywhere host4.thecrmcompany.comtcp dpt:3389 to:10.0.0.5:3389 <BR>DNAT tcp -- anywhere host4.thecrmcompany.comtcp dpt:domain to:10.0.0.5:53 <BR>DNAT udp -- anywhere host4.thecrmcompany.comudp dpt:domain to:10.0.0.3:53 <BR>DNAT tcp -- anywhere host3.thecrmcompany.comtcp dpt:http to:10.0.0.4:80 <BR>DNAT tcp -- anywhere host3.thecrmcompany.comtcp dpt:https to:10.0.0.4:443 <BR>DNAT tcp -- anywhere host3.thecrmcompany.comtcp dpt:ssh to:10.0.0.4:22 <BR>DNAT tcp -- anywhere host3.thecrmcompany.comtcp dpt:3389 to:10.0.0.4:3389 <BR>DNAT tcp -- anywhere host3.thecrmcompany.comtcp dpt:domain to:10.0.0.4:53 <BR>DNAT udp -- anywhere host3.thecrmcompany.comudp dpt:domain to:10.0.0.4:53 <BR>DNAT tcp -- anywhere host2.thecrmcompany.comtcp dpt:http to:10.0.0.3:80 <BR>DNAT tcp -- anywhere host2.thecrmcompany.comtcp dpt:https to:10.0.0.3:443 <BR>DNAT tcp -- anywhere host2.thecrmcompany.comtcp dpt:ssh to:10.0.0.3:22 <BR>DNAT tcp -- anywhere host2.thecrmcompany.comtcp dpt:3389 to:10.0.0.3:3389 <BR>DNAT tcp -- anywhere host2.thecrmcompany.comtcp dpt:domain to:10.0.0.3:53 <BR>DNAT udp -- anywhere host2.thecrmcompany.comudp dpt:domain to:10.0.0.3:53 <BR>DNAT udp -- anywhere tracker.thecrmcompany.comudp dpt:domain to:10.0.0.6:53 <BR> <BR>Chain RED (1 references) <BR>target prot opt source destination <BR>MASQUERADE all -- anywhere anywhere <BR> <BR>Chain SQUID (1 references) <BR>target prot opt source destination <BR>
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar tomtom » 17 Juin 2003 17:27

on n'y voit vraiment rien avec ce format... <BR> <BR>armme secrete : <BR> <BR> <BR> <BR>iptables -t nat -n -L -v | grep DNAT <BR> <BR>Ce sera un peu plus clair <IMG SRC="images/smiles/icon_smile.gif"> <BR> <BR>merci <BR> <BR> <BR>T.
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Messagepar targa » 17 Juin 2003 17:29

Désolé pour la première version je n'ai pas regardé ce que ca donné. <BR> <BR>Et revoila <BR> <BR><!-- BBcode auto-mailto start --><a href="mailto:root@ipcop:~">root@ipcop:~</a><!-- BBCode auto-mailto end --> # iptables -t nat -n -L -v | grep DNAT <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.150 tcp dpt:80 to:10.0.0.6:80 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.150 tcp dpt:443 to:10.0.0.6:443 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.150 tcp dpt:3389 to:10.0.0.6:3389 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.150 tcp dpt:22 to:10.0.0.6:22 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.150 tcp dpt:53 to:10.0.0.6:53 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.149 tcp dpt:80 to:10.0.0.5:80 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.149 tcp dpt:443 to:10.0.0.5:443 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.149 tcp dpt:22 to:10.0.0.5:22 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.149 tcp dpt:3389 to:10.0.0.5:3389 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.149 tcp dpt:53 to:10.0.0.5:53 <BR> 0 0 DNAT udp -- * * 0.0.0.0/0 212.11.45.149 udp dpt:53 to:10.0.0.3:53 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.148 tcp dpt:80 to:10.0.0.4:80 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.148 tcp dpt:443 to:10.0.0.4:443 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.148 tcp dpt:22 to:10.0.0.4:22 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.148 tcp dpt:3389 to:10.0.0.4:3389 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.148 tcp dpt:53 to:10.0.0.4:53 <BR> 0 0 DNAT udp -- * * 0.0.0.0/0 212.11.45.148 udp dpt:53 to:10.0.0.4:53 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.147 tcp dpt:80 to:10.0.0.3:80 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.147 tcp dpt:443 to:10.0.0.3:443 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.147 tcp dpt:22 to:10.0.0.3:22 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.147 tcp dpt:3389 to:10.0.0.3:3389 <BR> 0 0 DNAT tcp -- * * 0.0.0.0/0 212.11.45.147 tcp dpt:53 to:10.0.0.3:53 <BR> 0 0 DNAT udp -- * * 0.0.0.0/0 212.11.45.147 udp dpt:53 to:10.0.0.3:53 <BR> 0 0 DNAT udp -- * * 0.0.0.0/0 212.11.45.150 udp dpt:53 to:10.0.0.6:53 <BR>
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar remi » 17 Juin 2003 17:32

Ne serait ce pas plutot un probleme de configuration du client... <BR> <BR>le proxy est il démarré, .... <BR> <BR>cela m'etonnerai bocou que cela vienne des regles iptables
Art de vivre : Mourir pour mourir, que cela soit entre le $%#&! des femmes et le $%#&! des bouteilles !
Avatar de l’utilisateur
remi
AdminIxus
AdminIxus
 
Messages: 3218
Inscrit le: 22 Avr 2002 00:00
Localisation: Lyon

Messagepar tomtom » 17 Juin 2003 17:38

Exact Remi puisque l'adresse de destination est bien spécifiée pour le prerouting, les règles de redirection ne devraient pas alterer le fonctionnement classique. <BR> <BR>Il faut verifier au niveau d'IE que tu ne lui as pas dit d'utiliser un proxy ni un script de detection auto.... <BR> <BR>Si tu as hping quelquepart sur ton lan on peut faire 1 petit test pour verifier que le port 80 est bien ouvert..... <BR> <BR> <BR>T.
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Messagepar targa » 17 Juin 2003 17:38

Je suis en train de remplacer un firewall matériel par ipcop, l'installation fonctionnait avant le changement, des postes clients on peut pinguer par exemple yahoo.fr, ou faire un telnet sur un serveur de mail sur le port 25 mais on ne peut pas naviguer. Un telnet sur le port 80 de yahoo ne marche pas.
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar tomtom » 17 Juin 2003 17:40

D'apres les regles le proxy n'est pas activé...... <BR>Je ne pige pas trop ce qui bloque.. <BR> <BR>Au fait tu devrais effacer tes ip publiques dans les posts ! <BR> <BR>T.
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Messagepar remi » 17 Juin 2003 17:42

As tu bien mis les DNS de ton FAI....
Art de vivre : Mourir pour mourir, que cela soit entre le $%#&! des femmes et le $%#&! des bouteilles !
Avatar de l’utilisateur
remi
AdminIxus
AdminIxus
 
Messages: 3218
Inscrit le: 22 Avr 2002 00:00
Localisation: Lyon

Messagepar targa » 17 Juin 2003 17:45

Une question, j'ai installé dansguard avec l'interface graphique, sur celle ci il me met les ports d'écoutes 8080 et le port du proxy 800 est ce que c'est ca le problème
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar tomtom » 17 Juin 2003 17:48

Les DNS ont l'air bons puisqu'il ping... <BR> <BR>J'ai pas l'impression que le proxy soit activé en transparent, donc je ne vois pas pourquoi le port d'ecoute du procy changerait le problème.... <BR> <BR>Tu peux me faire un <BR>iptables -n -L -V <BR> <BR>Peut-etre qu'il y a un truc ailleurs... <BR> <BR>T.
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Messagepar remi » 17 Juin 2003 17:49

Et ben voila... le probleme est la solution est la ! <BR> <BR>Je ne connait pas dansguardian, mais a mon avis il faut que tu passe par le port 8080, donc le proxy doit etre enclenché...
Art de vivre : Mourir pour mourir, que cela soit entre le $%#&! des femmes et le $%#&! des bouteilles !
Avatar de l’utilisateur
remi
AdminIxus
AdminIxus
 
Messages: 3218
Inscrit le: 22 Avr 2002 00:00
Localisation: Lyon

Messagepar targa » 17 Juin 2003 17:55

Voila <BR>iptables v1.2.7a <BR> <BR>Sinon le dansguardian n'est pas enclenché.
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar tomtom » 17 Juin 2003 17:58

oups ct un petit v <IMG SRC="images/smiles/icon_rolleyes.gif"> <BR> <BR> <BR>iptables -n -L -v <BR> <BR> <BR>
One hundred thousand lemmings can't be wrong...
Avatar de l’utilisateur
tomtom
Amiral
Amiral
 
Messages: 6035
Inscrit le: 26 Avr 2002 00:00
Localisation: Paris

Suivant

Retour vers IPCop

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 2 invité(s)

cron