remove PREROUTING rule first to prevent already existing rule error
This commit is contained in:
parent
50ee8138ea
commit
c3f141ae24
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue