{"id":1820,"date":"2011-10-18T15:21:43","date_gmt":"2011-10-18T12:21:43","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=1820"},"modified":"2026-03-24T12:01:33","modified_gmt":"2026-03-24T10:01:33","slug":"altq","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=1820","title":{"rendered":"[pf] \u0420\u0435\u0436\u0435\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 altq"},"content":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441<strong> pf<\/strong> \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<p><code>No ALTQ support in kernel<br \/>\nALTQ related functions disabled<\/code><\/p>\n<p>\u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <strong>altq<\/strong> \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0443 \u044f\u0434\u0440\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0438\u0435 \u043e\u043f\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u044f\u0434\u0440\u0430:<\/p>\n<p><!--more--><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0443\u00a0 <strong>ALTQ<\/strong><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_CBQ<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Class Based Queuing (CBQ)<\/strong>. <strong>CBQ<\/strong> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u0438\u043b\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u044f\u043c \u0434\u043b\u044f\u00a0\u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_RED<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Random Early Detection (\u00a0 RED\u00a0 ).\u00a0 RED<\/strong>\u00a0 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0442\u0438.\u00a0 <strong>RED<\/strong>\u00a0 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u00a0\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0435\u0435 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0415\u0441\u043b\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0412\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c,\u00a0 <strong>RED<\/strong>\u00a0 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_RIO\u00a0<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Random Early Detection In and Out<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_HFSC<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Hierarchical Fair Service Curve Packet Scheduler<\/strong>.\u00a0(\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u00a0<a href=\"http:\/\/www-2.cs.cmu.edu\/~hzhang\/HFSC\/main.html\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/www-2.cs.cmu.edu\/~hzhang\/HFSC\/main.html<\/a>)<\/p>\n<p><strong><em><span style=\"color: #ff6600;\">options ALTQ_PRIQ<\/span><\/em><\/strong><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Priority Queuing (\u00a0 PRIQ\u00a0 ).\u00a0 PRIQ<\/strong>\u00a0 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u00a0\u0442\u0440\u0430\u0444\u0438\u043a \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u0435\u0440\u0432\u044b\u043c.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_NOPCC<\/span><\/strong><\/em><\/p>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443\u00a0 <strong>SMP<\/strong>\u00a0 \u0434\u043b\u044f\u00a0 <strong>ALTQ<\/strong>\u00a0 . \u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f\u00a0 <strong>SMP<\/strong>\u00a0 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">options ALTQ_CDNR<\/span><\/strong><\/em><br \/>\n<em><strong><span style=\"color: #ff6600;\"> options ALTQ_DEBUG<\/span><\/strong><\/em><\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>FreeBSD 8.2 i386<\/strong><\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0423\u0441\u043b\u043e\u0432\u0438\u044f<\/span><\/strong><\/em> &#8211; \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c <strong>download<\/strong> (1000 \u041a\u0431\u0438\u0442\/\u0441) <strong>upload<\/strong> (2000 \u041a\u0431\u0438\u0442\/\u0441) \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0438\u0437 \u0448\u0438\u0440\u0438\u043d\u044b <strong>5000 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415 !!!<\/span><\/strong><\/p>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 (<strong>upload<\/strong>) \u0442\u0440\u0430\u0444\u0438\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 (<strong>download<\/strong>) &#8211; \u0443\u0436\u0435 \u043f\u0440\u0438\u0448\u0451\u043b \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u041d\u043e \u0435\u0441\u0442\u044c \u0445\u0438\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 (\u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0451\u0442 \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043d\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e): \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (<strong>download<\/strong>) \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e. \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<p>\u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0435 \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <strong>out<\/strong>. \u0418\u043d\u0430\u0447\u0435 \u0448\u0435\u0439\u043f\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0448\u0435\u0439\u043f\u0435\u0440\u0430:<\/p>\n<pre>altq on $ext_if cbq bandwidth 5000Kb queue { IN_ext, OUT_ext }\n        queue IN_ext bandwidth 1000Kb cbq(default borrow)\n        queue OUT_ext bandwidth 2000Kb\n\naltq on $int_if cbq bandwidth 5000Kb queue { IN_int, OUT_int }\n        queue IN_int bandwidth 1000Kb cbq(default borrow)\n        queue OUT_int bandwidth 2000Kb\n<\/pre>\n<p>\u041d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u043c \u0448\u0435\u0439\u043f\u0435\u0440:<\/p>\n<p><code>pass out on ext_if from any to $int_if:network queue IN_ext no state<br \/>\npass out on int_if from $int_if:network to any queue OUT_int no state<br \/>\n<\/code><\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0432 <strong>pf&#8217;e<\/strong> \u0432\u0430\u0436\u0435\u043d \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b:<\/p>\n<ul>\n<li><code>1) \u043c\u0430\u043a\u0440\u043e\u0441\u044b<br \/>\n<\/code><\/li>\n<li><code>2) \u0442\u0430\u0431\u043b\u0438\u0446\u044b<br \/>\n<\/code><\/li>\n<li><code>3) \u043e\u043f\u0446\u0438\u0438<br \/>\n<\/code><\/li>\n<li><code>4) \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<br \/>\n<\/code><\/li>\n<li><code>5) \u043f\u0440\u0438\u043e\u0440\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 ALTQ<br \/>\n<\/code><\/li>\n<li><code>6) \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438<br \/>\n<\/code><\/li>\n<li><code>7) \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u0430<\/code><\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 <strong>altq\/queue<\/strong> \u0431\u0443\u0434\u0443\u0442 \u0438\u0434\u0442\u0438 \u0432\u044b\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438, \u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 <strong>pass<\/strong> &#8211; \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c :<\/p>\n<p><code># pfctl -sq<br \/>\nqueue root_em0 on em0 bandwidth 5Mb priority 0 cbq( wrr root ) {IN_ext, OUT_ext}<br \/>\nqueue IN_ext on em0 bandwidth 1Mb cbq( borrow default )<br \/>\nqueue OUT_ext on em0 bandwidth 2Mb<br \/>\nqueue root_em1 on em1 bandwidth 5Mb priority 0 cbq( wrr root ) {IN_int, OUT_int}<br \/>\nqueue IN_int on em1 bandwidth 1Mb cbq( borrow default )<br \/>\nqueue OUT_int on em1 bandwidth 2Mb <\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/p>\n<p>\u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <strong>borrow+cbq<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0430\u043c \u044d\u0442\u043e\u0433\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u042f\u0440\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 &#8211; \u043d\u0435 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439. \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e &#8211; \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e <strong>cbq -&gt; hfsc<\/strong><\/p>\n<p>\u0421\u0430\u043c\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0<a href=\"http:\/\/lists.freebsd.org\/pipermail\/freebsd-pf\/2009-March\/005058.html\" rel=\"nofollow\">http:\/\/lists.freebsd.org\/pipermail\/freebsd-pf\/2009-March\/005058.html<\/a><br \/>\n\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b\u00a0<a href=\"http:\/\/lists.freebsd.org\/pipermail\/freebsd-pf\/2009-March\/005061.html\" rel=\"nofollow\">http:\/\/lists.freebsd.org\/pipermail\/freebsd-pf\/2009-March\/005061.html<\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 2.<\/span><\/strong><\/p>\n<p>\u0412 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0435 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <strong>OpenBSD 5.5<\/strong>) <strong>pf<\/strong> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430\u00a0<a style=\"color: #606090;\" href=\"http:\/\/www.openbsd.org\/cgi-bin\/man.cgi?query=pf.conf&amp;sektion=5&amp;arch=&amp;apropos=0&amp;manpath=OpenBSD+Current#QUEUEING\" rel=\"nofollow\">\u043d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/a>\u00a0\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044f\u043c\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 <strong>ALTQ<\/strong>. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <strong>ALTQ<\/strong>\u00a0\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <strong>5.6<\/strong> \u0443\u0434\u0430\u043b\u0435\u043d\u0430 \u0438\u0437 <a href=\"http:\/\/undeadly.org\/cgi?action=article&amp;sid=20140419151959\">\u043a\u043e\u0434\u0430<\/a>. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432 <strong>pf.conf<\/strong> \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f &#8220;<strong>block return<\/strong>&#8220;. \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430:<\/p>\n<p><code> queue std on em0 bandwidth 100M<br \/>\nqueue ssh parent std bandwidth 10M<br \/>\nqueue mail parent std bandwidth 10M, min 5M, max 25M<br \/>\nqueue http parent std bandwidth 80M default<br \/>\n...<br \/>\npass in proto tcp to port 25 set queue mail<br \/>\n<\/code><\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 3<\/strong><\/span><\/p>\n<p>\u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e <strong>altq<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <strong>32<\/strong> \u0431\u0438\u0442\u043d\u044b\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438 \u0438\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 <strong>10<\/strong> \u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u043e\u043c (\u0438 \u0432\u044b\u0448\u0435) \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e <a href=\"https:\/\/bugs.freebsd.org\/bugzilla\/show_bug.cgi?id=211730\">\u0442\u0438\u043a\u0435\u0442\u0443<\/a><\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u0434\u043b\u044f <strong>OpenBSD<\/strong> \u0438 <a href=\"https:\/\/undeadly.org\/cgi?action=article;sid=20260319125859\">\u043f\u0430\u0442\u0447<\/a> \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 pf \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435: No ALTQ support in kernel ALTQ related functions disabled \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 altq \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0443 \u044f\u0434\u0440\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0438\u0435 \u043e\u043f\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u044f\u0434\u0440\u0430:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,25,12],"tags":[],"class_list":["post-1820","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-openbsd","category-routers"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1820"}],"version-history":[{"count":27,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1820\/revisions"}],"predecessor-version":[{"id":6732,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1820\/revisions\/6732"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}