Качал порт http://netams.com/files/netams-3.4.2-fr ... ort.tar.gz
в distfiles кинул версию 3.4.2c
Согласно:
Код: Выделить всё
DEFINE += -DHAVE_BW
но при этом ничего не режет.
Вот конфиги:
NetAMS:
Код: Выделить всё
#NeTAMS 3.4.2 (3466.1) root@gw.test / Sun, 31 May 2009 21:35:30 +0300
#configuration built Sun May 31 21:52:47 2009
#begin
#global variables configuration
debug none
language ru
user oid 0C08A7 name admin real-name "Admin" crypted $1$$HpXmjtul/3i1.bf.B27bU. email root@localhost permit all
#services configuration
service server 0
login local
listen 20001
max-conn 6
service processor
lookup-delay 30
flow-lifetime 180
policy oid 0E2AE9 name ip target proto ip
restrict all drop local pass
unit net oid 09409A name LAN ip 192.168.0.0/24 acct-policy ip
unit host oid 02C0C5 name server ip 88.81.x.x
unit host oid 0FD79B name serverint ip 192.168.0.1
unit host oid 08C3E4 name client ip 192.168.0.10 password 123 bw 2.000K acct-policy ip
service storage 1
type mysql
user netams
password password
accept all
service data-source 1
type ip-traffic
source divert 199
service quota
policy ip
notify soft owner
notify hard owner
notify return owner
service alerter 0
report oid 06100 name rep1 type traffic period day detail simple
smtp-server localhost
service html
path /usr/local/www/netams/stat
run 5min
url http://192.168.0.1/netams/
htaccess yes
client-pages all
account-pages all
service scheduler
oid 08FFFF time 5min action "html"
#end
Код: Выделить всё
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
00400 deny tcp from any to me dst-port 25
00500 deny tcp from me to any dst-port 25
00600 divert 199 ip from 192.168.0.0/24 to any out xmit em0
00700 divert 8668 ip from 192.168.0.0/24 to any out via em0
00800 divert 8668 ip from any to 88.81.x.x
00900 divert 199 ip from any to 192.168.0.0/24 in recv em0
65535 allow ip from any to any
Код: Выделить всё
00100 1188 89884 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
00400 0 0 deny tcp from any to me dst-port 25
00500 0 0 deny tcp from me to any dst-port 25
00600 7527 4186495 divert 199 ip from 192.168.0.0/24 to any out xmit em0
00700 7434 4052755 divert 8668 ip from 192.168.0.0/24 to any out via em0
00800 14851 12493731 divert 8668 ip from any to 88.81.x.x
00900 9972 11630535 divert 199 ip from any to 192.168.0.0/24 in recv em0
65535 85334 53978773 allow ip from any to any
Код: Выделить всё
FreeBSD gw.test 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun May 31 19:27:40 EEST 2009 root@gw.test:/usr/obj/usr/src/sys/OPT72 i386
Код: Выделить всё
net.inet.ip.fw.one_pass: 0
Подскажите пожалуйста.
Заранее спасибо!