VPC : VMs may access this static nat ip

This commit is contained in:
anthony 2012-07-09 09:53:52 -07:00
parent 993852c5df
commit 94e26a00f4
1 changed files with 1 additions and 1 deletions

View File

@ -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 \