salut,
je commence à m'interresser à iptable, donc je n'y connait pas grand chose.
jusqu'à présent je réglais le firewall à l'aide de l'interface fourni par fc2(paramètres système->degré de sécurité).
pour vérifier que ça marchait bien (j'ai demandé d'autoriser les port 80 et 21) j'ai fait un nmap sur le nom de domaine que j'ai pris chez dydns.
voilà le résultat:
(The 1653 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
80/tcp open http
111/tcp open rpcbind
443/tcp open https
3306/tcp open mysql
6000/tcp open X11
donc j'ai pas compris pourquoi les ports 111, 443, 3306, et 6000 sont ouverts.
du coup j'ai regardé les règles iptables à l'aide de "iptables -L":
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
d'après ce que j'ai compris il rejette tous les inputs sauf pour http(ce qui expliquerait le port 443 ouvert) et ftp.
alors je ne comprend pas pourquoi nmap voit d'autres ports ouverts.
est ce que je me plante dans mon interprétation(après tout il y a plein de "ACCEPT all -- anywhere anywhere" avant le "REJECT all -- anywhere anywhere reject-with icmp-host-prohibited"
donc si quelqu'un peut m'éclairer en sachant que je veux aussi me servir de logiciels comme gaim, amule ou d'autres qui sont ammenés à recevoir des paquets que j'ai demandé(ils marchent mais j'ai pas compris pourquoi les paquets que je reçoit par leur port ne sont pas bloqués).