Redirect P2P to another gateway?

I have a DSL line and a DS3 feeding my customers. All customers have public IPs from the 45 feed. I want to redirect only P2P traffic from the customers to the DSL feed. How would I go about this? Ive created a routing mark for P2P. Not sure how to redirect it to the DSL interface? Do I have to use proxy?

Thanks
-Jon

Routing mark will be enovght.

wavemich, amount of time required to recognize, that particular traffic is p2p (some packets flow over default gateway). That’s why you have route p2p traffic over default gateway, and than redirect specific traffic over alternative gateway (HTTP, FTP, etc.).

Hi sergejs do u have a script? I try make this rule, but dont have a sucess..
do u have a msn?

Regards Igor

sergejs, would it be able to get a decent amount of the P2P over to the other line? I would imagine we’d get a LOT of phone calls and creating rules if we did it your method…

Thanks
-Jon

yap, give us a example…

Perhaps set default gateway for p2p then add routing mark for “not p2p”
Then add route to match that mark

Maybe that would work

Good idea! Now I just need to figure out how to route ‘routing marks’. Will my ‘DSL’ ISP accept outbound IP addresses that are not their own?

Hi

You will need to srcnat your p2p for your isp if not useing there IP’s, I use winbox, if you add route you can choose routing mark

I also like this method becuse if one isp goes down using check gateway ping it will fall over to the next

I am no expert, I just learnt from this forum & playing alot, sorry if I cannot give good answer :slight_smile:

Equis… Give us a exemple…

I had the same problem as described, but never had 100% success redirecting only p2p traffic to secondary gateway.
Users always complained about “LowId” with Emule or other similar problems in other p2p softwares.
The best what I got is to leave p2p on default gw, and redirect everything else to second link.

Hello

I will give a sample but need to wait for the weekend when I can make it.

I will post back on weekend

Thanks

For example on how to set routing marks see the wiki: http://wiki.mikrotik.com/wiki/Load_Balancing

Hi, please, public an example of a marking and routing to two pppoe-outs, i can´t do it. just mark the http traffics but don{t know how redirect to a pppoe-out2, and the pppoe-out1 is a default gateway.

[admin@MikroTik] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade

[admin@MikroTik] > ip firewall mangle print
11 ;;; All P2P coneccion
chain=forward p2p=all-p2p action=mark-connection
new-connection-mark=p2p-coneccion passthrough=yes

12 chain=forward connection-mark=p2p-coneccion
action=mark-packet new-packet-mark=p2p
passthrough=yes

13 ;;; HTTP Marks !!
chain=prerouting src-address=10.0.0.0/24
protocol=tcp dst-port=80 action=mark-routing
new-routing-mark=HTTP passthrough=yes

the counter of mangle rules of http is runinng, have aprox. 50 Mb per day.

regards.-