From 98036067f4a7defebd89b7187de8c4c53776f6b7 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Wed, 28 Nov 2018 22:17:16 +0100 Subject: space_server: nat Labitat free from 185.38.175.1 --- roles/space_server/files/networkd/10-lo.network | 1 + roles/space_server/files/nftables.conf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/space_server/files/networkd/10-lo.network b/roles/space_server/files/networkd/10-lo.network index 9b89210..6457f55 100644 --- a/roles/space_server/files/networkd/10-lo.network +++ b/roles/space_server/files/networkd/10-lo.network @@ -3,6 +3,7 @@ Name=lo [Network] Address=185.38.175.0/32 +Address=185.38.175.1/32 Address=2a01:4262:1ab::/128 [Route] diff --git a/roles/space_server/files/nftables.conf b/roles/space_server/files/nftables.conf index 4bd4f5b..88e24f1 100644 --- a/roles/space_server/files/nftables.conf +++ b/roles/space_server/files/nftables.conf @@ -29,6 +29,7 @@ define priv_net6 = 2a01:4262:1ab:c::/64 define free_if = lan13 define free_ip4 = 10.42.3.1 +define free_nat = 185.38.175.1 define free_net4 = 10.42.3.0/24 define free_net6 = 2a01:4262:1ab:d::/64 @@ -198,6 +199,7 @@ table ip nat { chain postrouting { type nat hook postrouting priority -150; + oif $ext_if ip saddr $free_net4 snat $free_nat oif $ext_if ip saddr $int_net4 snat $ext_ip4 } } -- cgit v1.2.1