Below comes the solution to this problem. For the explanations on why it works, you may refer to the original answer [1].
# sysctl net.inet.ip.forwarding=1 # cat /etc/pf.conf ... pass in on re0 proto tcp from any to (re0) port 1080 rdr-to 10.64.0.1 tag nat pass out on wg0 proto tcp nat-to (wg0) tagged nat ... [1] https://marc.info/?l=openbsd-pf&m=168215778109013&w=2 Cheers, Charlie

