Cisco – How to set up PBR for torrent traffic with a Cisco 891

ciscopbr

I am setting up a Cisco 891-K9 with dual WAN. How do I setup policy based routing for all torrent traffic to be sent over the secondary WAN link?

I recall seeing routers that detect traffic type. Do they just look for traffic on common torrent ports (6881-6889)?

Best Answer

Assuming you can choose the port range your torrent client will use, you should set up PBR as follow:

ip access-list extended torrent
 permit tcp any range $STARTPORT $ENDPORT any
!
interface $LAN
 ip policy route-map PBR  
!
route-map PBR permit 10
 match ip address torrent
 set ip next-hop $WAN1-IP       
!
route-map Texas permit 20
 set ip next-hop $WAN2-IP