on a heX I need a PBR rule which redirects all TCP traffic to dst.port 80+443 from the port 2 to the transparent proxy (to its eth0.10 interface), which is a “router on a stick” - a PC with only one NIC and two VLANs. The HTTP/HTTPS traffic is processed on the transparent proxy and sent back using eth0.20 interface.
I fount a configuration example with an additional swith, but I wonder if it can be done with heX alone.
ideally both proxy’s IP addresses will be in different LAN subnets, both different than “normal” LAN subnet.
You can use smaller subnets for proxy’s interfaces if you want (I don’t see any benefit in doing it though, there are enough “standard sized” private subnets available)
after that you construct firewall filter/nat/mangle rules using IP addresses (of the client PC, both proxy’s addresses, …)