Bon en fait je t'explique pourquoi c'est de la balle:
Premierement:
One remote hole in the default install, in nearly 6 years!!!
Ensuite j'ai vu que voulais faire un firewall en utilisant cette distrib et c'est une tres bonne idée. Personnelement j'utilise la version 2.9 comme routeur @home -> NAT FW VPN etc ...
Par contre la version 3.1 est plus aboutie avec notamment un nouveau OpenSSH et une nouvelle gestion des regles de firewall et NAT. En fait depuis la version 3.0 l'ancien IPF( Internet Packet Filter ) aisni que le ipnat ont été inclut dans un seul et meme fichier "pf.rules" qui te permet a la fois de gerer tes regles pour la NAT ainsi que celle concernant ton firewall. En voici un petit exemple:
# Define useful variables
ExtIF="fxp0" # External Interface
IntNet="1.1.1.0/24" # Our internal network
NoRouteIPs="{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }"
Services="{ www, https }"
# Clean up fragmented and abnormal packets
scrub in all
# don't allow anyone to spoof non-routeable addresses
block in quick on $ExtIF from $NoRouteIPs to any
block out quick on $ExtIF from any to $NoRouteIPs
# by default, block all incoming packets, except those explicitly
# allowed by further rules
block in on $ExtIF all
# allow others to use http and https
pass in on $ExtIF inet proto tcp from any to any port $Services \
flags S/SA keep state
# and let out-going traffic out and maintain state on established connections
# pass out all protocols, including TCP, UDP and ICMP, and create state,
# so that external DNS servers can reply to our own DNS requests (UDP).
block out on $ExtIF all
pass out on $ExtIF inet proto tcp all flags S/SA keep state
pass out on $ExtIF inet proto udp all keep state
pass out on $ExtIF inet proto icmp all keep state
Voila.
De toutes façons je t'invite a lire la faq d'openBSD qui a le merite d'etre tres bien faite:
http://cvs.openbsd.org/faq/
++
PS: Open rulezzzzzzzzzzzz