Rumen Telbizov wrote: > Yeah, only the number of states was my concern. On a related note what > is the maximum number of states that you have been able to sustain and > in what amount of memory? I know it's pretty low memory overhead but > still. In other words how much memory per state is being consumed by > PF? Currently I am prepared to start with 200K states and the router > has 24GB or RAM. What is a reasonable maximum that I can expect to be > able to handle? I am monitoring closely (nagios + graphite) those > states as well btw.
You can increase the states hash table if you have lots of states. I've not managed to find a tuning guide with recomendations. net.pf.states_hashsize: Size of pf(4) states hashtable We use 1048576. The state table can grow quite large depending on your network. Make sure that you set options in pf.conf to prevent states being expired prematurely. We use: set timeout { \ adaptive.start 900000, \ adaptive.end 1800000 \ } set limit states 1500000 set limit frags 40000 Our high water mark is around 950000 states. The router has 16GB RAM and has a full Internet routing table and we've never run into memory issues. Mem: 311M Active, 759M Inact, 1936M Wired, 1647M Buf, 13G Free Ian -- Ian Freislich _______________________________________________ freebsd-pf@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-pf To unsubscribe, send any mail to "freebsd-pf-unsubscr...@freebsd.org"