From owner-freebsd-net@freebsd.org Sun Oct 25 17:12:14 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D62DF8404 for ; Sun, 25 Oct 2015 17:12:14 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 991511C2C for ; Sun, 25 Oct 2015 17:12:14 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [IPv6:2a02:1811:2419:4e02:f98e:1278:f825:1dc6] (unknown [IPv6:2a02:1811:2419:4e02:f98e:1278:f825:1dc6]) by venus.codepro.be (Postfix) with ESMTPSA id D9FB0225EF; Sun, 25 Oct 2015 18:12:11 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Jail - PF - NAT - Network Performance From: Kristof Provost In-Reply-To: Date: Sun, 25 Oct 2015 18:12:10 +0100 Cc: "freebsd-net@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: James Lodge X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2015 17:12:14 -0000 > On 25 Oct 2015, at 17:46, James Lodge wrote: > I currently have a FreeBSD 10.1 host running on Digital Ocean. I have = multiple jails and I'm not using vimage. >=20 >=20 > I'm using PF on the host to NAT traffic from said jails and all is = working as expected. I have a jail running OpenVPN and clients can = connect and traffic is routed to the Internet down the tunnel via = PF/NAT. The issue I'm seeing is download speeds to the client from the = Internet on the external side on PF. Upload always seem reasonable, but = download is always woeful. I'm using a Windows machine as the client if = that make any odds. >=20 Yeah, there=E2=80=99s an issue with checksums and pf/Xen.=20 Disabling TSO should work for you (sudo sysctl net.inet.tcp.tso=3D0), = and the problem should be completely fixed in the next release (10.3 or = 11.0) Regards, Kristof=