From owner-freebsd-stable Mon Jan 1 15: 4: 1 2001 From owner-freebsd-stable@FreeBSD.ORG Mon Jan 1 15:03:58 2001 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from www.golsyd.net.au (ftp.golsyd.net.au [203.57.20.1]) by hub.freebsd.org (Postfix) with ESMTP id CFCCD37B400 for ; Mon, 1 Jan 2001 15:03:57 -0800 (PST) Received: from [203.164.12.28] by www.quake.com.au (NTMail 4.30.0012/AH9370.63.d1acf55c) with ESMTP id wjmsaaaa for ; Tue, 2 Jan 2001 10:12:00 +1100 Message-ID: <3A510D08.B3A3042@quake.com.au> Date: Tue, 02 Jan 2001 10:04:40 +1100 From: Kal Torak X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Cc: stable@FreeBSD.ORG Subject: Re: slow NAT ? References: <4.2.2.20001231124602.01d21878@marble.sentex.net> <4.2.2.20010101084935.01e47880@marble.sentex.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Tancsa wrote: > > At 12:25 PM 1/1/2001 +0200, Roman Shterenzon wrote: > >On Sun, 31 Dec 2000, Mike Tancsa wrote: > > > > > > > > I upgraded my home firewall today to sources as of last night and noticed > > > that traffic via NAT is rather slow. For example, an ftp from a machine > > > being nat'd I guess about 300Kbps. From the FreeBSD box, I get about 1Mb > > > on my DSL connection. If I use squid or a proper proxy, its not an > > > issue. This is both with the built in NAT on PPP and NATD by itself. Any > > > ideas as to how to track this down ? > > > 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Dec 30 09:37:21 EST 2000 > > > Its only a CPU: Pentium/P55C (167.05-MHz 586-class CPU) with 96M of RAM. > > > >Was it that slow before the upgrade? > >As a workaround you can use ipnat which performs NAT in kernel-space > >rather than in user-space (as libalias does). > > It was somewhat slower, but not this bad. However, I dont have any > benchmarks from before to measure the difference. I will try IPNAT to see > if that helps at all. It seems strange to me that it would be going noticeably slower... I mean sure its going to slow it down a little, but so is every other sharing type program... I use NATd on a P166 with 34mb ram and NetGear 10/100 cards, If anything its no different speeds from any other method, I have a max downstream of 400kbs which I achieve to most places most of the time... Basically NATd dosent seem to effect the speed much at all... I am using 4.0 but if anything NATd should be better in 4.2 so it seems strange, maybe there is a problem some place else? Good Luck! Kal. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message