From: Denys Fedoryshchenko <denys@visp.net.lb>
To: netdev@vger.kernel.org
Cc: netfilter-devel@vger.kernel.org
Subject: REDIRECT in nat OUTPUT
Date: Sat, 12 Jul 2008 04:24:56 +0300 [thread overview]
Message-ID: <200807120424.56462.denys@visp.net.lb> (raw)
I notice TX performance issues while using REDIRECT rule in -t nat -I OUTPUT chain.
To reproduce:
First let's test network and HDD speed
homecore ~ # scp PSA_schematique_07H.iso root@127.0.0.1:/tmp
PSA_schematique_07H.iso 7% 335MB 25.7MB/s 02:39 ETA
^C
Killed by signal 2. (i kill it)
Second let's do the trick
iptables -t nat -I OUTPUT -p tcp --dport 23 -j REDIRECT --to-ports 22
scp -P 23 PSA_schematique_07H.iso root@anyhost:/tmp
PSA_schematique_07H.iso 0% 8728KB 121.3KB/s 10:22:05 ETA
^C
Killed by signal 2.
Always all rules with REDIRECT to local port is dropping speed around 100Kbyte/s. What can be the problem?
--
------
Technical Manager
Virtual ISP S.A.L.
Lebanon
next reply other threads:[~2008-07-12 1:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-12 1:24 Denys Fedoryshchenko [this message]
2008-07-12 6:28 ` REDIRECT in nat OUTPUT Evgeniy Polyakov
2008-07-12 13:55 ` Denys Fedoryshchenko
2008-07-12 14:40 ` Denys Fedoryshchenko
2008-07-13 14:09 ` Evgeniy Polyakov
2008-07-13 14:19 ` Denys Fedoryshchenko
2008-07-13 14:59 ` Krzysztof Oledzki
2008-07-13 15:12 ` Denys Fedoryshchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807120424.56462.denys@visp.net.lb \
--to=denys@visp.net.lb \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).