I want to limit WAN (regular vdsl in bridge mode) upload speed. WAN is 20/2mbit, and if upload manages to saturate uplink, keepalive packets start to timeout, so WAN link gets dropped. Since I use bridge, I have pppoe-client as wan interface, and ether1 is directly connected to vdsl modem. Fasttrack is disabled.
Currently I struggle with mangle settings.
What chains am I supposed to use? All wan bandwidth limit tutorials use forward chain, but that did not work or work opposite (marking download traffic as upload).
Currently I mark download connection using prerouting and in interface WAN
For upload connection using postrouting and out interface WAN.
And then for further package marking, I use prerouting for DL and postrouting for UL. Is this correct?
Asking because something is also wrong with this setup, since I cant even finish speedtest (to verify rules). It just hangs on download speed testing.