docs: user/site.rst: add peer with ip addresses and mention resilience benefit

This commit is contained in:
hexa- 2017-03-16 21:59:02 +01:00 committed by Martin Weinelt
parent e13f1b2c5b
commit fa495c4438
No known key found for this signature in database
GPG Key ID: BD4AA0528F63F17E

View File

@ -229,6 +229,16 @@ mesh_vpn
-- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
remotes = {'"vpn2.alpha-centauri.freifunk.net" port 10000'},
},
peer3 = {
key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
-- In addition to domains you can also add ip addresses, which provides
-- resilience in case of dns outages
remotes = {
'"vpn3.alpha-centauri.freifunk.net" port 10000',
'[2001:db8::3:1]:10000',
'192.0.2.3:10000',
},
},
},
-- Optional: nested peer groups
-- groups = {