I want to use tproxy protocol for squid transparent proxy

I want to build a transparent squid proxy based on tproxy at I want to set the routing table and firewall policy in the vyos router and carry out tproxy forwarding. Can you tell me how to set it, or do I have to directly operate iptables?