VPC : do not set mark for static nat

This commit is contained in:
anthony 2012-07-06 16:11:05 -07:00
parent e0fec2ef22
commit 0f3f69f095
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ static_nat() {
(sudo iptables -t nat $op PREROUTING -i $ethDev -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 \
--set-mark $tableNo &> $OUTFILE || [ "$op" == "-D" ]) &&
#(sudo iptables -t mangle $op PREROUTING -s $instIp -j MARK \
# --set-mark $tableNo &> $OUTFILE || [ "$op" == "-D" ]) &&
(sudo iptables -t nat $op2 POSTROUTING -o $ethDev -s $instIp -j SNAT \
--to-source $publicIp &>> $OUTFILE )
result=$?