Funnel outgoing packets through a WireGuard tunnel I have a VPS (A) with a static IP address, and a local virtual machine (B), connected by a WireGuard tunnel.

Right now I just use them to talk directly to each other, for example, ssh from (B) to (A)'s WireGuard IP address.

(B) also runs an IRC client. I'd like to route (B)'s IRC traffic through WireGuard, so that it appears to the IRC server like it originates in (A). Is that just a matter of setting some pf rules in (A) and (B)? How do I do it?