This is an old revision of the document!
Simple but nice firewall.
Rule below forward request to 5111 to port 232
ipfw add fwd localhost,5111 tcp from any to any 232 via en0
Rule below will divert the traffic from one port to another.\
ipfw add 0010 divert 8080 tcp from any to any 80
NOTE : sysctl net.link.ether.bridge_ipfw=1 (this value enable the snort)