Page 1 of 1
Marking connection for some time
Posted: Wed Nov 11, 2020 12:42 pm
by dacoshild
Hi,
is there any way how to mark new TCP connection for some time? Like 10 seconds or so?
I'm currently marking connection based on size, so the first 10MB is marked, but that doesn't really suits my need:
chain=forward action=mark-packet new-packet-mark=test protocol=!udp connection-bytes=0-10000000 out-interface=all-ppp
Thanks
Re: Marking connection for some time
Posted: Wed Nov 11, 2020 1:37 pm
by nickshore
You can add the IP into an address list with a timeout, and then use the address list to mark the packets
Re: Marking connection for some time
Posted: Thu Nov 12, 2020 12:35 pm
by dacoshild
Thanks, I know about this option, but it also doesn't really suits my need.
What I want to do is to give each new connection a mark, based on the first 10 seconds and give it a burst speed. Since I'm running many pppoe-clients on this mikrotik and I want to give each client (customer) burst for each of his devices and connections separately, address list is not a solution.
Address list would be bound to either source IP (which is client itself) and give it all connections a burst or destination address (which is i.e. youtube) and give burst to all clients for that site.
Solution with first 10MB works great, but for clients with low speeds, that is too much time of a burst and for clients with high speeds, that is too little time of a burst.
I just want to change that 10MB for 10 seconds somehow.
Re: Marking connection for some time
Posted: Thu Nov 12, 2020 4:02 pm
by sindy
I just want to change that 10MB for 10 seconds somehow.
The only thing to come to my mind is to create one
address-list per each speed category (and refer to these
address-list names on the
/ppp profile rows), and use e.g. a 10 MB burst limit for fast clients and 1 MB lmit for slow ones. So the limit will be applied per individual connection, but the size of the limit will depend on the client.
Re: Marking connection for some time
Posted: Mon Nov 16, 2020 5:07 pm
by dacoshild
I don't understand why they don't implement option "connection-time" and it would mark it for x seconds. This would be great.