remove PREROUTING rule first to prevent already existing rule error

This commit is contained in:
nyanloutre 2024-02-22 13:33:11 +01:00
parent 50ee8138ea
commit c3f141ae24
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@
# Redirect local network request from server external IP to internal IP
# Make the server available even without internet access
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
'';
};