mirror of https://github.com/apache/cloudstack.git
VPC : VMs may access this static nat ip
This commit is contained in:
parent
993852c5df
commit
94e26a00f4
|
|
@ -46,7 +46,7 @@ static_nat() {
|
|||
|
||||
# shortcircuit the process if error and it is an append operation
|
||||
# continue if it is delete
|
||||
(sudo iptables -t nat $op PREROUTING -i $ethDev -d $publicIp -j DNAT \
|
||||
(sudo iptables -t nat $op PREROUTING -d $publicIp -j DNAT \
|
||||
--to-destination $instIp &>> $OUTFILE || [ "$op" == "-D" ]) &&
|
||||
# add mark to force the package go out through the eth the public IP is on
|
||||
#(sudo iptables -t mangle $op PREROUTING -s $instIp -j MARK \
|
||||
|
|
|
|||
Loading…
Reference in New Issue