Compare commits
40
Commits
4a6fc84c01
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70577bafca | ||
|
|
6e8032725e | ||
|
|
57a44bcfd0 | ||
|
|
9d8d6784f6 | ||
|
|
54fe7f6c90 | ||
|
|
03c19d29f4 | ||
|
|
9e9bc4f230 | ||
|
|
67c1086e2c | ||
|
|
2b5bffe2be | ||
|
|
827bfbe3cf | ||
|
|
eb229a01b1 | ||
|
|
97bf3d65f3 | ||
|
|
7e294de2ca | ||
|
|
57970a6567 | ||
|
|
f3d8b0b0ce | ||
|
|
29e5b06b9a | ||
|
|
3be7ebc251 | ||
|
|
26df44ee57 | ||
|
|
7a3fe8254d | ||
|
|
a0e573f1ae | ||
|
|
801b4baf87 | ||
|
|
1838f63bec | ||
|
|
02990faf70 | ||
|
|
534ad28be9 | ||
|
|
8334191250 | ||
|
|
dd0f4990e1 | ||
|
|
2089be116e | ||
|
|
ecc2ae2fbe | ||
|
|
f14b8817c0 | ||
|
|
3a73ed9583 | ||
|
|
8484fd1508 | ||
|
|
0499706703 | ||
|
|
b585f3c122 | ||
|
|
3e6486c5b5 | ||
|
|
ec62f54ab4 | ||
|
|
3d6840ef3a | ||
|
|
fe2e749b63 | ||
|
|
19e1e24b26 | ||
|
|
221c7a0552 | ||
|
|
402a6c9e89 |
No files matched your search
+2
-1
@@ -49,7 +49,8 @@ interpreter_python: /usr/bin/python3
|
||||
[privilege_escalation]
|
||||
become=True
|
||||
become_method=sudo
|
||||
become_ask_pass=True
|
||||
#become_ask_pass=True
|
||||
become_ask_pass=false
|
||||
|
||||
[ssh_connection]
|
||||
|
||||
|
||||
+162
-39
@@ -3,13 +3,17 @@
|
||||
Extract ipt-firewall configuration from a host and generate host_vars YAML.
|
||||
|
||||
Reads /etc/ipt-firewall/{interfaces,main}_ipv{4,6}.conf via SSH,
|
||||
maps all variables to Ansible fw_* names, and writes a host_vars file.
|
||||
maps all variables to Ansible fw_* names, and writes a host_vars file
|
||||
(default: host_vars/<hostname>/<short-hostname>-ipt-server.yml next to this
|
||||
script; an existing file is only overwritten with --force).
|
||||
|
||||
Usage:
|
||||
./extract-fw-host-vars.py <hostname> [--user USER] [--port PORT] [--dry-run]
|
||||
./extract-fw-host-vars.py <hostname> [--user USER] [--port PORT] [--sudo] [--from-dir DIR]
|
||||
[--output FILE|-] [--force] [--dry-run]
|
||||
|
||||
Example:
|
||||
./extract-fw-host-vars.py cl-01.oopen.de
|
||||
./extract-fw-host-vars.py cl-01.oopen.de # -> host_vars/cl-01.oopen.de/cl-01-ipt-server.yml
|
||||
./extract-fw-host-vars.py cl-01.oopen.de -o - # print to stdout
|
||||
./extract-fw-host-vars.py cl-01.oopen.de --user root --dry-run
|
||||
"""
|
||||
|
||||
@@ -21,7 +25,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Defaults matching roles/ipt-firewall/defaults/main.yml
|
||||
# Defaults matching roles/ipt-server/defaults/main.yml
|
||||
# Only values that differ from these will be emitted.
|
||||
# ---------------------------------------------------------------------------
|
||||
DEFAULTS = {
|
||||
@@ -73,8 +77,19 @@ DEFAULTS = {
|
||||
"fw_http_ports": "$standard_http_ports",
|
||||
"fw_log_cgi_traffic_out": False,
|
||||
"fw_cgi_script_users": "",
|
||||
"fw_set_max_new_http_conn_per_ip_per_second": True,
|
||||
"fw_max_http_new_conn_per_ip_per_second": "$default_max_http_new_conn_per_ip_per_second",
|
||||
"fw_set_max_concurrent_http_conn_per_ip": True,
|
||||
"fw_max_concurrent_http_conn_per_ip": "$default_max_concurrent_http_conn_per_ip",
|
||||
"fw_set_max_new_http_conn_per_second": True,
|
||||
"fw_max_new_http_conn_per_second": "$default_max_new_http_conn_per_second",
|
||||
"fw_throttle_tcp6_mss_for_https": False,
|
||||
"fw_tcp6_mss_for_https_val": "$min_tcp6_mss_for_https_val",
|
||||
"fw_mm_server_ips": "",
|
||||
"fw_forward_mm_server_ips": "",
|
||||
"fw_mm_udp_ports_in": "$standard_mattermost_udp_ports_in",
|
||||
"fw_mm_tcp_ports_in": "$standard_mattermost_tcp_ports_in",
|
||||
"fw_mm_udp_ports_out": "$standard_mattermost_udp_ports_out",
|
||||
"fw_smtpd_ips": "",
|
||||
"fw_forward_smtpd_ips": "",
|
||||
"fw_smtpd_additional_listen_ports": "",
|
||||
@@ -141,7 +156,9 @@ DEFAULTS = {
|
||||
"fw_portforward_udp_v4": "",
|
||||
"fw_portforward_tcp_v6": "",
|
||||
"fw_portforward_udp_v6": "",
|
||||
"fw_blocked_ips": "",
|
||||
"fw_blocked_ips_v4": "",
|
||||
"fw_blocked_ips_v6": "",
|
||||
"fw_ban_ipv6_mask": "$default_ban_ipv6_mask",
|
||||
"fw_block_tcp_ports": "111 113 135 137:139 445",
|
||||
"fw_block_udp_ports": "111 137:139",
|
||||
"fw_create_traffic_counter": True,
|
||||
@@ -151,8 +168,9 @@ DEFAULTS = {
|
||||
"fw_protection_against_ssh_brute_force_attacks": True,
|
||||
"fw_limit_connections_per_source_IP": True,
|
||||
"fw_per_IP_connection_limit": "$default_per_IP_connection_limit",
|
||||
"fw_limit_new_tcp_connections_per_seconds_per_source_IP": True,
|
||||
"fw_limit_new_tcp_connections_per_seconds_ports": "",
|
||||
"fw_limit_new_tcp_connections_per_seconds_per_source_IP": False,
|
||||
"fw_limit_new_tcp_connections_per_seconds_ports": "80,110,143,443,465,995",
|
||||
"fw_limit_new_tcp_connections_per_seconds_rate": "$default_limit_new_tcp_connections_per_seconds_rate",
|
||||
"fw_kernel_activate_forwarding": False,
|
||||
"fw_kernel_support_dynaddr": False,
|
||||
"fw_dynaddr_flag": "5",
|
||||
@@ -207,8 +225,17 @@ MAIN_SHARED = {
|
||||
"http_ports": "fw_http_ports",
|
||||
"log_cgi_traffic_out": "fw_log_cgi_traffic_out",
|
||||
"cgi_script_users": "fw_cgi_script_users",
|
||||
"set_max_new_http_conn_per_ip_per_second": "fw_set_max_new_http_conn_per_ip_per_second",
|
||||
"max_http_new_conn_per_ip_per_second": "fw_max_http_new_conn_per_ip_per_second",
|
||||
"set_max_concurrent_http_conn_per_ip": "fw_set_max_concurrent_http_conn_per_ip",
|
||||
"max_concurrent_http_conn_per_ip": "fw_max_concurrent_http_conn_per_ip",
|
||||
"set_max_new_http_conn_per_second": "fw_set_max_new_http_conn_per_second",
|
||||
"max_new_http_conn_per_second": "fw_max_new_http_conn_per_second",
|
||||
"mm_server_ips": "fw_mm_server_ips",
|
||||
"forward_mm_server_ips": "fw_forward_mm_server_ips",
|
||||
"mm_udp_ports_in": "fw_mm_udp_ports_in",
|
||||
"mm_tcp_ports_in": "fw_mm_tcp_ports_in",
|
||||
"mm_udp_ports_out": "fw_mm_udp_ports_out",
|
||||
"smtpd_ips": "fw_smtpd_ips",
|
||||
"forward_smtpd_ips": "fw_forward_smtpd_ips",
|
||||
"smtpd_additional_listen_ports": "fw_smtpd_additional_listen_ports",
|
||||
@@ -265,7 +292,6 @@ MAIN_SHARED = {
|
||||
"forward_tcp_out_ports": "fw_forward_tcp_out_ports",
|
||||
"udp_out_ports": "fw_udp_out_ports",
|
||||
"forward_udp_out_ports": "fw_forward_udp_out_ports",
|
||||
"blocked_ips": "fw_blocked_ips",
|
||||
"block_tcp_ports": "fw_block_tcp_ports",
|
||||
"block_udp_ports": "fw_block_udp_ports",
|
||||
"create_traffic_counter": "fw_create_traffic_counter",
|
||||
@@ -277,6 +303,7 @@ MAIN_SHARED = {
|
||||
"per_IP_connection_limit": "fw_per_IP_connection_limit",
|
||||
"limit_new_tcp_connections_per_seconds_per_source_IP": "fw_limit_new_tcp_connections_per_seconds_per_source_IP",
|
||||
"limit_new_tcp_connections_per_seconds_ports": "fw_limit_new_tcp_connections_per_seconds_ports",
|
||||
"limit_new_tcp_connections_per_seconds_rate": "fw_limit_new_tcp_connections_per_seconds_rate",
|
||||
}
|
||||
|
||||
# IPv4-only variables (from main_ipv4.conf)
|
||||
@@ -307,6 +334,7 @@ MAIN_V4_ONLY = {
|
||||
"kernel_log_martians": "fw_kernel_log_martians",
|
||||
"kernel_deactivate_source_route": "fw_kernel_deactivate_source_route",
|
||||
"kernel_dont_accept_redirects": "fw_kernel_dont_accept_redirects",
|
||||
"blocked_ips": "fw_blocked_ips_v4",
|
||||
}
|
||||
|
||||
# IPv6-only variables (from main_ipv6.conf)
|
||||
@@ -325,6 +353,16 @@ MAIN_V6_ONLY = {
|
||||
"xmmp_remote_out_services": "fw_xmmp_remote_out_services_v6",
|
||||
"resolver_allowed_networks": "fw_resolver_allowed_networks_v6",
|
||||
"kernel_forward_between_interfaces": "fw_kernel_forward_between_interfaces",
|
||||
"throttle_tcp6_mss_for_https": "fw_throttle_tcp6_mss_for_https",
|
||||
"tcp6_mss_for_https_val": "fw_tcp6_mss_for_https_val",
|
||||
"ban_ipv6_mask": "fw_ban_ipv6_mask",
|
||||
"blocked_ips": "fw_blocked_ips_v6",
|
||||
}
|
||||
|
||||
# Renamed bash variables: old name → new name (applied to $var references)
|
||||
RENAMED_BASH_VARS = {
|
||||
"stansard_mattermost_udp_ports_in": "standard_mattermost_udp_ports_in",
|
||||
"stansard_mattermost_udp_ports_out": "standard_mattermost_udp_ports_out",
|
||||
}
|
||||
|
||||
|
||||
@@ -430,6 +468,14 @@ def ssh_cat(host, user, port, path, sudo_password=None):
|
||||
return None
|
||||
|
||||
|
||||
def normalize_value(value):
|
||||
"""Normalize bash variable references: ${var} → $var, renamed vars → new name."""
|
||||
value = re.sub(r'\$\{([A-Za-z_][A-Za-z0-9_]*)\}', r'$\1', value)
|
||||
for old, new in RENAMED_BASH_VARS.items():
|
||||
value = re.sub(r'\$' + old + r'\b', '$' + new, value)
|
||||
return value
|
||||
|
||||
|
||||
def coerce_bool(value):
|
||||
"""Convert bash true/false string to Python bool, or return string."""
|
||||
if value.lower() in ("true", "yes", "1"):
|
||||
@@ -456,9 +502,11 @@ def yaml_value(v):
|
||||
def build_host_vars(parsed_iface_v4, parsed_iface_v6, parsed_main_v4, parsed_main_v6):
|
||||
"""
|
||||
Map parsed bash variables to Ansible fw_* variables.
|
||||
Returns dict of {ansible_var: value} containing only non-default values.
|
||||
Returns (dict of {ansible_var: value} containing only non-default values,
|
||||
list of warnings).
|
||||
"""
|
||||
result = {}
|
||||
warnings = []
|
||||
|
||||
# --- Interfaces: extract lists from numbered vars ---
|
||||
def extract_list(parsed, prefix, suffix="", count=3):
|
||||
@@ -501,21 +549,40 @@ def build_host_vars(parsed_iface_v4, parsed_iface_v6, parsed_main_v4, parsed_mai
|
||||
if v and v != DEFAULTS.get(ansible_var, ""):
|
||||
result[ansible_var] = v
|
||||
|
||||
# --- Shared main variables (read from ipv4) ---
|
||||
# IPv6 interface lists that differ from IPv4 -> fw_*_interfaces_v6 override
|
||||
for prefix, ansible_var, v4_list in [("ext_if_", "fw_ext_interfaces", fw_ext_interfaces),
|
||||
("local_if_", "fw_local_interfaces", fw_local_interfaces)]:
|
||||
v6_list = extract_list(parsed_iface_v6, prefix)
|
||||
if v6_list != v4_list:
|
||||
result[f"{ansible_var}_v6"] = v6_list
|
||||
|
||||
# --- Shared main variables (read from ipv4, fall back to ipv6) ---
|
||||
# If IPv4 and IPv6 differ, the IPv6 value goes into <ansible_var>_v6.
|
||||
def to_value(raw):
|
||||
raw = normalize_value(raw)
|
||||
return coerce_bool(raw) if raw.lower() in ("true", "false") else raw
|
||||
|
||||
for bash_var, ansible_var in MAIN_SHARED.items():
|
||||
raw = parsed_main_v4.get(bash_var)
|
||||
raw_v4 = parsed_main_v4.get(bash_var)
|
||||
raw_v6 = parsed_main_v6.get(bash_var)
|
||||
raw = raw_v4 if raw_v4 is not None else raw_v6
|
||||
if raw is None:
|
||||
continue
|
||||
v = coerce_bool(raw) if raw.lower() in ("true", "false") else raw
|
||||
v = to_value(raw)
|
||||
default = DEFAULTS.get(ansible_var)
|
||||
if v != default:
|
||||
result[ansible_var] = v
|
||||
if raw_v4 is not None and raw_v6 is not None:
|
||||
v6 = to_value(raw_v6)
|
||||
if v6 != v:
|
||||
result[f"{ansible_var}_v6"] = v6
|
||||
|
||||
# --- IPv4-only main variables ---
|
||||
for bash_var, ansible_var in MAIN_V4_ONLY.items():
|
||||
raw = parsed_main_v4.get(bash_var)
|
||||
if raw is None:
|
||||
continue
|
||||
raw = normalize_value(raw)
|
||||
v = coerce_bool(raw) if raw.lower() in ("true", "false") else raw
|
||||
default = DEFAULTS.get(ansible_var)
|
||||
if v != default:
|
||||
@@ -526,12 +593,13 @@ def build_host_vars(parsed_iface_v4, parsed_iface_v6, parsed_main_v4, parsed_mai
|
||||
raw = parsed_main_v6.get(bash_var)
|
||||
if raw is None:
|
||||
continue
|
||||
raw = normalize_value(raw)
|
||||
v = coerce_bool(raw) if raw.lower() in ("true", "false") else raw
|
||||
default = DEFAULTS.get(ansible_var)
|
||||
if v != default:
|
||||
result[ansible_var] = v
|
||||
|
||||
return result
|
||||
return result, warnings
|
||||
|
||||
|
||||
def render_yaml(hostname, host_vars, all_warnings):
|
||||
@@ -540,7 +608,7 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
"---",
|
||||
f"# ipt-firewall configuration for {hostname}",
|
||||
"# Generated by extract-fw-host-vars.py - review before committing!",
|
||||
"# Place in: host_vars/<hostname>/ipt_firewall.yml",
|
||||
"# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml",
|
||||
"",
|
||||
]
|
||||
|
||||
@@ -574,7 +642,11 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
"fw_allow_local_service_v6", "fw_allow_local_service_from_networks_v6"]),
|
||||
("SSH", ["fw_ssh_server_ips", "fw_forward_ssh_server_ips", "fw_ssh_ports"]),
|
||||
("HTTP", ["fw_http_server_ips", "fw_forward_http_server_ips", "fw_http_ports",
|
||||
"fw_log_cgi_traffic_out", "fw_cgi_script_users"]),
|
||||
"fw_log_cgi_traffic_out", "fw_cgi_script_users",
|
||||
"fw_set_max_new_http_conn_per_ip_per_second", "fw_max_http_new_conn_per_ip_per_second",
|
||||
"fw_set_max_concurrent_http_conn_per_ip", "fw_max_concurrent_http_conn_per_ip",
|
||||
"fw_set_max_new_http_conn_per_second", "fw_max_new_http_conn_per_second",
|
||||
"fw_throttle_tcp6_mss_for_https", "fw_tcp6_mss_for_https_val"]),
|
||||
("Mail", ["fw_smtpd_ips", "fw_forward_smtpd_ips", "fw_smtpd_additional_listen_ports",
|
||||
"fw_smtpd_additional_outgoing_ports", "fw_mail_server_ips", "fw_forward_mail_server_ips",
|
||||
"fw_mail_user_ports", "fw_mail_client_ips", "fw_forward_mail_client_ips",
|
||||
@@ -601,7 +673,8 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
"fw_jibri_server_ips", "fw_forward_jibri_server_ips", "fw_jibri_remote_jitsi_server"]),
|
||||
("TURN / STUN", ["fw_nc_turn_server_ips", "fw_forward_nc_turn_server_ips",
|
||||
"fw_nc_turn_ports", "fw_nc_turn_udp_ports"]),
|
||||
("Mattermost", ["fw_mm_server_ips", "fw_forward_mm_server_ips"]),
|
||||
("Mattermost", ["fw_mm_server_ips", "fw_forward_mm_server_ips",
|
||||
"fw_mm_udp_ports_in", "fw_mm_tcp_ports_in", "fw_mm_udp_ports_out"]),
|
||||
("Prometheus", ["fw_prometheus_local_server_ips", "fw_prometheus_local_client_ips",
|
||||
"fw_prometheus_remote_server_ips"]),
|
||||
("Xymon", ["fw_xymon_server_ips", "fw_local_xymon_client", "fw_xymon_port"]),
|
||||
@@ -610,13 +683,14 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
"fw_udp_out_ports", "fw_forward_udp_out_ports"]),
|
||||
("Portforwarding", ["fw_portforward_tcp_v4", "fw_portforward_udp_v4",
|
||||
"fw_portforward_tcp_v6", "fw_portforward_udp_v6"]),
|
||||
("Block", ["fw_blocked_ips", "fw_block_tcp_ports", "fw_block_udp_ports"]),
|
||||
("Block", ["fw_blocked_ips_v4", "fw_blocked_ips_v6", "fw_ban_ipv6_mask", "fw_block_tcp_ports", "fw_block_udp_ports"]),
|
||||
("Protection / limits", ["fw_protection_against_syn_flooding",
|
||||
"fw_protection_against_port_scanning",
|
||||
"fw_protection_against_ssh_brute_force_attacks",
|
||||
"fw_limit_connections_per_source_IP", "fw_per_IP_connection_limit",
|
||||
"fw_limit_new_tcp_connections_per_seconds_per_source_IP",
|
||||
"fw_limit_new_tcp_connections_per_seconds_ports"]),
|
||||
"fw_limit_new_tcp_connections_per_seconds_ports",
|
||||
"fw_limit_new_tcp_connections_per_seconds_rate"]),
|
||||
("Kernel IPv4", ["fw_kernel_support_dynaddr", "fw_dynaddr_flag",
|
||||
"fw_kernel_reduce_timeouts", "fw_kernel_tcp_syncookies",
|
||||
"fw_kernel_protect_against_icmp_bogus_messages",
|
||||
@@ -626,13 +700,20 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
("Special", ["fw_create_traffic_counter", "fw_create_iperf_rules"]),
|
||||
]
|
||||
|
||||
# IPv6-only overrides of shared variables follow their base variable
|
||||
sections = [(name, [x for k in keys for x in (k, f"{k}_v6")
|
||||
if x == k or x not in keys])
|
||||
for name, keys in sections]
|
||||
|
||||
emitted = set()
|
||||
for section_name, keys in sections:
|
||||
section_lines = []
|
||||
for k in keys:
|
||||
if k in host_vars:
|
||||
v = host_vars[k]
|
||||
if isinstance(v, list):
|
||||
if isinstance(v, list) and not v:
|
||||
section_lines.append(f"{k}: []")
|
||||
elif isinstance(v, list):
|
||||
section_lines.append(f"{k}:")
|
||||
for item in v:
|
||||
section_lines.append(f" - \"{item}\"")
|
||||
@@ -652,7 +733,9 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
if remaining:
|
||||
lines.append("# --- Other")
|
||||
for k, v in remaining.items():
|
||||
if isinstance(v, list):
|
||||
if isinstance(v, list) and not v:
|
||||
lines.append(f"{k}: []")
|
||||
elif isinstance(v, list):
|
||||
lines.append(f"{k}:")
|
||||
for item in v:
|
||||
lines.append(f" - \"{item}\"")
|
||||
@@ -668,11 +751,18 @@ def render_yaml(hostname, host_vars, all_warnings):
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Extract ipt-firewall host_vars from a remote host")
|
||||
parser.add_argument("hostname", help="Target hostname (must be in SSH config or known_hosts)")
|
||||
parser.add_argument("--user", "-u", default="chris", help="SSH user (default: chris)")
|
||||
parser.add_argument("--user", "-u", default=None,
|
||||
help="SSH user (default: as configured in ~/.ssh/config)")
|
||||
parser.add_argument("--port", "-p", type=int, default=None, help="SSH port (default: 22)")
|
||||
parser.add_argument("--output", "-o", default=None, help="Output file (default: stdout)")
|
||||
parser.add_argument("--output", "-o", default=None,
|
||||
help="Output file, '-' for stdout "
|
||||
"(default: host_vars/<hostname>/<short-hostname>-ipt-server.yml)")
|
||||
parser.add_argument("--force", "-f", action="store_true", help="Overwrite an existing output file")
|
||||
parser.add_argument("--sudo", "-s", action="store_true",
|
||||
help="Read files via sudo (prompts for sudo password once)")
|
||||
parser.add_argument("--from-dir", "-d", default=None,
|
||||
help="Read the conf files from this local directory instead of via SSH "
|
||||
"(e.g. fetched with: ansible HOST -b -m fetch ...)")
|
||||
parser.add_argument("--dry-run", action="store_true", help="Print SSH commands without executing")
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -685,24 +775,56 @@ def main():
|
||||
"main_v6": f"{conf_dir}/main_ipv6.conf",
|
||||
}
|
||||
|
||||
target = f"{args.user}@{hostname}" if args.user else hostname
|
||||
|
||||
if args.dry_run:
|
||||
cmd = "sudo -S -p '' cat" if args.sudo else "cat"
|
||||
for key, path in files.items():
|
||||
print(f"ssh {args.user}@{hostname} {cmd} {path}")
|
||||
print(f"ssh {target} {cmd} {path}")
|
||||
return
|
||||
|
||||
sudo_password = None
|
||||
if args.sudo:
|
||||
import getpass
|
||||
sudo_password = getpass.getpass(f"sudo password for {args.user}@{hostname}: ")
|
||||
# Determine the output file first, so an existing file aborts before any SSH
|
||||
out_path = None
|
||||
if args.output != "-":
|
||||
if args.output:
|
||||
out_path = Path(args.output)
|
||||
else:
|
||||
# Same as ${HOSTNAME%.*.*} in the docs: a.mx.oopen.de -> a.mx
|
||||
short = hostname.rsplit(".", 2)[0] if hostname.count(".") >= 2 else hostname
|
||||
out_path = Path(__file__).resolve().parent / "host_vars" / hostname / f"{short}-ipt-server.yml"
|
||||
|
||||
print(f"Connecting to {hostname} as {args.user} ...", file=sys.stderr)
|
||||
if out_path.exists() and not args.force:
|
||||
print(f"ERROR: {out_path} already exists — use --force to overwrite "
|
||||
"or -o - to print to stdout", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
contents = {}
|
||||
for key, path in files.items():
|
||||
print(f" Reading {path} ...", file=sys.stderr)
|
||||
content = ssh_cat(hostname, args.user, args.port, path, sudo_password=sudo_password)
|
||||
contents[key] = content or ""
|
||||
if args.from_dir:
|
||||
for key, path in files.items():
|
||||
local = Path(args.from_dir) / Path(path).name
|
||||
print(f" Reading {local} ...", file=sys.stderr)
|
||||
try:
|
||||
contents[key] = local.read_text()
|
||||
except OSError as e:
|
||||
print(f" WARNING: could not read {local}: {e}", file=sys.stderr)
|
||||
contents[key] = None
|
||||
else:
|
||||
sudo_password = None
|
||||
if args.sudo:
|
||||
import getpass
|
||||
sudo_password = getpass.getpass(f"sudo password for {target}: ")
|
||||
|
||||
print(f"Connecting to {target} ...", file=sys.stderr)
|
||||
|
||||
for key, path in files.items():
|
||||
print(f" Reading {path} ...", file=sys.stderr)
|
||||
contents[key] = ssh_cat(hostname, args.user, args.port, path, sudo_password=sudo_password)
|
||||
|
||||
# An unreadable file would silently produce (nearly) empty host_vars
|
||||
if any(c is None for c in contents.values()):
|
||||
print("ERROR: not all config files could be read — nothing written "
|
||||
"(try --sudo or --from-dir)", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
all_warnings = []
|
||||
parsed = {}
|
||||
@@ -712,20 +834,21 @@ def main():
|
||||
if warnings:
|
||||
all_warnings.extend([f" # [{key}] {w}" for w in warnings])
|
||||
|
||||
host_vars = build_host_vars(
|
||||
host_vars, map_warnings = build_host_vars(
|
||||
parsed["iface_v4"], parsed["iface_v6"],
|
||||
parsed["main_v4"], parsed["main_v6"],
|
||||
)
|
||||
all_warnings.extend(map_warnings)
|
||||
|
||||
yaml_text = render_yaml(hostname, host_vars, all_warnings)
|
||||
|
||||
if args.output:
|
||||
out_path = Path(args.output)
|
||||
out_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
out_path.write_text(yaml_text)
|
||||
print(f"Written to {out_path}", file=sys.stderr)
|
||||
else:
|
||||
if out_path is None:
|
||||
print(yaml_text)
|
||||
return
|
||||
|
||||
out_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
out_path.write_text(yaml_text)
|
||||
print(f"Written to {out_path}", file=sys.stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+123
-13
@@ -1,5 +1,15 @@
|
||||
---
|
||||
|
||||
vault_become_password: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
66396433363732393538636335366138303933306136383230333234633937376163653763333164
|
||||
3334356262373931303565373432623436626332373138330a363630366464333166363931653531
|
||||
38663839383130323866363732306565393236393937306138633463336635326563363265376365
|
||||
6165396564633236300a613132323132366534383437653665313933393631643434623366656533
|
||||
3835
|
||||
|
||||
ansible_become_password: "{{ vault_become_password }}"
|
||||
|
||||
|
||||
# ansible_managed: !!str " *** [ Ansible managed file: DO NOT EDIT DIRECTLY ] ***"
|
||||
|
||||
@@ -2463,6 +2473,109 @@ sshd_pasword_auth_user:
|
||||
sshd_pasword_auth_ip:
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
# Set up chrooted SFTP access (group, sshd config, sftp users)?
|
||||
#
|
||||
chrooted_sftpd_present: false
|
||||
|
||||
# Group for chrooted sftp users. GID is 'sftp_group_id_start' if still
|
||||
# free, otherwise the next free GID above.
|
||||
#
|
||||
sftp_group_name: sftpusers
|
||||
sftp_group_id_start: 200
|
||||
|
||||
# New sftp users get UID 'sftp_user_id_start' or the next free UID above
|
||||
# (unless 'user_id' is given explicitly). Existing users keep their UID.
|
||||
#
|
||||
sftp_user_id_start: 201
|
||||
|
||||
# Allow password authentication for members of the sftp group?
|
||||
# (overrides the global sshd setting for this group)
|
||||
#
|
||||
sftp_password_authentication: !!str "no"
|
||||
|
||||
# sftp users
|
||||
#
|
||||
# New users (will be created):
|
||||
#
|
||||
# name: user name (required)
|
||||
# home: home = chroot directory, owned by root (required)
|
||||
# ssh_keys: list of public keys (authorized_keys) (optional, default: [])
|
||||
# password: password hash (e.g. 'mkpasswd -m yescrypt') (optional, default: '!' = locked)
|
||||
# update_password: always | on_create (optional, default: always)
|
||||
# upload_dir: writable directory inside chroot (optional, default: upload)
|
||||
# user_id: fixed UID (optional)
|
||||
#
|
||||
# <home>/.ssh/authorized_keys is always created (owned by root) - it
|
||||
# is empty, if no ssh_keys are given.
|
||||
#
|
||||
# Note: with 'update_password: always' (default) the password hash given
|
||||
# here is enforced on every run - without 'password' the account
|
||||
# gets locked ('!'). With 'on_create' the password is only set when
|
||||
# the user is created.
|
||||
#
|
||||
# If the user already exists with shell access (shell other than
|
||||
# nologin/false), the play fails for the host - use 'existing_user: true'.
|
||||
#
|
||||
# Existing users (e.g. www-data or suexec users of vhosts), only added to
|
||||
# the sftp group:
|
||||
#
|
||||
# name: user name (required)
|
||||
# existing_user: true (required)
|
||||
# ssh_keys: public keys, added to the users (optional)
|
||||
# ~/.ssh/authorized_keys
|
||||
# password: password hash (optional, default: unchanged)
|
||||
# update_password: always | on_create (optional, default: always)
|
||||
# upload_dir: path relative to home (optional)
|
||||
# upload_target: absolute path inside home (optional)
|
||||
#
|
||||
# 'upload_dir' without 'upload_target' is a directory owned by the user.
|
||||
# With 'upload_target' it is a (relative) symlink to that directory. The
|
||||
# target must exist and must be inside the home (= chroot) - a symlink
|
||||
# pointing outside the chroot can't be followed by the sftp user. An
|
||||
# existing file/directory at 'upload_dir' is never replaced.
|
||||
#
|
||||
# ~/.ssh and ~/.ssh/authorized_keys are always created (owned by the
|
||||
# user), an existing authorized_keys is never truncated. Without
|
||||
# 'password' the password stays untouched.
|
||||
#
|
||||
# UID, primary group, home and shell stay untouched, 'home' is ignored.
|
||||
# The home directory (from /etc/passwd) becomes the chroot directory, so
|
||||
# it and all its parents must be owned by root and not writable by
|
||||
# group/others (e.g. /var/www owned by root:root, mode 0755). This is
|
||||
# checked - the play fails for the host otherwise - but never changed.
|
||||
#
|
||||
# ATTENTION: A user in the sftp group has NO shell access anymore
|
||||
# (ForceCommand internal-sftp).
|
||||
#
|
||||
# Note: ssh_keys are optional. Without key and without password (and with
|
||||
# 'sftp_password_authentication: no') the user can't log in.
|
||||
#
|
||||
# Note: The password of a user with shell access (login shell other than
|
||||
# nologin/false) is NEVER changed, regardless of 'password' and
|
||||
# 'update_password'.
|
||||
#
|
||||
# example:
|
||||
#
|
||||
# sftp_user:
|
||||
# - name: sftp-test
|
||||
# home: /data/sftp/sftp-test
|
||||
# ssh_keys:
|
||||
# - 'ssh-ed25519 AAAA... user@host'
|
||||
#
|
||||
# - name: www-data
|
||||
# existing_user: true
|
||||
# upload_dir: upload
|
||||
# upload_target: /var/www/html/site
|
||||
# ssh_keys:
|
||||
# - 'ssh-ed25519 AAAA... user@host'
|
||||
#
|
||||
sftp_user: []
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
@@ -2658,22 +2771,14 @@ git_default_repositories:
|
||||
# ---
|
||||
# group [oopen_server]
|
||||
# ---
|
||||
git_oopen_server_repositories:
|
||||
|
||||
# firewall
|
||||
- name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
# (ipt-server firewall is installed by the role 'ipt-server')
|
||||
git_oopen_server_repositories: []
|
||||
|
||||
# ---
|
||||
# group [warenform_server]
|
||||
# ---
|
||||
git_warenform_server_repositories:
|
||||
|
||||
# firewall
|
||||
- name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
# (ipt-server firewall is installed by the role 'ipt-server')
|
||||
git_warenform_server_repositories: []
|
||||
|
||||
# ---
|
||||
# group [lxc_host]
|
||||
@@ -2914,7 +3019,7 @@ git_jitsi_meet_repositories:
|
||||
#
|
||||
# Leave empty here
|
||||
# ---
|
||||
git_other_repositories: {}
|
||||
git_other_repositories: []
|
||||
|
||||
|
||||
# ==========
|
||||
@@ -3130,6 +3235,11 @@ dovecot_from_address:
|
||||
dovecot_reply_to:
|
||||
webmailer_address:
|
||||
|
||||
# Dovecot auth listener (port 44444) for XMPP/Jitsi (Prosody) authentication.
|
||||
# Enable per host in host_vars. Firewall: see fw_dovecot_auth_service and
|
||||
# fw_dovecot_auth_allowed_networks_v4/_v6 (role ipt-server).
|
||||
dovecot_xmpp_listener: false
|
||||
|
||||
# salutation: "O.OPEN\n
|
||||
#
|
||||
# --\n
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
---
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_dependencies
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_user
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/basic.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
insert_ssh_keypair_backup_server: false
|
||||
ssh_keypair_backup_server:
|
||||
- name: backup
|
||||
backup_user: back
|
||||
priv_key_src: root/.ssh/id_rsa.backup.oopen.de
|
||||
priv_key_dest: /root/.ssh/id_rsa
|
||||
pub_key_src: root/.ssh/id_rsa.backup.oopen.de.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa.pub
|
||||
|
||||
insert_keypair_backup_client: true
|
||||
ssh_keypair_backup_client:
|
||||
- name: backup
|
||||
priv_key_src: root/.ssh/id_ed25519.oopen-server
|
||||
priv_key_dest: /root/.ssh/id_ed25519
|
||||
pub_key_src: root/.ssh/id_ed25519.oopen-server.pub
|
||||
pub_key_dest: /root/.ssh/id_ed25519.pub
|
||||
target: backup.oopen.de
|
||||
|
||||
default_user:
|
||||
|
||||
- name: chris
|
||||
password: $y$j9T$rHVgYoQ13MkHxdVbvVwF//$oTwha4aNXNUt9qti2Foh9UlCwgLDsIUreGwX4qjSL23
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
|
||||
- name: nd-admin
|
||||
user_id: 1045
|
||||
group_id: 1045
|
||||
group: nd-admin
|
||||
password: $y$j9T$YZTxz7hxyoJiSPjyzwboQ.$eEarYC9uWuQvhUp2c/KDUJbLEExAvaeNo8yjg6GHLC/
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
|
||||
- name: sysadm
|
||||
user_id: 1050
|
||||
group_id: 1050
|
||||
group: sysadm
|
||||
password: $y$j9T$xGsC2ihAJ8Bw1pMUd4mez1$6mr58aotyAqaiNziFN/IVdks2H6XiqkC7fknMe5iqp1
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
|
||||
- name: back
|
||||
user_id: 1060
|
||||
group_id: 1060
|
||||
group: back
|
||||
password: $y$j9T$2VY1eib4aPtx7F3QxKPQY/$jngCizS/c5TepepY16Nx1IhOi1w4l4qisEulEblXLG9
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
|
||||
|
||||
sudo_users:
|
||||
- chris
|
||||
- sysadm
|
||||
- nd-admin
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/webadmin-user.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/ntp.yml
|
||||
# ---
|
||||
@@ -117,15 +117,6 @@ sudo_users:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
|
||||
@@ -54,12 +54,3 @@ sshd_ports:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
@@ -119,15 +119,6 @@ sudo_users:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
File renamed without changes.
+66
-52
@@ -4,7 +4,6 @@
|
||||
# vars used by roles/network_interfaces
|
||||
# ---
|
||||
|
||||
|
||||
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
||||
network_manage_devices: true
|
||||
|
||||
@@ -22,9 +21,9 @@ network_interface_required_packages:
|
||||
|
||||
network_interfaces:
|
||||
|
||||
- device: enp9s0
|
||||
- device: enp6s0
|
||||
# use only once per device (for the first device entry)
|
||||
headline: enp9s0 - primary network interface
|
||||
headline: enp6s0 - primary network interface
|
||||
|
||||
# auto & allow are only used for the first device entry
|
||||
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
||||
@@ -34,9 +33,9 @@ network_interfaces:
|
||||
method: static
|
||||
hwaddress:
|
||||
description:
|
||||
address: 116.202.161.37
|
||||
address: 65.109.158.101
|
||||
netmask: 26
|
||||
gateway: 116.202.161.1
|
||||
gateway: 65.109.158.65
|
||||
metric:
|
||||
pointopoint:
|
||||
mtu:
|
||||
@@ -64,9 +63,9 @@ network_interfaces:
|
||||
# search: warenform.de
|
||||
#
|
||||
# nameservers:
|
||||
# - 213.133.99.99
|
||||
# - 213.133.98.98
|
||||
# - 213.133.100.100
|
||||
# - 127.0.0.1
|
||||
# - 185.12.64.2
|
||||
# - 2a01:4ff:ff00::add:1
|
||||
# search:
|
||||
|
||||
# optional additional subnets/ips subnets: []
|
||||
@@ -98,23 +97,23 @@ network_interfaces:
|
||||
|
||||
# optional vlan settings | vlan: {}
|
||||
# vlan: {}
|
||||
# raw-device: 'eth0'
|
||||
# raw-device: 'enp6s0'
|
||||
vlan: {}
|
||||
|
||||
# inline hook scripts
|
||||
pre-up: [] # pre-up script lines
|
||||
up:
|
||||
- !!str "route add -net 116.202.161.0 netmask 255.255.255.192 gw 116.202.161.1 dev enp9s0" # up script lines
|
||||
- route add -net 65.109.158.64 netmask 255.255.255.192 gw 65.109.158.65 dev enp6s0
|
||||
post-up: [] # post-up script lines (alias for up)
|
||||
pre-down: [] # pre-down script lines (alias for down)
|
||||
down: [] # down script lines
|
||||
post-down: [] # post-down script lines
|
||||
|
||||
|
||||
- device: enp9s0
|
||||
- device: enp6s0
|
||||
family: inet6
|
||||
method: static
|
||||
address: 2a01:4f8:241:15a::2
|
||||
address: 2a01:4f9:3080:155d::2
|
||||
netmask: 64
|
||||
gateway: fe80::1
|
||||
|
||||
@@ -143,11 +142,6 @@ network_interfaces:
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
apt_install_extra_pkgs: true
|
||||
apt_extra_pkgs:
|
||||
- subversion
|
||||
- subversion-tools
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||
@@ -200,11 +194,9 @@ systemd_resolved: true
|
||||
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||
resolved_nameserver:
|
||||
- 213.133.100.100
|
||||
- 2a01:4f8:0:1::add:9898
|
||||
- 213.133.99.99
|
||||
- 2a01:4f8:0:1::add:1010
|
||||
- 195.201.179.131
|
||||
- 95.217.204.204
|
||||
- 213.133.98.98
|
||||
- 2a01:4f8:0:1::add:9999
|
||||
|
||||
# search domains
|
||||
#
|
||||
@@ -214,7 +206,7 @@ resolved_nameserver:
|
||||
# resolved_domains: []
|
||||
resolved_domains:
|
||||
- ~.
|
||||
- warenform.de
|
||||
- oopen.de
|
||||
|
||||
resolved_dnssec: false
|
||||
|
||||
@@ -223,6 +215,11 @@ resolved_dnssec: false
|
||||
resolved_fallback_nameserver:
|
||||
- 194.150.168.168
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/cron.yml
|
||||
# ---
|
||||
|
||||
cron_env_entries:
|
||||
- name: PATH
|
||||
job: /root/bin/admin-stuff;/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
@@ -244,17 +241,17 @@ cron_user_special_time_entries:
|
||||
job: "sleep 10 ; /root/bin/monitoring/check_postfix.sh > /dev/null 2>&1"
|
||||
insertafter: PATH
|
||||
|
||||
- name: "Restart prosody Service."
|
||||
special_time: reboot
|
||||
job: "sleep 120 ; systemctl stop prosody ; sleep 10 ; systemctl start prosody"
|
||||
insertafter: PATH
|
||||
|
||||
|
||||
cron_user_entries:
|
||||
|
||||
- name: "Check if SSH service is running. Restart service if needed."
|
||||
- name: "Check if webservices sre running. Restart if necessary"
|
||||
minute: '*/5'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_webservice_load.sh
|
||||
|
||||
- name: "Check if SSH service is running. Restart service if needed."
|
||||
minute: '*/10'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_ssh.sh
|
||||
|
||||
- name: "Check connectifity - reboot if needed"
|
||||
@@ -267,25 +264,45 @@ cron_user_entries:
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_postfix.sh
|
||||
|
||||
- name: "Check Postfix E-Mail LOG file for 'fatal' errors.."
|
||||
minute: '*/5'
|
||||
hour: '*'
|
||||
job: /root/bin/postfix/check-postfix-fatal-errors.sh
|
||||
|
||||
- name: "Check if NTP service 'ntpsec' is up and running?"
|
||||
minute: '*/30'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_ntpsec_service.sh > /dev/null 2>&1
|
||||
|
||||
- name: "Check hard disc usage."
|
||||
minute: '43'
|
||||
hour: '6'
|
||||
job: /root/bin/admin-stuff/check-disc-usage.sh -c 85
|
||||
- name: "Optimize mysql tables"
|
||||
minute: '53'
|
||||
hour: '04'
|
||||
job: /root/bin/mysql/optimize_mysql_tables.sh
|
||||
|
||||
- name: "Check if cert(s) for Prosody service are up-zp-date"
|
||||
minute: '13'
|
||||
hour: '05'
|
||||
job: /root/bin/monitoring/check_cert_for_prosody.sh
|
||||
- name: "Flush query cache for mysql tables"
|
||||
minute: '27'
|
||||
hour: '04'
|
||||
job: /root/bin/mysql/flush_query_cache.sh
|
||||
|
||||
- name: "Check if cert for coTURN service is up-to-date"
|
||||
minute: '39'
|
||||
- name: "Flush Host cache"
|
||||
minute: '17'
|
||||
hour: '05'
|
||||
job: /root/bin/monitoring/check_cert_for_service.sh
|
||||
job: /root/bin/mysql/flush_host_cache.sh
|
||||
|
||||
- name: "Run occ file:scan for each cloud account"
|
||||
minute: '03'
|
||||
hour: '23'
|
||||
job: /root/bin/nextcloud/occ_maintenance.sh -s cloud.verband-brg.de
|
||||
|
||||
- name: "Background job for nextcloud instance 'cloud.verband-brg.de"
|
||||
minute: '*/15'
|
||||
hour: '*'
|
||||
job: sudo -u "www-data" /usr/local/php/bin/php -f /var/www/cloud.verband-brg.de/htdocs/cron.php
|
||||
|
||||
- name: "Check if certificates for coolwsd service are up to date"
|
||||
minute: '17'
|
||||
hour: '05'
|
||||
job: /root/bin/nextcloud/check_cert_coolwsd.sh
|
||||
|
||||
- name: "Generate/Renew Let's Encrypt Certificates if needed (using dehydrated script)"
|
||||
minute: '23'
|
||||
@@ -297,6 +314,11 @@ cron_user_entries:
|
||||
hour: '05'
|
||||
job: /var/lib/dehydrated/tools/update_ssl_directives.sh
|
||||
|
||||
- name: "Check hard disc usage."
|
||||
minute: '43'
|
||||
hour: '6'
|
||||
job: /root/bin/admin-stuff/check-disc-usage.sh -c 85
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
@@ -319,18 +341,11 @@ cron_user_entries:
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/copy_files.yml
|
||||
# ---
|
||||
|
||||
copy_plain_files:
|
||||
|
||||
# /root/bin/monitoring
|
||||
#
|
||||
- name: admin_stuff_check_disc_usage
|
||||
src_path: server28.warenform.de/root/bin/admin-stuff/conf/check-disc-usage.conf
|
||||
dest_path: /root/bin/admin-stuff/conf/check-disc-usage.conf
|
||||
sudoers_file_user_privileges:
|
||||
- name: back
|
||||
entry: 'ALL=(www-data) NOPASSWD: /usr/local/php/bin/php'
|
||||
- name: www-data
|
||||
entry: 'ALL=(root) NOPASSWD: /root/bin/nextcloud/add-new-account.sh'
|
||||
|
||||
|
||||
# ---
|
||||
@@ -347,7 +362,6 @@ git_firewall_repository:
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
# ipt-firewall configuration for o34.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "enp6s0"
|
||||
fw_ext_ips_v4:
|
||||
- "65.109.158.101"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f9:3080:155d::2"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- Bridged / LXC
|
||||
fw_do_not_firewall_bridged_traffic: true
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- FTP
|
||||
fw_ftp_server_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -112,9 +117,9 @@ root_ssh_keypair:
|
||||
pub_key_src: a.mx.oopen.de/root/.ssh/a.mx-id_rsa-dehydrated.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-dehydrated.pub
|
||||
- name: id-rsa-opendkim
|
||||
priv_key_src: a.mx.oopen.de/root/.ssh/a.mx-id_rsa-opendkim
|
||||
priv_key_src: a.mx.oopen.de/root/.ssh/id_rsa-opendkim
|
||||
priv_key_dest: /root/.ssh/id_rsa-opendkim
|
||||
pub_key_src: a.mx.oopen.de/root/.ssh/a.mx-id_rsa-opendkim.pub
|
||||
pub_key_src: a.mx.oopen.de/root/.ssh/id_rsa-opendkim.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-opendkim.pub
|
||||
|
||||
|
||||
@@ -199,6 +204,9 @@ email_welcome_message: |
|
||||
|
||||
# install_update_dovecot.conf
|
||||
#
|
||||
# Dovecot auth listener (port 44444) - used by Jitsi on meet.akweb.de
|
||||
dovecot_xmpp_listener: true
|
||||
|
||||
dovecot_from_address: "o.open <oo@oopen.de>"
|
||||
dovecot_reply_to: "oo@oopen.de"
|
||||
webmailer_address: "https://webmail.oopen.de"
|
||||
|
||||
@@ -66,6 +66,11 @@ extra_user:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -24,4 +24,4 @@ fw_dns_server_ips: $ext_ips
|
||||
fw_wireguard_server_ips: $ext_ips
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -58,6 +58,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -110,9 +115,9 @@ root_ssh_keypair:
|
||||
pub_key_src: b.mx.oopen.de/root/.ssh/b.mx-id_rsa-dehydrated.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-dehydrated.pub
|
||||
- name: id-rsa-opendkim
|
||||
priv_key_src: b.mx.oopen.de/root/.ssh/b.mx-id_rsa-opendkim
|
||||
priv_key_src: b.mx.oopen.de/root/.ssh/id_rsa-opendkim
|
||||
priv_key_dest: /root/.ssh/id_rsa-opendkim
|
||||
pub_key_src: b.mx.oopen.de/root/.ssh/b.mx-id_rsa-opendkim.pub
|
||||
pub_key_src: b.mx.oopen.de/root/.ssh/id_rsa-opendkim.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-opendkim.pub
|
||||
|
||||
|
||||
|
||||
@@ -60,6 +60,11 @@ extra_user:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -24,4 +24,4 @@ fw_dns_server_ips: $ext_ips
|
||||
fw_wireguard_server_ips: $ext_ips
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -49,6 +49,11 @@ root_ssh_keypair:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -289,10 +294,12 @@ default_user:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL7KbEZApiqEcU4aK3A2J8hy+r1uV7TZupwm4CHGqLPH root@ga-gh-gw'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICCXqgmGcJfUDROAk24pTkQqddRj1sh1BW3JrbHu7ZtE root@ga-nh-gw'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBaF9IsDzPo6nef47VbsLlqlmiwuLyFQ8Vawil/JPF9M root@ga-st-gw'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0kp3X3Qa/TD5XnVD9pkVj03F1EuG8g2SuhFceUKVk0 root@ga-st-mail'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPbony+4g4iFS32Cv/Bkmet4FsCAsrGTffwWm2eM16x root@git.warenform'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDqqmBWh3qmnx41NiLCn1LhVG0mn4++IUvRNC0OMh6h6 root@gitoea'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICR9o0+6jnfmXKOedKP6IZgt5lRIPFSJJ4FbMjz2SPkH root@gw-campus'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEm1P7Pg3Tlm02bxkropKf3CcyTCAB3YCMxPSjai2lc root@gw-dissens'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBT0scuY5+NS5ZjhMRX2VgGD7+dXzoLiTU3yHkTaKnAd root@h.mx'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPpNZFa+Jp5/8zKmSIZ3LGzuuPxj+QvfF+NYbWtblvTg root@iam-nd'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBYFe6i0UdPRyENvfaJSJVCHtmnlJmhbqGEsdIlTapsj root@initiativenserver'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ54/I+TdZUA+Xc6bixSa3f0hN5y4kWW+xl9kqSZPBYS root@keycloak-nd'
|
||||
@@ -349,6 +356,7 @@ default_user:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID82UUUkYKYFbJdmTcMYu+vl3M0FVQznXFbngqPoumP+ root@prometheus-nd'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIObY/MOgF4QVWROrQCaKCfBOfAwKVcja3q7Ngwo1MEDt root@psono-ndm'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJU5HzfGYZwWeaoAGGFF7/3VQP19ce6Rgn5wcOR98Q3o root@server26'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJDP8BKMAiOCh2owFXl/sb6hOt+52Se1uBHeaiHLJFfg root@sftp-nd'
|
||||
- '#ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBRfCFz6mPdn3TKVCgffHQAKt3LN/0srS/gBsMoOyZpi root@shop-agr'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHbeMf/CvAYIU/4UW8Ql59FgPo/3vcZ3vI3QzK2kOadE root@srv-cityslang'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINiVJ2QVuGz0bLlrJVa3CJ+DtwOv0pt6M53ipkGbW1JQ root@stolpersteine'
|
||||
@@ -396,15 +404,6 @@ sudoers_file_user_back_svn_privileges:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@ fw_allow_ext_service_v4: "138.201.17.150:1036:tcp o32.oopen.de:2222:tcp"
|
||||
# --- Access control IPv6
|
||||
fw_allow_ext_service_v6: "2a01:4f8:171:2895::2,1036,tcp o32.oopen.de,2222,tcp"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_ports: "$standard_ssh_port 2222"
|
||||
fw_ssh_ports_v6: "$standard_ssh_port"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_ips
|
||||
|
||||
@@ -36,4 +40,4 @@ fw_http_server_ips: $ext_ips
|
||||
fw_tcp_out_ports: 51372 51374
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# ipt-firewall configuration for backup.so36.net
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "enp2s0"
|
||||
fw_ext_ips_v4:
|
||||
- "194.150.169.138"
|
||||
fw_ext_ips_v6:
|
||||
- "2001:4ce8:b134:8680::2"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 192.68.11.73
|
||||
munin_remote_ipv6: "2001:678:a40:3000::73"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_ports: 1036
|
||||
@@ -59,6 +59,11 @@ root_ssh_keypair:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -286,15 +291,6 @@ sudo_users:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
@@ -21,4 +21,4 @@ munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -112,9 +117,9 @@ root_ssh_keypair:
|
||||
pub_key_src: c.mx.oopen.de/root/.ssh/c.mx-id_rsa-dehydrated.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-dehydrated.pub
|
||||
- name: id-rsa-opendkim
|
||||
priv_key_src: c.mx.oopen.de/root/.ssh/c.mx-id_rsa-opendkim
|
||||
priv_key_src: c.mx.oopen.de/root/.ssh/id_rsa-opendkim
|
||||
priv_key_dest: /root/.ssh/id_rsa-opendkim
|
||||
pub_key_src: c.mx.oopen.de/root/.ssh/c.mx-id_rsa-opendkim.pub
|
||||
pub_key_src: c.mx.oopen.de/root/.ssh/id_rsa-opendkim.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-opendkim.pub
|
||||
- name: id-rsa
|
||||
priv_key_src: c.mx.oopen.de/root/.ssh/c.mx-id_rsa
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
# ipt-firewall configuration for c.mx.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
- "eth1"
|
||||
fw_ext_ips_v4:
|
||||
- "83.223.86.116"
|
||||
- "83.223.86.117"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:30:0:13:2c5:48ff:feee:f21c 2a01:30:0:505:2c5:48ff:feee:f21c"
|
||||
- "2a01:30:0:13:2c5:48ff:feee:f21d 2a01:30:0:505:2c5:48ff:feee:f21d"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip $ext_2_ip
|
||||
|
||||
# --- Mail
|
||||
fw_smtpd_ips: $ext_1_ip
|
||||
fw_mail_server_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
fw_dovecot_auth_service: true
|
||||
fw_dovecot_auth_allowed_networks_v4: 83.223.85.204
|
||||
fw_dovecot_auth_allowed_networks_v6: "2a01:30:0:13::/64"
|
||||
|
||||
# --- Rsync
|
||||
fw_rsync_out_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -24,4 +24,4 @@ fw_http_server_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -24,4 +24,4 @@ fw_http_server_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
---
|
||||
# ipt-firewall configuration for cl-fm.oopen.de
|
||||
# ipt-firewall configuration for cl-exil.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/ipt_firewall.yml
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
@@ -9,9 +9,9 @@ fw_manage_config: true
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "5.75.224.214"
|
||||
- "5.9.97.99"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:c015:c4b7::1"
|
||||
- "2a01:4f8:162:2477::99"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -24,4 +24,4 @@ fw_http_server_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
o32.oopen.de
|
||||
@@ -1,151 +0,0 @@
|
||||
---
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_dependencies
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_user
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/basic.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
# sshd_permit_root_login: !!str "prohibit-password"
|
||||
sshd_permit_root_login: !!str "no"
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||
# ---
|
||||
|
||||
systemd_resolved: false
|
||||
|
||||
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||
# Primäre DNS-Adresse: 38.132.106.139
|
||||
# Sekundäre DNS-Adresse: 194.187.251.67
|
||||
#
|
||||
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 1.1.1.1
|
||||
# IPv6: 2606:4700:4700::1111
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 1.0.0.1
|
||||
# IPv6: 2606:4700:4700::1001
|
||||
#
|
||||
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 8.8.8.8
|
||||
# IPv6: 2001:4860:4860::8888
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 8.8.4.4
|
||||
# IPv6: 2001:4860:4860::8844
|
||||
#
|
||||
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 9.9.9.9
|
||||
# IPv6: 2620:fe::fe
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 149.112.112.112
|
||||
# IPv6: 2620:fe::9
|
||||
#
|
||||
# OpenNIC - https://www.opennic.org/
|
||||
# IPv4: 195.10.195.195 - ns31.de
|
||||
# IPv4: 94.16.114.254 - ns28.de
|
||||
# IPv4: 51.254.162.59 - ns9.de
|
||||
# IPv4: 194.36.144.87 - ns29.de
|
||||
# IPv6: 2a00:f826:8:2::195 - ns31.de
|
||||
#
|
||||
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
|
||||
# IPv4: 5.1.66.255
|
||||
# IPv6: 2001:678:e68:f000::
|
||||
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||
# IPv4: 185.150.99.255
|
||||
# IPv6: 2001:678:ed0:f000::
|
||||
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||
resolved_nameserver:
|
||||
- 185.12.64.2
|
||||
- 2a01:4ff:ff00::add:1
|
||||
- 185.12.64.1
|
||||
- 2a01:4ff:ff00::add:2
|
||||
|
||||
# search domains
|
||||
#
|
||||
# If there are more than one search domains, then specify them here in the order in which
|
||||
# the resolver should also search them
|
||||
#
|
||||
# resolved_domains: []
|
||||
resolved_domains:
|
||||
- ~.
|
||||
- oopen.de
|
||||
|
||||
resolved_dnssec: false
|
||||
|
||||
# dns.as250.net: 194.150.168.168
|
||||
#
|
||||
resolved_fallback_nameserver:
|
||||
- 194.150.168.168
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
sudo_users:
|
||||
- chris
|
||||
- sysadm
|
||||
- localadmin
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/webadmin-user.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
sudoers_file_user_privileges:
|
||||
- name: back
|
||||
entry: 'ALL=(www-data) NOPASSWD: /usr/local/php/bin/php'
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by scripts/reset_root_passwd.yml
|
||||
# ---
|
||||
@@ -9,6 +9,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# ipt-firewall configuration for cl-nd.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "148.251.194.56"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:211:f89::56"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# ipt-firewall configuration for cl-opp.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "213.239.199.45"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:222:161c::45"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
# ipt-firewall configuration for cl-test.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "159.69.74.143"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:231:19a7::143"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- Access control IPv4
|
||||
fw_allow_ext_service_v4: "159.69.74.156:3478:tcp 159.69.74.156:3478:udp 159.69.74.156:3479:tcp 159.69.74.156:3479:udp 159.69.74.156:5349:tcp 159.69.74.156:5350:udp"
|
||||
fw_allow_local_service_from_networks_v4: "46.90.86.195:80:tcp 46.90.86.195:443:tcp"
|
||||
|
||||
# --- Access control IPv6
|
||||
fw_allow_ext_service_v6: "2a01:4f8:231:19a7::156,3478,tcp 2a01:4f8:231:19a7::156,3478,udp 2a01:4f8:231:19a7::156,3479,tcp 2a01:4f8:231:19a7::156,3479,udp 2a01:4f8:231:19a7::156,5349,tcp 2a01:4f8:231:19a7::156,5349,udp 2a01:4f8:231:19a7::156,5350,tcp 2a01:4f8:231:19a7::156,5350,udp"
|
||||
fw_allow_local_service_from_networks_v6: "2003:ec:df11:4400::/56,80,tcp 2003:ec:df11:4400::/56,443,tcp"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- TURN / STUN
|
||||
fw_nc_turn_server_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
o34.oopen.de
|
||||
@@ -1,72 +0,0 @@
|
||||
---
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_dependencies
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_user
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/basic.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/webadmin-user.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
sudoers_file_user_privileges:
|
||||
- name: back
|
||||
entry: 'ALL=(www-data) NOPASSWD: /usr/local/php/bin/php'
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by scripts/reset_root_passwd.yml
|
||||
# ---
|
||||
@@ -1,72 +0,0 @@
|
||||
---
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_dependencies
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_user
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/basic.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/webadmin-user.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
sudoers_file_user_privileges:
|
||||
- name: back
|
||||
entry: 'ALL=(www-data) NOPASSWD: /usr/local/php/bin/php'
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by scripts/reset_root_passwd.yml
|
||||
# ---
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# ipt-firewall configuration for cloud.akweb.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "148.251.14.141"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:201:7389::141"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
# ipt-firewall configuration for comm.so36.net
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "192.68.11.79"
|
||||
fw_ext_ips_v6:
|
||||
- "2001:678:a40:3000::79"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 192.68.11.73
|
||||
munin_remote_ipv6: "2001:678:a40:3000::73"
|
||||
|
||||
# --- Access control IPv4
|
||||
fw_allow_ext_service_v4: "138.201.23.195:1036:tcp"
|
||||
|
||||
# --- Access control IPv6
|
||||
fw_allow_ext_service_v6: "2a01:4f8:171:2895::195,1036,tcp"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_ports: 1036
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_ips
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_ips
|
||||
fw_dovecot_auth_port: 44444
|
||||
|
||||
# --- XMPP
|
||||
fw_xmpp_server_ips: $ext_1_ip
|
||||
fw_xmmp_remote_out_services_v4: "192.68.11.81:44444"
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# ipt-firewall configuration for cp-01.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "159.69.74.144"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:231:19a7::144"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# ipt-firewall configuration for cp-flr.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "176.9.125.39"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:151:8415::39"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -112,9 +117,9 @@ root_ssh_keypair:
|
||||
pub_key_src: d.mx.oopen.de/root/.ssh/d.mx-id_rsa-dehydrated.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-dehydrated.pub
|
||||
- name: id-rsa-opendkim
|
||||
priv_key_src: d.mx.oopen.de/root/.ssh/d.mx-id_rsa-opendkim
|
||||
priv_key_src: d.mx.oopen.de/root/.ssh/id_rsa-opendkim
|
||||
priv_key_dest: /root/.ssh/id_rsa-opendkim
|
||||
pub_key_src: d.mx.oopen.de/root/.ssh/d.mx-id_rsa-opendkim.pub
|
||||
pub_key_src: d.mx.oopen.de/root/.ssh/id_rsa-opendkim.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa-opendkim.pub
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
---
|
||||
# ipt-firewall configuration for d.mx.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "95.217.204.227"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f9:4a:47e5::227"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_smtpd_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
|
||||
# --- Rsync
|
||||
fw_rsync_out_ips: $ext_1_ip
|
||||
|
||||
# --- Portforwarding
|
||||
fw_portforward_tcp_v4: "$ext_if_1:83.223.86.92:8443:83.223.86.117:443"
|
||||
fw_portforward_tcp_v6: "$ext_if_1,2a01:30:0:13:254:9eff:fed5:e7fd,8443,2a01:30:0:13:2c5:48ff:feee:f21d,443"
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
sshd_permit_root_login: !!str "prohibit-password"
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
# ipt-firewall configuration for devnull.so36.net
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "br0"
|
||||
- "br1"
|
||||
fw_ext_ips_v4:
|
||||
- "83.223.73.200"
|
||||
- "192.68.11.70"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:30:1fff:fd00::200"
|
||||
- "2001:678:a40:3000::70"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 192.68.11.73
|
||||
munin_remote_ipv6: "2001:678:a40:3000::73"
|
||||
|
||||
# --- Bridged / LXC
|
||||
fw_do_not_firewall_bridged_traffic: true
|
||||
|
||||
# --- Access control IPv4
|
||||
fw_allow_ext_service_v4: "138.201.23.195:1036:tcp"
|
||||
|
||||
# --- Access control IPv6
|
||||
fw_allow_ext_service_v6: "2a01:4f8:171:2895::195,1036,tcp"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_ports: 1036
|
||||
|
||||
# --- Mail
|
||||
fw_dovecot_auth_port: 44444
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# ipt-firewall configuration for dns0.warenform.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "83.223.86.113"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:30:0:13:2fe:f9ff:fe23:24c4 2a01:30:0:505:2fe:f9ff:fe23:24c4"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_server_ips: $ext_1_ip
|
||||
|
||||
# --- DNS
|
||||
fw_dns_server_ips: $ext_1_ip
|
||||
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by apt.yml
|
||||
# ---
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# ipt-firewall configuration for dns1.warenform.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "83.223.84.20"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:30:d000:6::11"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- SSH
|
||||
fw_ssh_server_ips: $ext_1_ip
|
||||
fw_ssh_server_ips_v6: $ext_ips
|
||||
|
||||
# --- DNS
|
||||
fw_dns_server_ips: $ext_1_ip
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -196,6 +201,9 @@ email_welcome_message: |
|
||||
|
||||
# install_update_dovecot.conf
|
||||
#
|
||||
# Dovecot auth listener (port 44444) - used by Jitsi on meet.oopen.de
|
||||
dovecot_xmpp_listener: true
|
||||
|
||||
dovecot_from_address: "o.open <oo@oopen.de>"
|
||||
dovecot_reply_to: "oo@oopen.de"
|
||||
webmailer_address: "https://webmail-e.oopen.de"
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
---
|
||||
# ipt-firewall configuration for e.mx.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "95.217.204.205"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f9:4a:47e5::205"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_smtpd_ips: $ext_1_ip
|
||||
fw_mail_server_ips: $ext_1_ip
|
||||
fw_mail_client_ips: $ext_1_ip
|
||||
fw_dovecot_auth_service: true
|
||||
fw_dovecot_auth_allowed_networks_v4: meet.oopen.de
|
||||
fw_dovecot_auth_allowed_networks_v6: meet.oopen.de
|
||||
|
||||
# --- Rsync
|
||||
fw_rsync_out_ips: $ext_1_ip
|
||||
|
||||
# --- Block
|
||||
fw_blocked_ips_v4: 222.184.0.0/13 61.160.0.0/16 116.8.0.0/14
|
||||
@@ -93,6 +93,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -90,6 +90,11 @@ sshd_hostkeyalgorithms:
|
||||
- rsa-sha2-256
|
||||
- ssh-rsa
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -68,6 +68,11 @@ network_interfaces:
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -92,6 +92,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -69,6 +69,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -68,6 +68,11 @@ network_interfaces:
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -89,6 +89,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -80,6 +80,11 @@ network_interfaces:
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -177,15 +182,6 @@ sudo_users:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-server
|
||||
repo: https://git.oopen.de/firewall/ipt-server
|
||||
dest: /usr/local/src/ipt-server
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -31,7 +36,7 @@ install_compiler_pkgs: true
|
||||
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||
# ---
|
||||
|
||||
systemd_resolved: true
|
||||
systemd_resolved: false
|
||||
|
||||
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||
# Primäre DNS-Adresse: 38.132.106.139
|
||||
@@ -101,7 +106,7 @@ resolved_fallback_nameserver:
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
# insert_root_ssh_keypair: true
|
||||
insert_root_ssh_keypair: true
|
||||
#
|
||||
# root_ssh_keypair:
|
||||
# - name: id-rsa-dehydrated
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# ipt-firewall configuration for g.mx.oopen.de
|
||||
# Generated by extract-fw-host-vars.py - review before committing!
|
||||
# Place in: host_vars/<hostname>/<short-hostname>-ipt-server.yml
|
||||
|
||||
fw_manage_config: true
|
||||
|
||||
# --- Network
|
||||
fw_ext_interfaces:
|
||||
- "eth0"
|
||||
fw_ext_ips_v4:
|
||||
- "176.9.125.42"
|
||||
fw_ext_ips_v6:
|
||||
- "2a01:4f8:151:8415::42"
|
||||
|
||||
# --- Munin
|
||||
munin_remote_ipv4: 37.27.121.227
|
||||
munin_remote_ipv6: "2a01:4f9:3070:2bda::227"
|
||||
|
||||
# --- HTTP
|
||||
fw_http_server_ips: $ext_1_ip
|
||||
|
||||
# --- Mail
|
||||
fw_smtpd_ips: $ext_1_ip
|
||||
|
||||
# --- Rsync
|
||||
fw_rsync_out_ips: $ext_1_ip
|
||||
@@ -1,605 +0,0 @@
|
||||
---
|
||||
# ---
|
||||
# vars used by roles/network_interfaces
|
||||
# ---
|
||||
|
||||
|
||||
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
||||
network_manage_devices: true
|
||||
|
||||
# Should the interfaces be reloaded after config change?
|
||||
network_interface_reload: false
|
||||
|
||||
network_interface_path: /etc/network/interfaces.d
|
||||
network_interface_required_packages:
|
||||
- vlan
|
||||
- bridge-utils
|
||||
- ifmetric
|
||||
- ifupdown
|
||||
- ifenslave
|
||||
|
||||
network_interfaces:
|
||||
|
||||
- device: enp1s0f0
|
||||
headline: enp1s0f0 - LAN - Uplink static line (radio) to Stockausen
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 172.16.111.253
|
||||
netmask: 24
|
||||
post-up:
|
||||
# Network Telefons Stockhausen
|
||||
# - /sbin/ip route add 172.16.211.0/24 via 172.16.111.254
|
||||
# User Networks Stockhausen
|
||||
- /sbin/ip route add 192.168.11.0/24 via 172.16.111.254
|
||||
- /sbin/ip route add 192.168.78.0/24 via 172.16.111.254
|
||||
# User Networks Campus
|
||||
# - /sbin/ip route add 192.168.72.0/24 via 172.16.111.254
|
||||
# - /sbin/ip route add 192.168.73.0/24 via 172.16.111.254
|
||||
# User Network Novalishaus
|
||||
# - /sbin/ip route add 192.168.81.0/24 via 172.16.111.254
|
||||
# User Network Georgshaus
|
||||
# - /sbin/ip route add 192.168.85.0/24 via 172.16.111.254
|
||||
# Management Network Stockhausen
|
||||
- /sbin/ip route add 10.10.11.0/24 via 172.16.111.254
|
||||
# Depreated Management Network Stokhausen
|
||||
- /sbin/ip route add 10.10.9.0/24 via 172.16.111.254
|
||||
# IPMI Stockhausen
|
||||
- /sbin/ip route add 10.11.11.0/24 via 172.16.111.254
|
||||
# WLAN Gast Novalishaus
|
||||
- /sbin/ip route add 10.21.0.0/20 via 172.16.111.254
|
||||
# WLAN privat Novalishaus
|
||||
- /sbin/ip route add 10.31.0.0/20 via 172.16.111.254
|
||||
# Management Netork Campus
|
||||
# - /sbin/ip route add 10.72.1.0/24 via 172.16.111.254
|
||||
# WLan Router Stockhausen
|
||||
- /sbin/ip route add 10.112.1.0/24 via 172.16.111.254
|
||||
# WLan Netz
|
||||
- /sbin/ip route add 10.113.0.0/16 via 172.16.111.254
|
||||
# Unifi WLan Netz Stockhausen Gast
|
||||
- /sbin/ip route add 10.121.0.0/20 via 172.16.111.254
|
||||
# Unifi WLan Netz Stockhausen privat
|
||||
- /sbin/ip route add 10.131.0.0/20 via 172.16.111.254
|
||||
# Richtfunkantennen Stockhausen (2) / Schlechtenwegen / Kirschbaumhaus
|
||||
- /sbin/ip route add 10.10.111.0/24 via 172.16.111.254
|
||||
# VPN Netz Stockhausen - Novalishaus (Schlechtenwegen)
|
||||
- /sbin/ip route add 10.2.81.0/24 via 172.16.111.254
|
||||
# VPN Netz Stockhausen - Georgshaus
|
||||
- /sbin/ip route add 10.2.85.0/24 via 172.16.111.254
|
||||
# VPN Home Stockhausen
|
||||
- /sbin/ip route add 10.0.11.0/24 via 172.16.111.254
|
||||
# - FritzBoxen Stockhausen
|
||||
- /sbin/ip route add 172.16.11.0/24 via 172.16.111.254
|
||||
- /sbin/ip route add 172.16.12.0/24 via 172.16.111.254
|
||||
- /sbin/ip route add 172.16.13.0/24 via 172.16.111.254
|
||||
# - FritzBox Novalishaus
|
||||
- /sbin/ip route add 172.16.80.0/24 via 172.16.111.254
|
||||
# - DigitBox Novalishaus
|
||||
- /sbin/ip route add 172.16.81.0/24 via 172.16.111.254
|
||||
# - FritzBox georgshaus
|
||||
- /sbin/ip route add 172.16.85.0/24 via 172.16.111.254
|
||||
|
||||
|
||||
- device: enp6s0f0
|
||||
headline: enp6s0f0 - Uplink DSL Altenschlirf via (static) line to Fritz!Box 7590
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 172.16.10.1
|
||||
netmask: 24
|
||||
gateway: 172.16.10.254
|
||||
# nameservers:
|
||||
# - 192.168.10.1
|
||||
# - 192.168.10.3
|
||||
# search: ga.netz
|
||||
|
||||
|
||||
- device: enp6s0f1
|
||||
headline: enp6s0f1 - LAN main network Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 192.168.10.254
|
||||
netmask: 24
|
||||
post-up:
|
||||
# - VLAN 221 (Ubiquiti UniFi Accesspoints)
|
||||
- /sbin/ip link add link enp6s0f1 name enp6s0f1.221 type vlan id 221
|
||||
- /sbin/ip link add link enp6s0f1 name enp6s0f1.231 type vlan id 231
|
||||
|
||||
- device: enp6s0f1:ns
|
||||
headline: enp6s0f1:ns - Alias on enp6s0f1 (Nameserver)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 192.168.10.1
|
||||
netmask: 32
|
||||
|
||||
- device: enp6s0f1:ap
|
||||
headline: enp6s0f1:ap - Alias on enp6s0f1 (Network Accesspoints)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 10.122.1.254
|
||||
netmask: 24
|
||||
post-up:
|
||||
# - Wireless Networks routed through appropriate Accesspoints
|
||||
# -
|
||||
- /sbin/ip route add 10.123.1.0/24 via 10.122.1.1
|
||||
- /sbin/ip route add 10.123.2.0/24 via 10.122.1.2
|
||||
- /sbin/ip route add 10.123.3.0/24 via 10.122.1.3
|
||||
- /sbin/ip route add 10.123.4.0/24 via 10.122.1.4
|
||||
- /sbin/ip route add 10.123.5.0/24 via 10.122.1.5
|
||||
- /sbin/ip route add 10.123.6.0/24 via 10.122.1.6
|
||||
- /sbin/ip route add 10.123.7.0/24 via 10.122.1.7
|
||||
- /sbin/ip route add 10.123.8.0/24 via 10.122.1.8
|
||||
- /sbin/ip route add 10.123.9.0/24 via 10.122.1.9
|
||||
- /sbin/ip route add 10.123.10.0/24 via 10.122.1.10
|
||||
- /sbin/ip route add 10.123.11.0/24 via 10.122.1.11
|
||||
- /sbin/ip route add 10.123.12.0/24 via 10.122.1.12
|
||||
- /sbin/ip route add 10.123.13.0/24 via 10.122.1.13
|
||||
- /sbin/ip route add 10.123.14.0/24 via 10.122.1.14
|
||||
- /sbin/ip route add 10.123.15.0/24 via 10.122.1.15
|
||||
|
||||
- device: enp6s0f1.221
|
||||
# use only once per device (for the first device entry)
|
||||
headline: enp6s0f1 - VLAN 221 (Ubiquiti UniFi Accesspoints Guest NET)
|
||||
|
||||
# auto & allow are only used for the first device entry
|
||||
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
||||
auto: true
|
||||
|
||||
family: inet
|
||||
method: static
|
||||
# hwaddress: 0c:c4:7a:7d:51:46
|
||||
description:
|
||||
address: 10.221.15.254
|
||||
netmask: 20
|
||||
gateway:
|
||||
metric:
|
||||
pointopoint:
|
||||
mtu:
|
||||
scope:
|
||||
|
||||
- device: enp6s0f1.231
|
||||
headline: enp6s0f1 - VLAN 231 (Ubiquiti UniFi Accesspoints private NET)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 10.231.15.254
|
||||
netmask: 20
|
||||
|
||||
# additional user by dhcp method
|
||||
#
|
||||
hostname:
|
||||
leasehours:
|
||||
leasetime:
|
||||
vendor:
|
||||
client:
|
||||
|
||||
# additional used by bootp method
|
||||
#
|
||||
bootfile:
|
||||
server:
|
||||
hwaddr:
|
||||
|
||||
# optional dns settings nameservers: []
|
||||
#
|
||||
# nameservers:
|
||||
# - 194.150.168.168 # dns.as250.net
|
||||
# - 91.239.100.100 # anycast.censurfridns.dk
|
||||
# search: warenform.de
|
||||
#
|
||||
nameservers: []
|
||||
|
||||
# optional additional subnets/ips subnets: []
|
||||
# subnets:
|
||||
# - '192.168.123.0/24'
|
||||
# - '192.168.124.11/32'
|
||||
|
||||
# optional bridge parameters bridge: {}
|
||||
# bridge:
|
||||
# ports:
|
||||
# stp:
|
||||
# fd:
|
||||
# maxwait:
|
||||
# waitport:
|
||||
bridge: {}
|
||||
|
||||
# optional bonding parameters bond: {}
|
||||
# bond:
|
||||
# master
|
||||
# primary
|
||||
# slave
|
||||
# method:
|
||||
# miimon:
|
||||
# lacp-rate:
|
||||
# ad-select-rate:
|
||||
# master:
|
||||
# slaves:
|
||||
bond: {}
|
||||
|
||||
# optional vlan settings | vlan: {}
|
||||
# vlan: {}
|
||||
# raw-device: 'enp1s0f0'
|
||||
vlan: {}
|
||||
|
||||
# inline hook scripts
|
||||
pre-up: [] # pre-up script lines
|
||||
up: []
|
||||
post-up: [] # post-up script lines (alias for up)
|
||||
pre-down: [] # pre-down script lines (alias for down)
|
||||
down: [] # down script lines
|
||||
post-down: [] # post-down script lines
|
||||
|
||||
|
||||
- device: enp1s0f2
|
||||
headline: enp1s0f2 - Management Network Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 10.10.10.254
|
||||
netmask: 24
|
||||
|
||||
|
||||
- device: enp1s0f3
|
||||
headline: enp1s0f3 - Network Telefons Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 172.16.210.254
|
||||
netmask: 24
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_dependencies
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/ansible_user
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/basic.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sshd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||
# ---
|
||||
|
||||
systemd_resolved: true
|
||||
|
||||
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||
# Primäre DNS-Adresse: 38.132.106.139
|
||||
# Sekundäre DNS-Adresse: 194.187.251.67
|
||||
#
|
||||
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 1.1.1.1
|
||||
# IPv6: 2606:4700:4700::1111
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 1.0.0.1
|
||||
# IPv6: 2606:4700:4700::1001
|
||||
#
|
||||
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 8.8.8.8
|
||||
# IPv6: 2001:4860:4860::8888
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 8.8.4.4
|
||||
# IPv6: 2001:4860:4860::8844
|
||||
#
|
||||
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
|
||||
# primäre DNS-Adresse
|
||||
# IPv4: 9.9.9.9
|
||||
# IPv6: 2620:fe::fe
|
||||
# sekundäre DNS-Adresse
|
||||
# IPv4: 149.112.112.112
|
||||
# IPv6: 2620:fe::9
|
||||
#
|
||||
# OpenNIC - https://www.opennic.org/
|
||||
# IPv4: 195.10.195.195 - ns31.de
|
||||
# IPv4: 94.16.114.254 - ns28.de
|
||||
# IPv4: 51.254.162.59 - ns9.de
|
||||
# IPv4: 194.36.144.87 - ns29.de
|
||||
# IPv6: 2a00:f826:8:2::195 - ns31.de
|
||||
#
|
||||
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
|
||||
# IPv4: 5.1.66.255
|
||||
# IPv6: 2001:678:e68:f000::
|
||||
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||
# IPv4: 185.150.99.255
|
||||
# IPv6: 2001:678:ed0:f000::
|
||||
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||
# Note: systemd-resolved uses 'FallbackDNS' only if no 'DNS' is configured at all. So
|
||||
# the other (internal) nameserver gateways are listed here as additional DNS servers.
|
||||
resolved_nameserver:
|
||||
- 127.0.0.1
|
||||
- 192.168.11.1
|
||||
- 192.168.81.1
|
||||
|
||||
# search domains
|
||||
#
|
||||
# If there are more than one search domains, then specify them here in the order in which
|
||||
# the resolver should also search them
|
||||
#
|
||||
# resolved_domains: []
|
||||
resolved_domains:
|
||||
- ~.
|
||||
- ga.netz
|
||||
- ga.intra
|
||||
|
||||
resolved_dnssec: false
|
||||
|
||||
# dns.as250.net: 194.150.168.168
|
||||
#
|
||||
resolved_fallback_nameserver:
|
||||
- 192.168.11.1
|
||||
- 192.168.81.1
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/cron.yml
|
||||
# ---
|
||||
|
||||
cron_user_entries:
|
||||
|
||||
- name: "Check forwarding ( /proc/sys/net/ipv4/ip_forward contains \"1\" )"
|
||||
minute: '0-59/3'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_forwarding.sh
|
||||
|
||||
- name: "Check if nameservice (bind) is running?"
|
||||
minute: '*/23'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_dns.sh
|
||||
|
||||
- name: "Check if Resolver (systemd-resolved) is up and running?"
|
||||
minute: '*/23'
|
||||
hour: '*'
|
||||
job: bin/monitoring/check_systemd_resolved.sh
|
||||
|
||||
- name: "Check if Postfix Mailservice is up and running?"
|
||||
minute: '*/17'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_postfix.sh
|
||||
|
||||
- name: "Check if SSH service is up and running?"
|
||||
minute: '*/13'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_ssh.sh
|
||||
|
||||
- name: "Check if OpenVPN service is up and running?"
|
||||
minute: '*/29'
|
||||
hour: '*'
|
||||
job: /root/bin/monitoring/check_vpn.sh
|
||||
|
||||
- name: "Copy gateway configuration"
|
||||
minute: '09'
|
||||
hour: '3'
|
||||
job: /root/bin/manage-gw-config/copy_gateway-config.sh GA-AL
|
||||
|
||||
- name: "Speedtest"
|
||||
minute: 13
|
||||
hour: 0-8
|
||||
job: /root/bin/admin-stuff/speedtest.sh
|
||||
|
||||
|
||||
cron_user_special_time_entries:
|
||||
|
||||
- name: "Restart NTP service 'ntpsec'"
|
||||
special_time: reboot
|
||||
job: "sleep 15 ; /bin/systemctl restart ntpsec"
|
||||
insertafter: PATH
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users.yml
|
||||
# ---
|
||||
|
||||
insert_ssh_keypair_backup_server: false
|
||||
ssh_keypair_backup_server:
|
||||
- name: backup
|
||||
backup_user: back
|
||||
priv_key_src: root/.ssh/id_rsa.backup.oopen.de
|
||||
priv_key_dest: /root/.ssh/id_rsa
|
||||
pub_key_src: root/.ssh/id_rsa.backup.oopen.de.pub
|
||||
pub_key_dest: /root/.ssh/id_rsa.pub
|
||||
|
||||
insert_keypair_backup_client: true
|
||||
ssh_keypair_backup_client:
|
||||
- name: backup
|
||||
priv_key_src: root/.ssh/id_ed25519.oopen-server
|
||||
priv_key_dest: /root/.ssh/id_ed25519
|
||||
pub_key_src: root/.ssh/id_ed25519.oopen-server.pub
|
||||
pub_key_dest: /root/.ssh/id_ed25519.pub
|
||||
target: backup.oopen.de
|
||||
|
||||
default_user:
|
||||
|
||||
- name: chris
|
||||
password: $y$j9T$rDrvWa/KInzTe601YYf9./$WjDlaItCrgX7gu4nCs481y8WLxiRaNJCC/MgFgKuzg3
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
|
||||
- name: maadmin
|
||||
password: $y$j9T$LCkYWvykWzrpFxIlmSUB01$e1ROfZxXAU53UdAwZAECzED4iV4LS02Q4IPQ2fycv51
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||
|
||||
- name: wadmin
|
||||
password: $6$sLWIXKTW$i/STlSS0LijkrnGR/XMbaxJsEbrRdDYgqyCqIr.muLN5towes8yHDCXsyCYDjuaBNKPHXyFpr8lclg5DOm9OF1
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||
|
||||
- name: sysadm
|
||||
user_id: 1050
|
||||
group_id: 1050
|
||||
group: sysadm
|
||||
password: $y$j9T$awYUu9oRvV39ojITZOC7D1$czTh5HHIE32PXb0vl40ayAarm39txR4jaH1QzBscqfC
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||
|
||||
- name: back
|
||||
user_id: 1060
|
||||
group_id: 1060
|
||||
group: back
|
||||
password: $y$j9T$wpg8hlvMpO4PAWSVdLoJq/$dgpQh4cEnbUOQkkZzKUM4S8XzNS/Md5gMmMuNTqec74
|
||||
shell: /bin/bash
|
||||
ssh_keys:
|
||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||
|
||||
sudo_users:
|
||||
- chris
|
||||
- sysadm
|
||||
- maadmin
|
||||
- wadmin
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/webadmin-user.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sudoers.yml
|
||||
# ---
|
||||
#
|
||||
# see: roles/common/tasks/vars
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||
# ---
|
||||
|
||||
install_bind_packages: true
|
||||
|
||||
|
||||
bind9_gateway_acl:
|
||||
- local-net:
|
||||
name: local-net
|
||||
entries:
|
||||
- 127.0.0.0/8
|
||||
- 172.16.0.0/12
|
||||
- 192.168.0.0/16
|
||||
- 10.0.0.0/8
|
||||
- fc00::/7
|
||||
- fe80::/10
|
||||
- ::1/128
|
||||
- internaldns:
|
||||
name: internaldns
|
||||
entries:
|
||||
- '# Nameserver Gateway Stockhausen'
|
||||
- 192.168.11.1
|
||||
- '# Domain Controller Stockhausen'
|
||||
- 192.168.11.3
|
||||
- '# Nameserver Gateway Altenschlirf'
|
||||
- 192.168.10.1
|
||||
- '# Domain Controller Altenschlirf'
|
||||
- 192.168.10.3
|
||||
- 192.168.10.6
|
||||
- 172.16.0.1
|
||||
- '# Nameserver Gateway Novalishaus'
|
||||
- 192.168.81.1
|
||||
- 10.2.11.2
|
||||
- '# Nameserver Gateway Georgshaus'
|
||||
- 192.168.85.1
|
||||
- '# Nameserver wolle'
|
||||
- 10.113.12.3
|
||||
- '# Postfix Mailserver'
|
||||
- 192.168.11.2
|
||||
- '# Mail Relay System'
|
||||
- 192.168.10.2
|
||||
|
||||
|
||||
bind9_gateway_listen_on_v6:
|
||||
- none
|
||||
|
||||
bind9_gateway_listen_on:
|
||||
- any
|
||||
|
||||
# bind9_gateway_allow_transfer: {}
|
||||
bind9_gateway_allow_transfer:
|
||||
- none
|
||||
|
||||
bind9_transfer_source: !!str "192.168.10.1"
|
||||
bind9_notify_source: !!str "192.168.10.1"
|
||||
|
||||
# bind9_gateway_allow_query: {}
|
||||
bind9_gateway_allow_query:
|
||||
- local-net
|
||||
|
||||
# bind9_gateway_allow_query_cache: {}
|
||||
bind9_gateway_allow_query_cache:
|
||||
- local-net
|
||||
|
||||
bind9_gateway_recursion: !!str "yes"
|
||||
# bind9_gateway_allow_recursion: {}
|
||||
bind9_gateway_allow_recursion:
|
||||
- local-net
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/git.yml
|
||||
# ---
|
||||
|
||||
git_firewall_repository:
|
||||
name: ipt-gateway
|
||||
repo: https://git.oopen.de/firewall/ipt-gateway
|
||||
dest: /usr/local/src/ipt-gateway
|
||||
|
||||
git_other_repositories:
|
||||
- name: check_net
|
||||
repo: https://git.oopen.de/routing/check_net
|
||||
dest: /usr/local/src/check_net
|
||||
|
||||
- name: borg2-binaries
|
||||
repo: https://git.oopen.de/backup/borg2-binaries
|
||||
dest: /usr/local/src/borg2-binaries
|
||||
|
||||
- name: borg2-backup
|
||||
repo: https://git.oopen.de/backup/borg2-backup
|
||||
dest: /root/bin/borg2-backup
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by scripts/reset_root_passwd.yml
|
||||
# ---
|
||||
|
||||
root_user:
|
||||
name: root
|
||||
password: $6$J1ssJfdshf/$mknQEPDcW4HN5.wFfawbamamywI7F7fhdZmaR1abNrc4DA7DNRx766lz3ygf9YV3gcmRq3QhJ3fBVlkwGMCvq.
|
||||
@@ -20,14 +20,15 @@ network_interface_required_packages:
|
||||
|
||||
network_interfaces:
|
||||
|
||||
- device: eth0
|
||||
headline: eth0 - LAN - Uplink static line (radio) to Stockausen
|
||||
- device: lan2
|
||||
headline: lan2 - LAN - Uplink static line (radio) to Stockausen
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 172.16.111.253
|
||||
netmask: 24
|
||||
post-up:
|
||||
# Network Telefons Stockhausen
|
||||
# - /sbin/ip route add 172.16.211.0/24 via 172.16.111.254
|
||||
# User Networks Stockhausen
|
||||
- /sbin/ip route add 192.168.11.0/24 via 172.16.111.254
|
||||
@@ -63,6 +64,8 @@ network_interfaces:
|
||||
- /sbin/ip route add 10.10.111.0/24 via 172.16.111.254
|
||||
# VPN Netz Stockhausen - Novalishaus (Schlechtenwegen)
|
||||
- /sbin/ip route add 10.2.81.0/24 via 172.16.111.254
|
||||
# VPN Netz Stockhausen - Georgshaus
|
||||
- /sbin/ip route add 10.2.85.0/24 via 172.16.111.254
|
||||
# VPN Home Stockhausen
|
||||
- /sbin/ip route add 10.0.11.0/24 via 172.16.111.254
|
||||
# - FritzBoxen Stockhausen
|
||||
@@ -77,8 +80,8 @@ network_interfaces:
|
||||
- /sbin/ip route add 172.16.85.0/24 via 172.16.111.254
|
||||
|
||||
|
||||
- device: eth1
|
||||
headline: eth1 - Uplink DSL Altenschlirf via (static) line to Fritz!Box 7590
|
||||
- device: lan0
|
||||
headline: lan0 - Uplink DSL Altenschlirf via (static) line to Fritz!Box 7590
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -91,8 +94,8 @@ network_interfaces:
|
||||
# search: ga.netz
|
||||
|
||||
|
||||
- device: eth2
|
||||
headline: eth2 - LAN main network Altenschlirf
|
||||
- device: lan1
|
||||
headline: lan1 - LAN main network Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -100,19 +103,19 @@ network_interfaces:
|
||||
netmask: 24
|
||||
post-up:
|
||||
# - VLAN 221 (Ubiquiti UniFi Accesspoints)
|
||||
- /sbin/ip link add link eth2 name eth2.221 type vlan id 221
|
||||
- /sbin/ip link add link eth2 name eth2.231 type vlan id 231
|
||||
- /sbin/ip link add link lan1 name lan1.221 type vlan id 221
|
||||
- /sbin/ip link add link lan1 name lan1.231 type vlan id 231
|
||||
|
||||
- device: eth2:ns
|
||||
headline: eth2:ns - Alias on eth2 (Nameserver)
|
||||
- device: lan1:ns
|
||||
headline: lan1:ns - Alias on lan1 (Nameserver)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
address: 192.168.10.1
|
||||
netmask: 32
|
||||
|
||||
- device: eth2:ap
|
||||
headline: eth2:ap - Alias on eth2 (Network Accesspoints)
|
||||
- device: lan1:ap
|
||||
headline: lan1:ap - Alias on lan1 (Network Accesspoints)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -137,9 +140,9 @@ network_interfaces:
|
||||
- /sbin/ip route add 10.123.14.0/24 via 10.122.1.14
|
||||
- /sbin/ip route add 10.123.15.0/24 via 10.122.1.15
|
||||
|
||||
- device: eth2.221
|
||||
- device: lan1.221
|
||||
# use only once per device (for the first device entry)
|
||||
headline: eth2 - VLAN 221 (Ubiquiti UniFi Accesspoints Guest NET)
|
||||
headline: lan1 - VLAN 221 (Ubiquiti UniFi Accesspoints Guest NET)
|
||||
|
||||
# auto & allow are only used for the first device entry
|
||||
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
||||
@@ -157,8 +160,8 @@ network_interfaces:
|
||||
mtu:
|
||||
scope:
|
||||
|
||||
- device: eth2.231
|
||||
headline: eth2 - VLAN 231 (Ubiquiti UniFi Accesspoints private NET)
|
||||
- device: lan1.231
|
||||
headline: lan1 - VLAN 231 (Ubiquiti UniFi Accesspoints private NET)
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -217,7 +220,7 @@ network_interfaces:
|
||||
|
||||
# optional vlan settings | vlan: {}
|
||||
# vlan: {}
|
||||
# raw-device: 'eth0'
|
||||
# raw-device: 'lan2'
|
||||
vlan: {}
|
||||
|
||||
# inline hook scripts
|
||||
@@ -229,8 +232,8 @@ network_interfaces:
|
||||
post-down: [] # post-down script lines
|
||||
|
||||
|
||||
- device: eth4
|
||||
headline: eth4 - Management Network Altenschlirf
|
||||
- device: lan4
|
||||
headline: lan4 - Management Network Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -238,8 +241,8 @@ network_interfaces:
|
||||
netmask: 24
|
||||
|
||||
|
||||
- device: eth5
|
||||
headline: eth5 - Network Telefons Altenschlirf
|
||||
- device: lan5
|
||||
headline: lan5 - Network Telefons Altenschlirf
|
||||
auto: true
|
||||
family: inet
|
||||
method: static
|
||||
@@ -267,6 +270,11 @@ network_interfaces:
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/sftpd.yml
|
||||
# ---
|
||||
|
||||
|
||||
# ---
|
||||
# vars used by roles/common/tasks/apt.yml
|
||||
# ---
|
||||
@@ -586,6 +594,9 @@ git_other_repositories:
|
||||
repo: https://git.oopen.de/backup/borg2-binaries
|
||||
dest: /usr/local/src/borg2-binaries
|
||||
|
||||
- name: borg2-backup
|
||||
repo: https://git.oopen.de/backup/borg2-backup
|
||||
dest: /root/bin/borg2-backup
|
||||
|
||||
# ==============================
|
||||
|
||||
|
||||
Loaded 100 of 410 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user