fix server access when fiber down

This commit is contained in:
nyanloutre 2024-02-22 11:10:45 +01:00
parent 27f34a48f2
commit 2b2077d46a
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@
ip6tables -A loutreos-forward -j ACCEPT -i eno2
ip6tables -A loutreos-forward -j nixos-fw-log-refuse
ip6tables -w -A FORWARD -j loutreos-forward
# Redirect local network request from server external IP to internal IP
# Make the server available even without internet access
iptables -t nat -A PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1
'';
};
};