Hints on diagnosing performance issue in OpenBSD firewall

Posted by Tom on Super User See other posts from Super User or by Tom
Published on 2012-01-10T21:45:52Z Indexed on 2012/03/26 5:33 UTC
Read the original article Hit count: 458

Filed under:
|

My OpenBSD 4.6 pf firewall has started having really bad performance in the past few weeks. I've isolated the firewall (as opposed to the WAN connection, switch, cable, etc.) as the problem, but need a hint on how to further diagnose or fix the problem.

The facts:

Normal setup is: DSL Modem -> FW Ext. NIC -> FW Int. NIC -> Switch -> Laptop

  1. Normal setup described above gives only 25 Kbps!

  2. Plugging the laptop straight from the DSL modem gives a 1 MBps connection (full speed, as advertised). Therefore, the DSL connection seems to be OK.

  3. Plugging the laptop directly into the firewall's internal NIC (bypassing the switch) also gives only 25 Kbps. Therefore, the switch does not seem to be a problem.

  4. I've replaced the ethernet cables, but it didn't help.

  5. Here's the weird thing. Reloading the ruleset (/sbin/pfctl -Fa -f /etc/pf.conf) causes the laptop's connection to go up to 1 Mbps (i.e. full speed) for a few minutes before it gradually degrades back down to 25Kbps again.

Any ideas on what's wrong or how I could further diagnose the problem?

© Super User or respective owner

Related posts about firewall

Related posts about openbsd