Alejandro Cabrera Obed wrote: > Thanks for your response....my initial ipf.conf file was this: > > block in on hme0 all > pass in log quick on hme0 proto tcp/udp from any to MY_IP port = 80 > pass out log quick on hme0 all > > and now is thsi and the acces to my site is fast enough: > > pass in quick on hme0 proto tcp from any to MY_IP port = 80 flags S keep > state > block in on hme0 all > pass out quick on hme0 proto tcp from any to any flags S keep state > pass out quick on hme0 proto udp from any to any keep state > pass out quick on hme0 proto icmp from any to any keep state > > That's all !!! why has my web access been improved ?? Any idea ??
Scanning rules table for each packet might slow down a system a bit and version with keep state doesn't do that so it's faster. Althought I think that the main difference doesn't come from keep state but from "log". In first version of your rules you're logging *every* packet coming in and out. In second version you aren't logging legitimate connections. hope this helps, Slawek
