Re: wireguard listen in other rdomain?

2020-08-12 Thread Stefan Sperling
On Tue, Aug 11, 2020 at 05:46:05PM -0500, Abel Abraham Camarillo Ojeda wrote:
> Hi to all,
> 
> (unsure if this if for tech@ or misc@)
> 
> I'm using wireguard interfaces but I see that no matter what
> domain I put the interface:
> 
> # ifconfig wg0 rdomain X
> 
> It always listens in rdomain 0 (default),
> is this expected?, is there any way to listen in another rdomain?
> I want to expose several wg interfaces all listening in same port but
> there's not option to listen in another ip address:
> 
>  wgport port
>  Set the UDP port that the tunnel operates on.  The interface
> will
>  bind to INADDR_ANY and IN6ADDR_ANY_INIT.  If no port is
>  configured, one will be chosen automatically.
> 
> I tried creating several wg interfaces with different wgport and using
> pf udp redirections but source address selection gets very messy...
> 
> Ideas?

Did you try 'ifconfig wg0 wgrtable X' already?



wireguard listen in other rdomain?

2020-08-11 Thread Abel Abraham Camarillo Ojeda
Hi to all,

(unsure if this if for tech@ or misc@)

I'm using wireguard interfaces but I see that no matter what
domain I put the interface:

# ifconfig wg0 rdomain X

It always listens in rdomain 0 (default),
is this expected?, is there any way to listen in another rdomain?
I want to expose several wg interfaces all listening in same port but
there's not option to listen in another ip address:

 wgport port
 Set the UDP port that the tunnel operates on.  The interface
will
 bind to INADDR_ANY and IN6ADDR_ANY_INIT.  If no port is
 configured, one will be chosen automatically.

I tried creating several wg interfaces with different wgport and using
pf udp redirections but source address selection gets very messy...

Ideas?

Thanks