Firewall rules for mikrotik router using haproxy and squid

My setup is as follows:
Client connected to MikroTik router.
I then use these iptables rules (iptables -t nat -A PREROUTING -p tcp -j DNAT --to-destination 54.231.226.34:4127 && iptables -t nat -A POSTROUTING -p tcp --dport 4127 -j MASQUERADE) on the MikroTik router to connect to haproxy box.
Haproxy box then routes traffic to squid box running squid v.3.4.3 with squid.conf having http_port with no flag (because intercept flag does not work in 3.4.3)
All I get on the client browser is the squid artwork error.

When I try the same exact setup with an older version of squid running on the squid box and using the transparent flag for http_port, everything works great!

Are there any rules I can try out on the MikroTik router to fix this issue?