Community discussions

MikroTik App
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Mark Routing YouTube Packet

Sun Sep 16, 2018 11:29 am

hello all

i have a problem to mark routing on www.youtube.com

my rule :
/ip firewall layer7-protocol
add name=YouTube regexp="^.+(youtube).*$"

/ip firewall mangle
add action=mark-routing chain=prerouting layer7-protocol=YouTube \
    new-routing-mark=vpn passthrough=no
    
/ip route
add distance=1 gateway=192.168.11.1 routing-mark=vpn  
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Mark Routing YouTube Packet

Mon Sep 17, 2018 2:08 pm

please help me
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Mark Routing YouTube Packet

Tue Sep 18, 2018 4:05 pm

Hello, see here the layer7 protocols:

https://www.wirelessinfo.be/mikrotik-layer7-codes/
 
Sob
Forum Guru
Forum Guru
Posts: 9120
Joined: Mon Apr 20, 2009 9:11 pm

Re: Mark Routing YouTube Packet

Tue Sep 18, 2018 8:10 pm

It won't be much help for routing purposes. Connections have to be routed from very first packet and there's nothing identifiable in SYN packets.

Basically there are two options:

a) Find networks used by Google and route them as whole, but it will include more than just Youtube.
b) Do some trick with address list, where you can add addresses found by L7. Then mark routing based on this list. It won't work for first connection, only subsequent ones.

Who is online

Users browsing this forum: ichyre and 18 guests