If you are running a web server, and you wish to -limit- inbound connections, use the
Stateful Tracking Options, such as those in the example provided by roundkat.
http://www.openbsd.org/faq/pf/filter.html#stateopts
The link is for the PF User's Guide in English. It is also available in German, French, Italian, Polish, Russion, and Portuguese.