You may find this trivial, but I'm not an expert in packet filtering.
What's the best way to use a different gateway for an email client's traffic from a bhyve VM (see below)?
In particular, IMAP (993) and SMTP (587) are blocked on the LAN, so, the corresponding traffic should go through Wireguard VPN (WG).
Thanks for advises!
What's the best way to use a different gateway for an email client's traffic from a bhyve VM (see below)?
In particular, IMAP (993) and SMTP (587) are blocked on the LAN, so, the corresponding traffic should go through Wireguard VPN (WG).
Code:
----------- -----------
| | | |
LAN -------| FreeBSD | NAT | Win10 |
| host |------| bhyve |
WG ---| | | VM |
| | | |
----------- -----------