My mikrotik setup has 2 Wan connections (Two routes distance 1 & 2 ) is there possible to mark all torrents packages (down/up) and pass them through the secondary gateway ?
I tried this and not working:
/ip firewall mangle
add action=accept chain=prerouting disabled=no p2p=all-p2p routing-mark=dsl
/ip route
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
91.184.xxx.xxx routing-mark=dsl scope=30 target-scope=10
I wanna do this as well. anyone?
Feklar
February 7, 2012, 9:50pm
4
No, connection state information cannot be shared between routers, or between routes.
nikolas22t:
My mikrotik setup has 2 Wan connections (Two routes distance 1 & 2 ) is there possible to mark all torrents packages (down/up) and pass them through the secondary gateway ?
I tried this and not working:
/ip firewall mangle
add action=accept chain=prerouting disabled=no p2p=all-p2p routing-mark=dsl
/ip route
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
91.184.xxx.xxx routing-mark=dsl scope=30 target-scope=10
it should be done by these rules. but the problum is mikrotik does’nt understand p2p traffic, torrent works even if u drop all-p2p traffic. i have filter rules to block torrent traffic with keywords.
You could try L7 rule…
/ip filter layer add name=bittorrent"^(bittorrent protocol|azver$|get /scrape?info_hash=)|d1:ad2:id20:|'7P)[RP]"
and use this to mark packets.
I have also had some success specifying P2P in my firewall/mangle rules.