Update systems/LoutreOS/configuration.nix

This commit is contained in:
nyanloutre 2024-05-14 22:51:08 +02:00
parent a1d16f1e76
commit ff415c980c
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@
iptables -t nat -D PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1 || true iptables -t nat -D PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1 || true
iptables -t nat -A PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1 iptables -t nat -A PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1
''; '';
# remove refs to nixos-fw-log-refuse before restarting firewall
# prevents "ressource busy" errors
extraStopCommands = '' extraStopCommands = ''
ip6tables -D loutreos-forward -j nixos-fw-log-refuse 2>/dev/null || true ip6tables -D loutreos-forward -j nixos-fw-log-refuse 2>/dev/null || true
''; '';