Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2010 13:42:27 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        Randy Bush <randy@psg.com>
Cc:        freebsd-current Current <freebsd-current@freebsd.org>
Subject:   Re: significantly slow IPFW + NATD + amd64 
Message-ID:  <4D932B42-A1EB-423A-A0D3-9BC05D4C8F3F@lassitu.de>
In-Reply-To: <m2wrqzgmeb.wl%randy@psg.com>
References:  <4C84A44D.90403@3mail4.co.uk> <4C825094.5040204@secover.com.br> <20100905155311.GA48095@onelab2.iet.unipi.it> <4C84364D.9070700@DataIX.net> <E1OsXO0-00017U-Fa@clue.co.za> <m2wrqzgmeb.wl%randy@psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stb@lassitu.de>   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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D932B42-A1EB-423A-A0D3-9BC05D4C8F3F>