bundles/wireguard: easier snat setup
This commit is contained in:
parent
e70a86a6c1
commit
234e81431d
4 changed files with 18 additions and 24 deletions
|
@ -165,10 +165,10 @@ nodes['home.router'] = {
|
|||
},
|
||||
'wireguard': {
|
||||
'external_hostname': 'franzi-home.kunbox.net', # Set via DynDNS
|
||||
'snat_ip': '172.19.138.1',
|
||||
'peers': {
|
||||
'ovh.wireguard': {
|
||||
'health_check': True,
|
||||
'snat_to': '172.19.138.1',
|
||||
},
|
||||
'icinga2': {},
|
||||
},
|
||||
|
|
|
@ -50,16 +50,10 @@ nodes['htz-cloud.wireguard'] = {
|
|||
'ram': 2,
|
||||
},
|
||||
'wireguard': {
|
||||
'snat_ip': '172.19.137.2',
|
||||
'peers': {
|
||||
'ovh.wireguard': {
|
||||
'snat_to': '172.19.137.2',
|
||||
},
|
||||
'icinga2': {
|
||||
'snat_to': '172.19.137.2',
|
||||
},
|
||||
},
|
||||
'subnets': {
|
||||
'172.19.137.0/24',
|
||||
'ovh.wireguard': {},
|
||||
'icinga2': {},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -26,12 +26,6 @@ ips = [
|
|||
gateway4 = "10.255.255.1"
|
||||
gateway6 = "fe80::1"
|
||||
|
||||
[metadata.interfaces.wg_home_router]
|
||||
ips = ["172.19.136.4"]
|
||||
|
||||
[metadata.interfaces.wg_htz-cloud_wi]
|
||||
ips = ["172.19.136.4"]
|
||||
|
||||
[metadata.bird]
|
||||
static_routes = ["172.19.136.4/32"]
|
||||
|
||||
|
@ -62,11 +56,11 @@ SERVICEGROUP_ID = 80
|
|||
[metadata.postgresql]
|
||||
version = 15
|
||||
|
||||
[metadata.wireguard.peers.'home.router']
|
||||
snat_to = "172.19.136.4"
|
||||
[metadata.wireguard]
|
||||
snat_ip = "172.19.136.4"
|
||||
|
||||
[metadata.wireguard.peers.'home.router']
|
||||
[metadata.wireguard.peers.'htz-cloud.wireguard']
|
||||
snat_to = "172.19.136.4"
|
||||
|
||||
[metadata.vm]
|
||||
cpu = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue