ubuntu server use netplan, F again
This commit is contained in:
parent
6add6b916b
commit
82bd1cfb32
2 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
||||||
---
|
---
|
||||||
interfaces:
|
interfaces:
|
||||||
enp2s0:
|
enp2s0:
|
||||||
ipv4: "45.66.110.3"
|
ipv4: 45.66.110.3
|
||||||
netmaskv4: 24
|
netmaskv4: 24
|
||||||
|
type: static
|
||||||
|
routes:
|
||||||
|
- {subnet: 0.0.0.0, netmask: 0, gateway: 45.66.110.254}
|
||||||
wg0:
|
wg0:
|
||||||
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
|
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
|
||||||
netmaskv4: "{{ intranet.netmaskv4 }}"
|
netmaskv4: "{{ intranet.netmaskv4 }}"
|
||||||
|
type: wireguard
|
||||||
|
|
||||||
ipv4_forwarding: true
|
ipv4_forwarding: true
|
||||||
ipv6_forwarding: false
|
ipv6_forwarding: false
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
vpn_interfaces:
|
vpn_interfaces:
|
||||||
wg0:
|
wg0:
|
||||||
ip: "{{ interfaces.wg0.ipv4 }}"
|
|
||||||
private_key: "{{ vpn_vault_hindley_key }}"
|
private_key: "{{ vpn_vault_hindley_key }}"
|
||||||
public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA="
|
public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA="
|
||||||
keepalive: false
|
keepalive: false
|
||||||
|
|
Loading…
Reference in a new issue