How to configure your Mikrotik to work with SmartCache VideoCacheBox.

Mikrotik Full Tproxy - Mikrotik Checker
Mikrotik mangles in Half TProxy not respecting original users IPs with SmartCache VideoCacheBox.
Identify and define the name of your Internet, LAN and SmartCache VideoCacheBox ports.
Define the Mikrotik's Route to be used by SmartCache VideoCacheBox.
  • Gateway is the IP Address of SmartCache VideoCacheBox
  • Distance will be 1
  • Routing Mark will be used by Mangle Rule to route the traffic to SmartCache VideoCacheBox
In Mikrotik's Menu IP.
  • Select Firewall - Mangle
  • Add a new rule
  • Select prerouting
  • Add Protocol "6 (tcp)"
  • Add Port "80"
Here, just add MAC Address of your SmartCache VideoCacheBox, its traffic does not have to be marked.
  • Select mark routing
  • Type Routing Mark you used in the Route for the SmartCache VideoCacheBox
Mikrotik mangles in Full TProxy respecting original user IPs with SmartCache VideoCacheBox.
/ip firewall mangle
add action=mark-routing chain=prerouting comment="VCB tcp/80" dst-port=80 in-interface=!ether-vcb\
new-routing-mark=vcbox passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="VCB udp/80 - Chrome QUIC" dst-port=80 in-interface=!ether-vcb\
new-routing-mark=vcbox passthrough=no protocol=udp
add action=mark-connection chain=prerouting comment="VCB MC" dst-port=80 in-interface=ether-vcb\
new-connection-mark=vcbmc passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="VCB MC/VCB" connection-mark=vcbmc in-interface=!ether-vcb\
new-routing-mark=vcbox passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=forward comment="VCB HITS" dscp=12 new-packet-mark=vcbhits passthrough=no