Is it possible to set up OpenBSD such, that it will have IP1 internally (in hosts, in hostname.en0, sockets binds to IP1), but convert it to IP2 when packet goes to ethernet. Also, packets for the IP2 should be received and delivered to services which were bind to IP1.
I think, this is possible in Linux, with
iptables firewall (something like by DNAT/SNAT), but now I want to do this on OpenBSD.
I can setup routing of real LAN in any way.