шейпит в одну сторону

Вопросы и пожелания
Ответить
zakachkin
Сообщения: 336
Зарегистрирован: Чт янв 07, 2010 11:00 am

шейпит в одну сторону

Сообщение zakachkin »

Код: Выделить всё

bsd# ipfw list
00006 nat 123 ip from 10.10.0.0/16 to any
00007 nat 123 ip from any to 192.168.0.4
02030 allow ip from table(10,3) to table(2,1) out xmit sis0
02031 allow ip from table(2,1) to table(10,3) in recv sis0
02040 allow ip from table(10,4) to table(2,1) out xmit sis0
02041 allow ip from table(2,1) to table(10,4) in recv sis0
02060 allow ip from table(10,6) to table(2,1) out xmit sis0
02061 allow ip from table(2,1) to table(10,6) in recv sis0
02070 allow ip from table(10,7) to table(2,1) out xmit sis0
02071 allow ip from table(2,1) to table(10,7) in recv sis0
02080 allow ip from table(10,8) to table(2,1) out xmit sis0
02081 allow ip from table(2,1) to table(10,8) in recv sis0
02090 allow ip from table(10,9) to table(2,1) out xmit sis0
02091 allow ip from table(2,1) to table(10,9) in recv sis0
02100 allow ip from table(10,10) to table(2,1) out xmit sis0
02101 allow ip from table(2,1) to table(10,10) in recv sis0
02110 allow ip from table(10,11) to table(2,1) out xmit sis0
02111 allow ip from table(2,1) to table(10,11) in recv sis0
02120 allow ip from table(10,12) to table(2,1) out xmit sis0
02121 allow ip from table(2,1) to table(10,12) in recv sis0
03030 pipe 3030 ip from table(10,3) to any out xmit sis0
03031 pipe 3031 ip from any to table(10,3) in recv sis0
03040 pipe 3040 ip from table(10,4) to any out xmit sis0
03041 pipe 3041 ip from any to table(10,4) in recv sis0
03050 allow ip from table(10,5) to any out xmit sis0
03051 allow ip from any to table(10,5) in recv sis0
03060 allow ip from table(10,6) to any out xmit sis0
03061 allow ip from any to table(10,6) in recv sis0
03070 allow ip from table(10,7) to any out xmit sis0
03071 allow ip from any to table(10,7) in recv sis0
03080 allow ip from table(10,8) to any out xmit sis0
03081 allow ip from any to table(10,8) in recv sis0
03090 allow ip from table(10,9) to any out xmit sis0
03091 allow ip from any to table(10,9) in recv sis0
03100 allow ip from table(10,10) to any out xmit sis0
03101 allow ip from any to table(10,10) in recv sis0
03110 allow ip from table(10,11) to any out xmit sis0
03111 allow ip from any to table(10,11) in recv sis0
03120 pipe 3120 ip from table(10,12) to any out xmit sis0
03121 pipe 3121 ip from any to table(10,12) in recv sis0
03140 pipe 3140 ip from table(10,14) to any out xmit sis0
03141 pipe 3141 ip from any to table(10,14) in recv sis0
03150 pipe 3150 ip from table(10,15) to any out xmit sis0
03151 pipe 3151 ip from any to table(10,15) in recv sis0
03160 pipe 3160 ip from table(10,16) to any out xmit sis0
03161 pipe 3161 ip from any to table(10,16) in recv sis0
03170 allow ip from table(10,17) to any out xmit sis0
03171 allow ip from any to table(10,17) in recv sis0
08000 pipe 8000 ip from table(10,12500) to any out xmit sis0
08001 pipe 8001 ip from any to table(10,12500) in recv sis0
08002 pipe 8002 ip from table(10,14500) to any out xmit sis0
08003 pipe 8003 ip from any to table(10,14500) in recv sis0
08004 pipe 8004 ip from table(10,17500) to any out xmit sis0
08005 pipe 8005 ip from any to table(10,17500) in recv sis0
08006 pipe 8006 ip from table(10,10500) to any out xmit sis0
08007 pipe 8007 ip from any to table(10,10500) in recv sis0
65535 allow ip from any to any
В таком положении у абонента шейпится только входящий трафик
если правила ната перевести в конец то шейпиться только исходящий...
как сделать чтоб шейпилось в обе стороны?
Я не волшебник... я только учусь!

zakachkin
Сообщения: 336
Зарегистрирован: Чт янв 07, 2010 11:00 am

Re: шейпит в одну сторону

Сообщение zakachkin »

О, понял соль-)
Пайпы должны быть в промежности ната-)
Я не волшебник... я только учусь!

gekz
Сообщения: 169
Зарегистрирован: Пн май 17, 2010 7:30 am

Re: шейпит в одну сторону

Сообщение gekz »

zakachkin писал(а):О, понял соль-)
Пайпы должны быть в промежности ната-)
:D

Ответить