From owner-freebsd-stable Sat May 26 18:35:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from VL-MS-MR002.sc1.videotron.ca (relais.videotron.ca [24.201.245.36]) by hub.freebsd.org (Postfix) with ESMTP id 1BBC437B422 for ; Sat, 26 May 2001 18:35:21 -0700 (PDT) (envelope-from leclercn@videotron.ca) Received: from atom.quanta.ca ([24.201.45.238]) by VL-MS-MR002.sc1.videotron.ca (Netscape Messaging Server 4.15) with ESMTP id GDZ0EW00.VB8 for ; Sat, 26 May 2001 21:35:20 -0400 Received: from videotron.ca ([192.168.56.40]) by atom.quanta.ca (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id f4R1ZP1l013428 for ; Sat, 26 May 2001 21:35:25 -0400 (EDT) Message-ID: <3B1059DD.8090505@videotron.ca> Date: Sat, 26 May 2001 21:35:25 -0400 From: Normand Leclerc User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: ip_divert blues (was natd blues) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I recently posted help on a slowdown problem when using natd. I found out that ipfilter (ipnat) is doing the very same thing: slowdown. I trimed down the kernel to almost nothing, I removed a network adapter I didn't need; in brief, I did everything I could think of ... nothing has changed. My cable modem is as slow as an ADSL. I have two rules in my firewall when using natd: - 100 divert natd all from any to any via rl0 - 200 pass all from any to any On the nat machine, I start a transfer with my ISP's ftp server to be able to reach maximum transfer speed. I get something like 50k/s. On the fly, I add a third rule: 50 pass all from any to any. Suddently, my transfer rate goes up to nearly 170k/s. I removed all IPv6 options, all IP stuff I didn't need for nat. I removed all comm ports, parallel ports to free irqs. I removed all my NFS options (kept NFS server active). I just don't know what is that slowdown! With 3.4 I didn't have this problem. I am seriously thinking about reinstalling a 3.4 kernel on this machine. The nat machine is a P90 with 32megs of ram. It has a 3com 3B905BTX and a cheaper nic connected to the cable modem (realtek). Ideas? Has the IP divertion become that slow? Normand Leclerc leclercn@videotron.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message