Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 10:08:39 +0545
From:      "Kristof Provost" <kristof@sigsegv.be>
To:        "Peter Ludikovsky" <peter@ludikovsky.name>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: UDP connections from NAT'ed jails
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> <CB81FE3C-CA97-43DF-85D0-8C271C96DB9C@sigsegv.be> <6ADC216F-CD1E-4AFA-8E57-01E928BC2776@ludikovsky.name>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-questions@freebsd.org>
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 <freebsd-questions@mailman.ysv.freebsd.org>;
 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 <freebsd-questions@freebsd.org>; 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" <johnl@iecc.com>
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 <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18932E8F-0FA3-4C0C-A507-3FB9AF9B8367>