diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-28 22:17:16 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-28 22:17:16 +0100 |
commit | 98036067f4a7defebd89b7187de8c4c53776f6b7 (patch) | |
tree | 05b72f5d5d35067e443b8a6eda680367ac585681 /roles/space_server | |
parent | f74e8bb74c698a586499568ed578b8966c49bfc5 (diff) | |
download | labitat-ansible-98036067f4a7defebd89b7187de8c4c53776f6b7.tar.gz labitat-ansible-98036067f4a7defebd89b7187de8c4c53776f6b7.tar.xz labitat-ansible-98036067f4a7defebd89b7187de8c4c53776f6b7.zip |
space_server: nat Labitat free from 185.38.175.1
Diffstat (limited to 'roles/space_server')
-rw-r--r-- | roles/space_server/files/networkd/10-lo.network | 1 | ||||
-rw-r--r-- | roles/space_server/files/nftables.conf | 2 |
2 files changed, 3 insertions, 0 deletions
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 } } |