Hello misc! There is a good manual on OpenBSD faq about redirection and reflection, here it is: https://www.openbsd.org/faq/pf/rdr.html#tcpproxy
I’m using nginx as tcp and udp proxy, but maybe there is another software, more suitable for this task? I need to redirect and reflect near 15 tcp ports and couple of udp. I know I can do this with only pf, but I switched to nginx intentionally, because this amount of ports made my pf config hard readable. Thank you in advance!