Limit upload connection by SIZE.

Hello.
Simple question.

If I add firewall rule to drop connection more than 5Mbytes:

add action=drop chain=forward comment="test" connection-bytes=5000000-0 src-address=192.168.0.70

It will block both directions.

So, can I limit only upload connection by SIZE?

Try to block adding out interface.

Not in firewall, it only has notion of total usage. Maybe with hotspot (limit-bytes-out?)? (didn’t try it myself…)

No, it still block both directions.

Maybe, but I want this to be transperent, don’t want any redirections and so.

connection works both ways, you cannot drop UPLOAD without basically dropping DOWNLOAD as well. You can limit upload by using mangle facility.