GeoIP aware SMTP service – 3

Building Central Hub

Component list:
Postfix (build from rpm source);
QMail (mini version);
MySQL for SASL authentication;
PAM_MySQL PAM module support mysql password db;
GeoIP database;
GeoIP perl module;
perl scripting;

Build Postfix

Postfix 2.6 support tcp_table, the feature I needed in this project, but it does not build into standard rpm package. So, what I need to do is download source rpm and build it. Continue reading

Traffic Shaping using PF+ALTQ

My company need to control international traffic for hundreds of servers. It is tough for Linux.

My choice is FreeBSD, which is highly configurable and stable, being a network appliance. I can use ALTQ in the pf packet filter to limit traffic, I choose cbq (Class Based Queueing) which is simple enough and a bit efficient than other queueing method.

Everything seems perfect, but I do have some problems.

Problem 1: I need more than 256 Classes, we have 40+ class C network…

Problem 2: My DELL server using Broadcom NetXtreme II NIC (bce), performance is poor because can use only ONE CPU core per port, 8 core CPU doesn’t help. Continue reading