From 05164bf495aa9db539d21152415bc1cff55b4479 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 8 Mar 2013 00:37:53 +0300 Subject: [PATCH] ip4tables-forward fix (single connection limit) --- .rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rc b/.rc index d588b00..83c9a8d 100644 --- a/.rc +++ b/.rc @@ -198,7 +198,7 @@ function ip4tables-fwd() { echo "To forward <$SRC_HOST> port <$SRC_PORT> to <$DST_HOST> port <$DST_PORT>: iptables -t nat -A PREROUTING -p tcp --dport $SRC_PORT -j DNAT --to-destination $DST_HOST:$DST_PORT -iptables -t nat -A POSTROUTING -p tcp --dport $DST_PORT -j SNAT --to-source $SRC_HOST:$SRC_PORT +iptables -t nat -A POSTROUTING -p tcp --dport $DST_PORT -j SNAT --to-source $SRC_HOST " }