From owner-freebsd-questions@FreeBSD.ORG Sun Jun 3 14:27:24 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0F471065673 for ; Sun, 3 Jun 2012 14:27:24 +0000 (UTC) (envelope-from v.velox@vvelox.net) Received: from vulpes.vvelox.net (vulpes.vvelox.net [99.69.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8E8368FC15 for ; Sun, 3 Jun 2012 14:27:24 +0000 (UTC) Received: from vixen42.vulpes.vvelox.net (vixen42.vulpes.vvelox.net [192.168.15.2]) (Authenticated sender: kitsune) by vulpes.vvelox.net (Postfix) with ESMTPA id D48473F62E for ; Sun, 3 Jun 2012 09:28:45 -0500 (CDT) Date: Sun, 3 Jun 2012 09:29:17 -0500 From: "Zane C. B-H." To: freebsd-questions@freebsd.org Message-ID: <20120603092917.65c68e7a@vixen42.vulpes.vvelox.net> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: vpn speed loss X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 14:27:24 -0000 On Fri, 1 Jun 2012 11:48:45 +0200 Beni Brinckman wrote: > Hi, > > I'm running FreeBSD 9.0-RELEASE (pc-bsd 9.0 actuallly) on amd64 and > I'm using a vpn connexion. > My problem is the enormous speed loss i'm having when I'm using the > vpn connexion. > I have tried Openvpn and mpd5 (with a pptp and l2pt connexion) and > the max speed (according to various speedtests) is 5 to 6MB. > Without the vpn I'm having 45-50 MB... My vpn service has servers in > several European countries and US, Canada, etc. The speed stays the > same. > So I don't think it is a specific bsd problem but the > lines/connexion between ISP's. > Is this the "normal" speed when using a vpn (independently of the > used program to connect) ? Because from 45-50 back to 5-6 is a big > step backward... > Thanks for any insights here. With OpenVPN, you should not be seeing that big of a drop, with the real limiting factor being the CPU time available for it. You can easily check top and see if that is the case. If you get 45-50MBps between the two locations with out VPN, baring any firewall issues at either end, it is likely a configuration issue in regards to the networking of the machines in question or the VPN software or a CPU resource issue. One of the first areas I would check is the MTU being used on the network interfaces, figure out what the max MTU for the path is, and make sure the VPN software is not sending packets larger than that. You may also want to take a look at tuning(7).