Friday, June 07, 2024

Share one of machines IP via WireGuard

misc@,

I wonder if it is possible to share an IP associated with a machine through
a WireGuard connection?

Suppose I have a machine that has two IPs on different networks:
- 1.2.3.4/24 gw 1.2.3.1
- 1.2.4.5/24 gw 1.2.5.1

I'd like to allow incoming connections via WG to 1.2.3.4 and forward 1.2.4.5
to the WG client.

The best I can do now is create rdomain with wg and vether interfaces, and
use PF nat to vether.

But maybe it is possible to avoid NAT somehow?

--
wbr, Kirill

No comments:

Post a Comment