diff options
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 } } |