I want to build a transparent squid proxy

I want to build a transparent squid proxy based on tproxy at 192.168.0.254. 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?