This article basically realizes OOPS+PF to realize transparent proxy, oops other authentication, bandwidth management is useless, hope to be able to give a comment, willing to please use the Oops of the master advice! Thank you.
installation process
1, cd/usr/ports/www/oops/
Make config check
[X] DB4 Berkeley DB v4 Storage
Make install clean
2, modify/usr/local/etc/oops/oops.cfg
3,cd/usr/local/sbin/
Oops-z-c/usr/local/etc/oops/oops.cfg (create its disk cache)
4,vi/etc/rc.conf Join oops_enable= "yes"
5,reboot
Configurationmore /etc/rc.conf
defaultrouter="218.75.x.x"
gateway_enable="YES"
hostname="firewall.test.com"
ifconfig_fxp0="inet 218.75.y.y netmask 255.255.255.128"
ifconfig_fxp1="inet 192.168.0.1 netmask 255.255.255.192"
ifconfig_fxp1_alias0="inet 192.168.1.62 netmask 255.255.255.192"
ifconfig_fxp1_alias1="inet 192.168.2.62 netmask 255.255.255.192"
ifconfig_fxp1_alias2="inet 192.168.3.62 netmask 255.255.255.192"
sshd_enable="YES"
pf_enable="YES"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
sendmail_enable="NONE"
ntpdate_enable="YES" # Run ntpdate to sync time on boot (or NO).
ntpdate_flags="207.46.232.189" # time.windows.com
oops_enable="yes"
more /etc/pf.conf
#firewall by tds 20050601
#macros
wanif="fxp0"
lanif="fxp1"
oops="127.0.0.1"
tcpsrv="{22,113}"
lan0="{192.168.0.0/26}"
lan1="{192.168.2.0/26}"
lan3="{192.168.3.0/26}"
lan4="{192.168.1.0/26}"
ftpsrv="192.168.0.8"
bt1="192.168.0.38"
bt2="192.168.0.39"
noroute="{127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16}"