neom 9 Posted 2007-08-10 13:54:40 Share Posted 2007-08-10 13:54:40 Коллеги подскажите никто не сталкивался с проблемой что altq шейпер странно себя ведет, вроде настраиваю полосы для юзеров, беру себя как одного из них загоняю в конфик, ставлю ПС канала 64К все отлично работает даже в консоли тормозит , качаю тестовые файлы тоже все ок не больше не меньше 64К, но периодически канал начинает загружаться на 100% смотрю trafshow вижу какой-нить анлимщик на 32К тянет какую-нить фигню на полной скорости канала бьюсь уже не первый день, сначала забивал на это но народ наглеет , по нескольку гиг вытягивает в день и это при скорости типа у них 32К вот кусок конфига pf.conf оговорюсь еще народ натится тоже через pf ext_if="rl0" int_if="fxp0" table <internet_hosts> { 1.2.3.0/24 } table <server_ip> { 1.2.3.1, 111.111.222.111 } table <servers> { 1.2.3.2, 1.2.3.3, 1.2.3.4, 1.2.3.5 } table <bad_hosts> persist altq on $ext_if cbq bandwidth 5Mb queue { defl } queue defl bandwidth 100% cbq(default) { xxx_out, yyy_out } queue xxx_out bandwidth 32Kb queue yyy_out bandwidth 64Kb altq on $int_if cbq bandwidth 100Mb queue { deflt } queue deflt bandwidth 100% cbq(default) { xxx_in, yyy_in } queue xxx_in bandwidth 32Kb queue yyy_in bandwidth 64Kb no rdr on $int_if proto { tcp, udp } from any to <server_ip> port 80 no rdr on $int_if proto { tcp, udp } from <servers> to any port 80 rdr on $int_if proto tcp from <internet_hosts> to any port 80 -> 1.2.3.1 port 3128 nat on $ext_if from <internet_hosts> to any -> ($ext_if) pass quick from 1.2.3.10 to any keep state queue xxx_out pass quick from any to 1.2.3.10 keep state queue xxx_in pass quick from 1.2.3.20 to any keep state queue yyy_out pass quick from any to 1.2.3.20 keep state queue yyy_in block in quick from <bad_hosts> pass in quick from {1.2.3.0/24, 111.111.222.111/30} pass in quick proto tcp to any port 22 flags S/SA keep state \ (max-src-conn-rate 3/60, overload <bad_hosts> flush global) pass in quick proto tcp to any port 25 flags S/SA keep state \ (max-src-conn-rate 10/60, overload <bad_hosts> flush global) pass in quick proto tcp to any port 110 flags S/SA keep state \ (max-src-conn-rate 10/60, overload <bad_hosts> flush global) помогите решить трабл. Link to post Share on other sites
Savio 1 Posted 2007-08-10 19:24:53 Share Posted 2007-08-10 19:24:53 а шо это за altq? что то я не слыхал ранее. юзай htb - все круто пашет! Link to post Share on other sites
DoctorD 0 Posted 2007-08-10 21:33:50 Share Posted 2007-08-10 21:33:50 что за ОС? Link to post Share on other sites
devchaos 1 Posted 2007-08-10 22:47:19 Share Posted 2007-08-10 22:47:19 Судя по всему FreeBSD Link to post Share on other sites
DoctorD 0 Posted 2007-08-11 08:44:44 Share Posted 2007-08-11 08:44:44 Судя по всему FreeBSD не факт... Link to post Share on other sites
neom 9 Posted 2007-08-11 08:50:55 Author Share Posted 2007-08-11 08:50:55 ALTQ это встроенный шейпер в пакетном фильтре PF , ось FreeBSD Link to post Share on other sites
DoctorD 0 Posted 2007-08-11 10:28:21 Share Posted 2007-08-11 10:28:21 ALTQ это встроенный шейпер в пакетном фильтре PF , ось FreeBSD тогда тебе на fido7.ru.unix.bsd, быстро найдешь все ответы. Link to post Share on other sites
neom 9 Posted 2007-08-12 11:48:22 Author Share Posted 2007-08-12 11:48:22 Мдяяя а тут как я понял все сидят под виндовс в качестве серверов и пользуются трафик инспектором, печально конечно.... Link to post Share on other sites
DoctorD 0 Posted 2007-08-12 11:51:56 Share Posted 2007-08-12 11:51:56 Мдяяя а тут как я понял все сидят под виндовс в качестве серверов и пользуются трафик инспектором, печально конечно.... ну скорее всего под линуксом и на СТГ, а вообще в этом нечего плохого нет. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now