[Swan-dev] connalias

Tuomo Soini tis at foobar.fi
Mon Aug 27 07:09:19 UTC 2018


On Sun, 26 Aug 2018 21:46:11 -0400 (EDT)
Paul Wouters <paul at nohats.ca> wrote:

> On Sun, 26 Aug 2018, D. Hugh Redelmeier wrote:
> 
> > Why is connalias not documented?  
> 
> I think because it is supposed to be an "internal API".
> 
> > It is tested in testing/pluto/alias-01.  
> 
> There it is used explicitely. I think this is used to alias
> connections for subnets=, eg
> 
> conn test
>  	leftsubnets={10.0.2.0/24, 10.0.1.0/24}
>  	rightsubnets={192.168.0.0/24, 192.168.100.0/24}
>  	[...]

I'd suggest removing use of {} from all examples and just remove
spaces, using format leftsubnets=10.0.2.0/24,10.0.1.0/24

> 
> This will create 3 conns:
>  	test/0x1
>  	test/0x2
>  	test/1x1
>  	test/0x2
> 
> (I believe left starts at 0 and right starts at 1 for unknown reasons)

0 is used when there is *subnet=, 1 is used as start if *subnets= is
used.

-- 
Tuomo Soini <tis at foobar.fi>
Foobar Linux services
+358 40 5240030
Foobar Oy <https://foobar.fi/>


More information about the Swan-dev mailing list