remove PREROUTING rule first to prevent already existing rule error
This commit is contained in:
parent
50ee8138ea
commit
c3f141ae24
@ -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
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user