I apologize for the English,
A task to divide 2 channels in inet stood, allowing on one of them (which worse) torrent, and other http, games, telephon and tp. As to redirect a torrent traffic it is straight impossible on one of ductings, decided to note necessary me services and allow them on one channel, and other, accordingly, all other, including torrent.
Стояла задача разделить 2 канала в инет, пустив по одному из них (который похуже) торренты, а по другому хттп, игры, телефонию и тп. Поскольку перенаправить торрент трафик напрямую на один из каналов невозможно, решил пометить нужные мне сервисы и пустить их по одному каналу, а по другому, соответственно, все остальное, в том числе и торренты.
As I did:
Как я сделал:
/ip firewall mangle> print
....
4;;; http https
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=tcp
dst-port=80,8080,443,3128,8008,8090
5;;; mail TCP
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=tcp
dst-port=21,25,57,109,110,143,220,587,995,20
6;;; mail UDP
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=udp
dst-port=21,25,57,109,110,143,220,587,995,20
7;;; ICQ
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=tcp dst-port=5190
....
And td on a list.
И тд по списку…
ip route print detail
0 A S dst-address=0.0.0.0/0 gateway=XXX.XXX.XXX.XXX interface=1_channel gateway-state=reachable distance=1 scope=255
target-scope=10 routing-mark=marked
1 A S dst-address=0.0.0.0/0 gateway=XXX.XXX.XXX.XXX interface=2_channel gateway-state=reachable distance=1 scope=255
target-scope=10
!!!Can not dissociate Torrent from a 80 port!!!
as it to do and better what web Server, icq, mail work through a 1yy channel, as well as it would be desirable, however much games (CS tried, Garena, Warcraft) renounce to work. Also does not turn out to allow on the normal channel of icmp. For games tried to do the followings rules in mangle:
Торрент не могу отделить от 80 порта!!! как это сделать и лучше чем Веб, icq, почта работают через 1ый канал, как и хотелось бы, однако игры (пробовал CS, Garena, Warcraft) отказываются работать. Также не получается пустить по нормальному каналу icmp. Для игр пытался делать следующие правила в mangle:
9;;; CS routing udp
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=udp
dst-port=27000-27200,7001,7002,6003,19000,19001
10;;; CS routing tcp
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=tcp
dst-port=27000-27200,7001,7002,6003,19000,19001
13;;; garena routing udp
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=udp
dst-port=1513,1514,8688,7456,6112-6119,4000,6200
14;;; garena routing tcp
chain=prerouting action=mark-routing new-routing-mark=marked passthrough=no protocol=tcp
dst-port=1513,1514,8688,7456,6112-6119,4000,6200
From here question, how is it correct to realize dividing on the types of traffic into the different ductings? How to present torrent and allow on a separate channel ?
And yet such question. For some users sometimes pages embark not from the first time. That from the first time simply error and after the update of one times or two all is normal. Is it possible from wrong realization of this chart or it is related to something other? To the connoisseurs enormous request to help. Tortured already to search infu in inet on this topic =)
Отсюда вопрос, как же правильно реализовать разделение по типам трафика на разные каналы? Как оделить торрент и пустить на отдельный канал?
И еще такой вопрос. У некоторых пользователей иногда странички грузятся не с первого раза. То есть с первого раза просто ошибка а после обновления раз или два все нормально. Возможно ли это из-за неправильной реализации этой схемы или связано с чем-то другим? Знатокам огромная просьба помочь. Замучался уже искать инфу в инете по этой теме =)