forked from zentralwerk/network
prepare ipv6-tunnel with he.net for upstream2
This commit is contained in:
parent
b46161aea7
commit
5365eb116e
|
@ -9,3 +9,8 @@ port-forwarding:
|
||||||
- proto: udp
|
- proto: udp
|
||||||
port: 1194
|
port: 1194
|
||||||
to: 172.20.75.9:1194
|
to: 172.20.75.9:1194
|
||||||
|
|
||||||
|
ipv6-tunnel:
|
||||||
|
endpoint: 216.66.80.30
|
||||||
|
address: 2001:470:1f0a:12b2::2
|
||||||
|
gateway: 2001:470:1f0a:12b2::1
|
||||||
|
|
|
@ -38,6 +38,7 @@ base:
|
||||||
- collectd
|
- collectd
|
||||||
'upstream2':
|
'upstream2':
|
||||||
- upstream.port-forwarding
|
- upstream.port-forwarding
|
||||||
|
- upstream.ipv6-tunnel
|
||||||
'anon*':
|
'anon*':
|
||||||
- no-ssh
|
- no-ssh
|
||||||
- forwarding
|
- forwarding
|
||||||
|
|
7
salt/upstream/ipv6-tunnel.conf
Normal file
7
salt/upstream/ipv6-tunnel.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
auto ipv6
|
||||||
|
iface ipv6 inet6 v4tunnel
|
||||||
|
address {{ address }}
|
||||||
|
netmask 64
|
||||||
|
endpoint {{ endpoint }}
|
||||||
|
ttl 255
|
||||||
|
gateway {{ gateway }}
|
15
salt/upstream/ipv6-tunnel.sls
Normal file
15
salt/upstream/ipv6-tunnel.sls
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/etc/network/interfaces.d/ipv6-tunnel.conf:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://upstream/ipv6-tunnel.conf
|
||||||
|
- template: 'jinja'
|
||||||
|
- context:
|
||||||
|
endpoint: {{ pillar['ipv6-tunnel'].get('endpoint') }}
|
||||||
|
address: {{ pillar['ipv6-tunnel'].get('address') }}
|
||||||
|
gateway: {{ pillar['ipv6-tunnel'].get('gateway') }}
|
||||||
|
- require:
|
||||||
|
- pkg: ifupdown
|
||||||
|
|
||||||
|
'ifdown ipv6; ifup ipv6':
|
||||||
|
cmd.run:
|
||||||
|
- onchanges:
|
||||||
|
- file: /etc/network/interfaces.d/ipv6-tunnel.conf
|
10
subnets.md
10
subnets.md
|
@ -57,3 +57,13 @@ Machine-readable here: [salt-pillar/subnets](./salt-pillar/subnets/init.sls)
|
||||||
* fd23:42:c3d2:5cd::/64 PRIV14
|
* fd23:42:c3d2:5cd::/64 PRIV14
|
||||||
* fd23:42:c3d2:5ce::/64 PRIV15
|
* fd23:42:c3d2:5ce::/64 PRIV15
|
||||||
* fd23:42:c3d2:5cf::/64 PRIV16
|
* fd23:42:c3d2:5cf::/64 PRIV16
|
||||||
|
|
||||||
|
## Tunnelbroker.net
|
||||||
|
|
||||||
|
* 2001:470:1f0b:12b1::/64
|
||||||
|
* 2001:470:77fb::/48
|
||||||
|
|
||||||
|
# Peer C3D2:
|
||||||
|
|
||||||
|
* 172.22.99.0/24
|
||||||
|
* 2001:470:6d:670::/64
|
||||||
|
|
Loading…
Reference in New Issue
Block a user