From owner-freebsd-current@FreeBSD.ORG Mon Sep 6 11:42:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D3A010656BF for ; Mon, 6 Sep 2010 11:42:30 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id E55778FC1F for ; Mon, 6 Sep 2010 11:42:29 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 389A69D633; Mon, 6 Sep 2010 11:42:28 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: Date: Mon, 6 Sep 2010 13:42:27 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4D932B42-A1EB-423A-A0D3-9BC05D4C8F3F@lassitu.de> References: <4C84A44D.90403@3mail4.co.uk> <4C825094.5040204@secover.com.br> <20100905155311.GA48095@onelab2.iet.unipi.it> <4C84364D.9070700@DataIX.net> To: Randy Bush X-Mailer: Apple Mail (2.1081) Cc: freebsd-current Current Subject: Re: significantly slow IPFW + NATD + amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 11:42:30 -0000 Am 06.09.2010 um 13:08 schrieb Randy Bush: > i never managed to figure out how to convert my pppoe nat config to = ipfw > natting. I did not see a significant improvement going from ppp(8)+9 and ipfw to = ppp(8) and pf+nat. Since ppp(8) already incurs the kernel/userland cost, = having it handle NAT on top does not increase latency. I've recently switched to mpd (and pf), and things "feel" snappier. I = haven't benchmarked it though, and my router box is rather oversized for = the task anyway (C2D). Friends using a Soekris swear that it helps a = lot though. The switchover is fairly painless, and the excellent mpd manual helps a = lot. Using one of the many examples, I managed to set up the mpd.conf = rather quickly; the only real adaptation was in the up and down scripts = I was using (my ISP kicks the connection every 24 hours, and I get a new = IP, so I like to bounce a couple of things when the connection comes up = again.) Stefan --=20 Stefan Bethke Fon +49 151 14070811 mpd.conf: # # Default configuration is "dialup" default: load hansenet hansenet: # # PPPoE client: only outgoing calls, auto reconnect, # ipcp-negotiated address, one-sided authentication, # default route points on ISP's end # create bundle static hansenet #set bundle yes ipv6cp set iface route default set iface up-script /etc/ppp/hansenet.up set iface down-script /etc/ppp/hansenet.down set iface enable tcpmssfix create link static hansenet pppoe set pppoe iface vlan2 set pppoe service "" set link action bundle hansenet set link max-redial 0 set link keep-alive 10 60 set auth authname 04012345678 #set auth password MyPass set ipcp ranges 0.0.0.0/0 0.0.0.0/0 =09 open My old ppp.conf: hansenet: set device PPPoE:vlan2: set mru 1492 set mtu 1492 set speed sync enable lqr enable echo set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname 04012345678 add default HISADDR