From owner-freebsd-questions@freebsd.org Tue Feb 27 04:23:46 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 504C7F1EEE0 for ; Tue, 27 Feb 2018 04:23:46 +0000 (UTC) (envelope-from srs0=4s7g=fv=sigsegv.be=kristof@codepro.be) 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 BAADB80820 for ; Tue, 27 Feb 2018 04:23:45 +0000 (UTC) (envelope-from srs0=4s7g=fv=sigsegv.be=kristof@codepro.be) Received: from [220.247.151.153] (153.151.dhcp.conference.apricot.net [220.247.151.153]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 4EEDF28673; Tue, 27 Feb 2018 05:23:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1519705424; bh=AazjycNnd+HMXB85JKV7PSAY0BiL729NVXqy7TyxQiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=M9hIx9sXMzerxOoV5JEtoDx5D7ePC7UGqSCt3ppdbnSQwcUronpaiMyd3lEQmI0a/ M1iCTy2jX7k0o8qN+VQtwemCRQq1wTeqz5IkqXWrDJHeHYLTtG9vtKiWcCHVEUiNar MszDD1vSfugU+2z2TYtCP5TYUDEEXQUFZWFkGyOU= From: "Kristof Provost" To: "Peter Ludikovsky" Cc: freebsd-questions@freebsd.org Subject: Re: UDP connections from NAT'ed jails Date: Tue, 27 Feb 2018 10:08:39 +0545 X-Mailer: MailMate (2.0BETAr6103) Message-ID: <18932E8F-0FA3-4C0C-A507-3FB9AF9B8367@sigsegv.be> In-Reply-To: <6ADC216F-CD1E-4AFA-8E57-01E928BC2776@ludikovsky.name> References: <8B3177FE-1FE5-4455-8F3C-CB5CE664B8C1@ludikovsky.name> <6ADC216F-CD1E-4AFA-8E57-01E928BC2776@ludikovsky.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 04:23:46 -0000 On 26 Feb 2018, at 20:20, Peter Ludikovsky wrote: > With the adapdation on the VM: > > [peter@doctor ~]$ sudo service pf reload > Reloading pf rules. > [peter@doctor ~]$ cat /etc/pf.conf > IP_PUB="10.0.2.15" > IP_JAIL="192.168.5.2" > NET_JAIL="192.168.5.0/24" > scrub in all > #set skip on lo > nat pass on em0 from $NET_JAIL to any -> $IP_PUB > pass out keep state > [peter@doctor ~]$ sudo pfctl -sn > nat pass on em0 inet from 192.168.5.0/24 to any -> 10.0.2.15 > [peter@doctor ~]$ host pkg.freebsd.org > pkg.freebsd.org is an alias for pkgmir.geo.freebsd.org. > pkgmir.geo.freebsd.org has address 149.20.1.201 > pkgmir.geo.freebsd.org has IPv6 address 2001:4f8:1:11::50:1 > > No change in the jail. > > tcpdump on the host shows resolution happening for the jail-host, but > nothing for the jail itself. > So you don’t see any UDP/DNS packets at all when the jail tries to resolve a hostname? That’s certainly odd. Does `truss host google.com` in the jail show anything interesting? Regards, Kristof From owner-freebsd-questions@freebsd.org Tue Feb 27 05:23:48 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59CAAF25D34 for ; Tue, 27 Feb 2018 05:23:48 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D945782D40 for ; Tue, 27 Feb 2018 05:23:47 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 12794 invoked from network); 27 Feb 2018 05:23:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=31f8.5a94eb63.k1802; bh=dLco6+O5/jr6KiD0erLSFiY/48RVOnQkdrQEkqf41AY=; b=UUOponu+NaQBT0PSCpoIV4Id03IfAW4Ix2hZZfIfiTlx5VQssx/ogk4RyHWpXNoE6wIKOsS2bWQ1iwK4R4M90m40IvkySlrp+4iEu7eHth5J18ns8wDPlnkiI3G21eO2V8T5d/p/Zh6zt7iT82T9D97Rdt+JByJkxOSiS8UrDXlFzZwcHkxa/n069pJbKkG0dOyCVumRdf/Z5UGFddIPxyMXz4cjfveBY/oTsAe1Y44+Gl4L7ObwgLAPIEreqlHG Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTP via TCP6; 27 Feb 2018 05:23:46 -0000 Received: by ary.qy (Postfix, from userid 501) id B49171D9E572; Tue, 27 Feb 2018 00:23:46 -0500 (EST) Date: 27 Feb 2018 00:23:46 -0500 Message-Id: <20180227052346.B49171D9E572@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: freebsd@edvax.de Subject: Re: Compiling Swap space In-Reply-To: <20180227040015.7d2fb579.freebsd@edvax.de> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 05:23:48 -0000 In article <20180227040015.7d2fb579.freebsd@edvax.de> you write: >On Mon, 26 Feb 2018 19:46:34 -0700, The Doctor wrote: >> I notice the default swap is 4G. >> >> How can that be increased to 32G or 64G? > >By repartitioning your drive. You can also use mdconfig to make an md device backed by a file and swap on that. That's slower than a swap partition since it has to find the blocks using the filesystem, but you don't have to repartition, just make a big file for it to swap to.