mirror of https://github.com/apache/cloudstack.git
VPC : do not set mark for static nat
This commit is contained in:
parent
e0fec2ef22
commit
0f3f69f095
|
|
@ -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=$?
|
||||
|
|
|
|||
Loading…
Reference in New Issue