From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denys Fedoryshchenko Subject: REDIRECT in nat OUTPUT Date: Sat, 12 Jul 2008 04:24:56 +0300 Message-ID: <200807120424.56462.denys@visp.net.lb> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: netdev@vger.kernel.org Return-path: Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org 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