Community discussions

MUM Europe 2020
 
wavemich
just joined
Topic Author
Posts: 24
Joined: Wed Apr 26, 2006 6:24 am

Redirect P2P to another gateway?

Fri Jun 16, 2006 8:41 pm

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
 
User avatar
Mitak
newbie
Posts: 42
Joined: Wed Jun 07, 2006 10:12 am
Location: Bulgaria
Contact:

Sat Jun 17, 2006 9:09 am

Routing mark will be enovght.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6621
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Sun Jun 18, 2006 9:53 am

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.).
 
igorkeiti
just joined
Posts: 3
Joined: Tue Apr 25, 2006 11:46 pm
Location: Brazil

Sun Jun 18, 2006 5:52 pm

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

Regards Igor
 
wavemich
just joined
Topic Author
Posts: 24
Joined: Wed Apr 26, 2006 6:24 am

Mon Jun 19, 2006 12:30 am

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
 
igorkeiti
just joined
Posts: 3
Joined: Tue Apr 25, 2006 11:46 pm
Location: Brazil

Mon Jun 19, 2006 3:50 am

yap,, give us a example...
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Mon Jun 19, 2006 9:29 am

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

Maybe that would work
 
wavemich
just joined
Topic Author
Posts: 24
Joined: Wed Apr 26, 2006 6:24 am

Mon Jun 19, 2006 6:18 pm

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?
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Mon Jun 19, 2006 11:55 pm

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 :)
 
igorkeiti
just joined
Posts: 3
Joined: Tue Apr 25, 2006 11:46 pm
Location: Brazil

Mon Jun 26, 2006 12:46 am

Equis... Give us a exemple...
 
User avatar
jager
Trainer
Trainer
Posts: 296
Joined: Mon Oct 31, 2005 2:44 am
Location: Sierra Leone
Contact:

Mon Jun 26, 2006 1:20 am

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.
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Mon Jun 26, 2006 1:38 am

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
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 993
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Mon Jun 26, 2006 12:21 pm

For example on how to set routing marks see the wiki: http://wiki.mikrotik.com/wiki/Load_Balancing
Tout individu a droit à la vie, à la liberté et à la sûreté de sa personne.
 
User avatar
patagonia
newbie
Posts: 27
Joined: Mon Jul 24, 2006 8:22 pm
Location: Rawson - Chubut

Wed Jul 26, 2006 1:55 pm

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.-

Who is online

Users browsing this forum: astons2, Bing [Bot], crosswind, lastovsky, MSN [Bot], OlofL and 129 guests