0

I have set a NAT Rule for chain=dstnat action=dst-nat port=1234 and is working ok, I can access application from internet to my local pc, now i want to limit this port=1234 on upload speed but i cant do it!

On Simple Queues there is option but to limit on IP Address not on port, i use multiple ports so i want to limit on port. Is this possible ?

Thank you.

David L
  • 703
  • 6
  • 22
RednBlack
  • 104
  • 3
  • 18

1 Answers1

1

It's possible, you'll need a setup where mark packets on mangle table.

/ip firewall mangle
add action=mark-packet chain=forward dst-port=1234 new-packet-mark=custom-port passthrough=no protocol=tcp

After that, you can do traffic shapping on those marked packets.

/ queue simple 
add name="custom-port" parent=main packet-marks=custom-port max-limit=240000/500000 priority=1
David L
  • 703
  • 6
  • 22