diff --git a/old/s-graylog.yml b/old/s-graylog.yml new file mode 100644 index 0000000..0127d98 --- /dev/null +++ b/old/s-graylog.yml @@ -0,0 +1,12 @@ +--- +- hosts: localhost + connection: local + + roles: + - base + - goss + - docker-graylog + - ssh-cli + - syslog + - post + diff --git a/wireguard/ping-agence.sh b/wireguard/ping-agence.sh new file mode 100644 index 0000000..d675295 --- /dev/null +++ b/wireguard/ping-agence.sh @@ -0,0 +1,14 @@ +#!/bin/bash +ping -c3 172.16.128.254 + +ping -c3 192.168.1.2 + +ping -c3 192.168.1.1 + +ping -c3 192.168.200.253 + +ping -c3 192.168.200.254 + +ping -c3 172.16.0.254 + +ping -c3 172.16.0.1 diff --git a/wireguard/ping-rext.sh b/wireguard/ping-rext.sh new file mode 100755 index 0000000..e42f779 --- /dev/null +++ b/wireguard/ping-rext.sh @@ -0,0 +1,14 @@ +#!/bin/bash +ping -c3 172.16.0.1 + +ping -c3 172.16.0.254 + +ping -c3 192.168.200.254 + +ping -c3 192.168.1.1 + +ping -c3 192.168.1.2 + +ping -c3 172.16.128.254 + +ping -c3 172.16.128.10 diff --git a/wireguard/ping-rint.sh b/wireguard/ping-rint.sh new file mode 100644 index 0000000..99e92aa --- /dev/null +++ b/wireguard/ping-rint.sh @@ -0,0 +1,12 @@ +#!/bin/bash +ping -c3 172.16.0.1 + +ping -c3 192.168.200.253 + +ping -c3 192.168.1.1 + +ping -c3 192.168.1.2 + +ping -c3 172.16.128.254 + +ping -c3 172.16.128.10 diff --git a/wireguard/ping-sinfra.sh b/wireguard/ping-sinfra.sh new file mode 100644 index 0000000..8a9c1d3 --- /dev/null +++ b/wireguard/ping-sinfra.sh @@ -0,0 +1,14 @@ +#!/bin/bash +ping -c3 172.16.0.254 + +ping -c3 192.168.200.254 + +ping -c3 192.168.200.253 + +ping -c3 192.168.1.1 + +ping -c3 192.168.1.2 + +ping -c3 172.16.125.254 + +ping -c3 172.16.128.10 diff --git a/wireguard/r-ext/r-ext.ip b/wireguard/r-ext/r-ext.ip new file mode 100644 index 0000000..82ed3a5 --- /dev/null +++ b/wireguard/r-ext/r-ext.ip @@ -0,0 +1,36 @@ +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever +2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:03:d3:28 brd ff:ff:ff:ff:ff:ff + inet 192.168.99.13/24 brd 192.168.99.255 scope global enp0s3 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe03:d328/64 scope link + valid_lft forever preferred_lft forever +3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:63:40:ea brd ff:ff:ff:ff:ff:ff + inet 192.168.100.254/24 brd 192.168.100.255 scope global enp0s8 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe63:40ea/64 scope link + valid_lft forever preferred_lft forever +4: enp0s9: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:4f:29:27 brd ff:ff:ff:ff:ff:ff + inet 192.168.0.20/24 brd 192.168.0.255 scope global dynamic enp0s9 + valid_lft 77233sec preferred_lft 77233sec + inet6 fe80::a00:27ff:fe4f:2927/64 scope link + valid_lft forever preferred_lft forever +5: enp0s10: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:9d:16:f8 brd ff:ff:ff:ff:ff:ff + inet 192.168.1.1/24 brd 192.168.1.255 scope global enp0s10 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe9d:16f8/64 scope link + valid_lft forever preferred_lft forever +6: enp0s16: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:07:c1:0f brd ff:ff:ff:ff:ff:ff + inet 192.168.200.253/24 brd 192.168.200.255 scope global enp0s16 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe07:c10f/64 scope link + valid_lft forever preferred_lft forever diff --git a/wireguard/r-ext/r-ext.routes b/wireguard/r-ext/r-ext.routes new file mode 100644 index 0000000..b9b7d78 --- /dev/null +++ b/wireguard/r-ext/r-ext.routes @@ -0,0 +1,9 @@ +default via 192.168.0.1 dev enp0s9 +169.254.0.0/16 dev enp0s3 scope link metric 1000 +172.16.0.0/24 via 192.168.200.254 dev enp0s16 +172.16.128.0/24 via 192.168.1.2 dev enp0s10 +192.168.0.0/24 dev enp0s9 proto kernel scope link src 192.168.0.20 +192.168.1.0/24 dev enp0s10 proto kernel scope link src 192.168.1.1 +192.168.99.0/24 dev enp0s3 proto kernel scope link src 192.168.99.13 +192.168.100.0/24 dev enp0s8 proto kernel scope link src 192.168.100.254 +192.168.200.0/24 dev enp0s16 proto kernel scope link src 192.168.200.253 diff --git a/wireguard/r-int/r-int.ip b/wireguard/r-int/r-int.ip new file mode 100644 index 0000000..737fbc5 --- /dev/null +++ b/wireguard/r-int/r-int.ip @@ -0,0 +1,36 @@ +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever +2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:c9:4e:0b brd ff:ff:ff:ff:ff:ff + inet 192.168.99.12/24 brd 192.168.99.255 scope global enp0s3 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fec9:4e0b/64 scope link + valid_lft forever preferred_lft forever +3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:34:ef:8f brd ff:ff:ff:ff:ff:ff + inet 192.168.200.254/24 brd 192.168.200.255 scope global enp0s8 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe34:ef8f/64 scope link + valid_lft forever preferred_lft forever +4: enp0s9: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:56:72:01 brd ff:ff:ff:ff:ff:ff + inet 172.16.65.254/24 brd 172.16.65.255 scope global enp0s9 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe56:7201/64 scope link + valid_lft forever preferred_lft forever +5: enp0s10: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:7c:d7:5b brd ff:ff:ff:ff:ff:ff + inet 172.16.64.254/24 brd 172.16.64.255 scope global enp0s10 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fe7c:d75b/64 scope link + valid_lft forever preferred_lft forever +6: enp0s16: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:e6:59:3d brd ff:ff:ff:ff:ff:ff + inet 172.16.0.254/24 brd 172.16.0.255 scope global enp0s16 + valid_lft forever preferred_lft forever + inet6 fe80::a00:27ff:fee6:593d/64 scope link + valid_lft forever preferred_lft forever diff --git a/wireguard/r-int/r-int.routes b/wireguard/r-int/r-int.routes new file mode 100644 index 0000000..720ce08 --- /dev/null +++ b/wireguard/r-int/r-int.routes @@ -0,0 +1,7 @@ +default via 192.168.200.253 dev enp0s8 onlink +169.254.0.0/16 dev enp0s9 scope link metric 1000 +172.16.0.0/24 dev enp0s16 proto kernel scope link src 172.16.0.254 +172.16.64.0/24 dev enp0s10 proto kernel scope link src 172.16.64.254 +172.16.65.0/24 dev enp0s9 proto kernel scope link src 172.16.65.254 +192.168.99.0/24 dev enp0s3 proto kernel scope link src 192.168.99.12 +192.168.200.0/24 dev enp0s8 proto kernel scope link src 192.168.200.254 diff --git a/wireguard/r-vp1/r-vp1.ip b/wireguard/r-vp1/r-vp1.ip new file mode 100644 index 0000000..1e76fe4 --- /dev/null +++ b/wireguard/r-vp1/r-vp1.ip @@ -0,0 +1,20 @@ +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever +2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:53:62:8c brd ff:ff:ff:ff:ff:ff + inet 192.168.99.112/24 brd 192.168.99.255 scope global enp0s3 + valid_lft forever preferred_lft forever +3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:b0:5e:11 brd ff:ff:ff:ff:ff:ff + inet 192.168.1.2/24 brd 192.168.1.255 scope global enp0s8 + valid_lft forever preferred_lft forever +4: enp0s9: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:28:10:4c brd ff:ff:ff:ff:ff:ff + inet 192.168.0.51/24 brd 192.168.0.255 scope global enp0s9 + valid_lft forever preferred_lft forever +12: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000 + link/none + inet 10.0.0.1/32 scope global wg0 + valid_lft forever preferred_lft forever diff --git a/wireguard/r-vp1/r-vp1.routes b/wireguard/r-vp1/r-vp1.routes new file mode 100644 index 0000000..dc7cff3 --- /dev/null +++ b/wireguard/r-vp1/r-vp1.routes @@ -0,0 +1,8 @@ +10.0.0.2 dev wg0 scope link +169.254.0.0/16 dev enp0s3 scope link metric 1000 +172.16.0.0/24 via 192.168.1.1 dev enp0s8 +172.16.128.0/24 dev wg0 scope link +192.168.0.0/24 dev enp0s9 proto kernel scope link src 192.168.0.51 +192.168.1.0/24 dev enp0s8 proto kernel scope link src 192.168.1.2 +192.168.99.0/24 dev enp0s3 proto kernel scope link src 192.168.99.112 +192.168.200.0/24 via 192.168.1.1 dev enp0s8 diff --git a/wireguard/r-vp2/r-vp2.ip b/wireguard/r-vp2/r-vp2.ip new file mode 100644 index 0000000..90ee303 --- /dev/null +++ b/wireguard/r-vp2/r-vp2.ip @@ -0,0 +1,18 @@ +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever +2: enp0s3: mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 + link/ether 08:00:27:46:2b:0a brd ff:ff:ff:ff:ff:ff +3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:99:b7:7f brd ff:ff:ff:ff:ff:ff + inet 172.16.128.254/24 brd 172.16.128.255 scope global enp0s8 + valid_lft forever preferred_lft forever +4: enp0s9: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:34:71:77 brd ff:ff:ff:ff:ff:ff + inet 192.168.0.52/24 brd 192.168.0.255 scope global enp0s9 + valid_lft forever preferred_lft forever +7: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000 + link/none + inet 10.0.0.2/32 scope global wg0 + valid_lft forever preferred_lft forever diff --git a/wireguard/r-vp2/r-vp2.routes b/wireguard/r-vp2/r-vp2.routes new file mode 100644 index 0000000..80afa3f --- /dev/null +++ b/wireguard/r-vp2/r-vp2.routes @@ -0,0 +1,7 @@ +10.0.0.1 dev wg0 scope link +169.254.0.0/16 dev enp0s9 scope link metric 1000 +172.16.0.0/24 dev wg0 scope link +172.16.128.0/24 dev enp0s8 proto kernel scope link src 172.16.128.254 +192.168.0.0/24 dev enp0s9 proto kernel scope link src 192.168.0.52 +192.168.1.0/24 dev wg0 scope link +192.168.200.0/24 dev wg0 scope link diff --git a/wireguard/s-infra/s-infra.ip b/wireguard/s-infra/s-infra.ip new file mode 100644 index 0000000..4e7304a --- /dev/null +++ b/wireguard/s-infra/s-infra.ip @@ -0,0 +1,12 @@ +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever +2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:4a:25:54 brd ff:ff:ff:ff:ff:ff + inet 192.168.99.1/24 brd 192.168.99.255 scope global enp0s3 + valid_lft forever preferred_lft forever +3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 + link/ether 08:00:27:ee:b4:01 brd ff:ff:ff:ff:ff:ff + inet 172.16.0.1/24 brd 172.16.0.255 scope global enp0s8 + valid_lft forever preferred_lft forever diff --git a/wireguard/s-infra/s-infra.routes b/wireguard/s-infra/s-infra.routes new file mode 100644 index 0000000..eccc16d --- /dev/null +++ b/wireguard/s-infra/s-infra.routes @@ -0,0 +1,7 @@ +default via 192.168.99.99 dev enp0s3 onlink +169.254.0.0/16 dev enp0s3 scope link metric 1000 +172.16.0.0/24 dev enp0s8 proto kernel scope link src 172.16.0.1 +172.16.64.0/24 via 172.16.0.254 dev enp0s8 +172.16.128.0/24 via 172.16.0.254 dev enp0s8 +192.168.0.0/16 via 172.16.0.254 dev enp0s8 +192.168.99.0/24 dev enp0s3 proto kernel scope link src 192.168.99.1