This repository has been archived by the owner on Jan 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
GRE FFRL #15
Draft
Kwa5ir
wants to merge
8
commits into
master
Choose a base branch
from
Network-ffrl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
GRE FFRL #15
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cb58717
Create main.yml
Kwa5ir 2c1462a
Create tasks
Kwa5ir 97a5b44
Delete tasks
Kwa5ir 789ec2c
Create main.yml
Kwa5ir 6b59cac
Create ffrl.j2
Kwa5ir 62ab8c8
Add files via upload
Kwa5ir f956d98
Add files via upload
Kwa5ir f7465b1
Exit Node Config
Kwa5ir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- hosts: gw01.babel.md.freifunk.net: | ||
become: yes | ||
|
||
roles: | ||
- role: network-ffrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Ansible role network-ffrl | ||
|
||
Diese Ansible role konfiguriert die GRE-Tunnel Interfaces, die für den Internet-Exit über Freifunk Rheinland benötigt werden. | ||
|
||
## Benötigte Variablen | ||
- Dictionary `ffrl_exit_server` (Host Variable) | ||
|
||
``` | ||
ffrl_exit_server: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Das muss noch als tatsächliche Config für uns angelegt werden, oder? |
||
ffrl-a-ak-ber: | ||
public_ipv4_address: 185.66.195.0 | ||
tunnel_ipv4_network: # IPv4 Tunnel Transfernetz | ||
tunnel_ipv6_network: # IPv6 Tunnel Transfernetz | ||
ffrl-b-ak-ber: | ||
public_ipv4_address: 185.66.195.1 | ||
tunnel_ipv4_network: | ||
tunnel_ipv6_network: | ||
ffrl-a-ix-dus: | ||
public_ipv4_address: 185.66.193.0 | ||
tunnel_ipv4_network: | ||
tunnel_ipv6_network: | ||
ffrl-b-ix-dus: | ||
public_ipv4_address: 185.66.193.1 | ||
tunnel_ipv4_network: | ||
tunnel_ipv6_network: | ||
ffrl-a-fra2-fra: | ||
public_ipv4_address: 185.66.194.0 | ||
tunnel_ipv4_network: | ||
tunnel_ipv6_network: | ||
ffrl-b-fra2-fra: | ||
public_ipv4_address: 185.66.194.1 | ||
tunnel_ipv4_network: | ||
tunnel_ipv6_network: | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: reload network interfaces | ||
systemd: | ||
name: networking | ||
state: reloaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: create ffrl interfaces | ||
template: | ||
src: ffrl.j2 | ||
dest: "/etc/network/interfaces.d/{{ item.key }}" | ||
notify: reload network interfaces | ||
loop: "{{ ffrl_exit_server | dict2items }}" | ||
|
||
- name: create ffrl-nat dummy interface | ||
template: | ||
src: ffrl_nat.j2 | ||
dest: "/etc/network/interfaces.d/ffrl-nat" | ||
notify: reload network interfaces | ||
|
||
- name: flush handlers | ||
meta: flush_handlers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# {{ ansible_managed }} | ||
# | ||
auto {{ item.key }} | ||
iface {{ item.key }} inet tunnel | ||
mode gre | ||
local {{ ansible_default_ipv4.address | ipaddr('public') | ipaddr('address') }} | ||
endpoint {{ item.value.public_ipv4_address | ipaddr('public') | ipaddr('address') }} | ||
|
||
ttl 64 | ||
mtu 1400 | ||
tunnel-physdev {{ ansible_default_ipv4.interface }} | ||
ip-forward on | ||
ip6-forward on | ||
|
||
address {{ item.value.tunnel_ipv4_network | ipaddr('net') | ipaddr('1') | ipaddr('ip/prefix') }} | ||
address {{ item.value.tunnel_ipv6_network | ipaddr('net') | ipaddr('2') | ipaddr('ip/prefix') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# {{ ansible_managed }} | ||
# | ||
auto ffrl-nat | ||
iface ffrl-nat | ||
link-type dummy | ||
address {{ ffrl_public_ipv4_nat | ipaddr('host') }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hier müssen wir noch eine strategische Entscheidung treffen:
Beim Web haben wir ein Playbook für den Host(-typ) angelegt, was ich bevorzugen würde, da wir sowieso nur von Web und Gateways sprechen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.