From owner-freebsd-questions@freebsd.org Mon Feb 26 14:35:09 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 08C3CF2929F for ; Mon, 26 Feb 2018 14:35:09 +0000 (UTC) (envelope-from peter@ludikovsky.name) Received: from ludikovsky.name (ludikovsky.name [158.255.212.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 750C877C41 for ; Mon, 26 Feb 2018 14:35:08 +0000 (UTC) (envelope-from peter@ludikovsky.name) Received: from [10.1.13.160] (unknown [85.193.140.104]) by ludikovsky.name (Postfix) with ESMTPSA id 78ADC458A for ; Mon, 26 Feb 2018 14:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ludikovsky.name; s=mail; t=1519655706; bh=l+ez1lTC+7/q3EsxyrJByvvgR/GaTVrrv665m1Q7Np4=; h=Date:In-Reply-To:References:Subject:To:From:From; b=Z8PRdB6HuV6c5uAAlMpH3ToALEIL/ixd8eSZmHf7EvQ+Koj4fRyjaDRra7tnbpgA4 I9S4tuQXm9mQXtFliyk0aAQbkeWktWWutuTz17zOhts1378sgCv6XaheZgiIYAlwsp BOTuTIXizwDodEt7zc13fJCfOayNR5fJ4CzDjAb8= Date: Mon, 26 Feb 2018 15:35:08 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <8B3177FE-1FE5-4455-8F3C-CB5CE664B8C1@ludikovsky.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=peter@ludikovsky.name; keydata=mQINBFNfuq4BEAC/hp9TgsaqRR+Vj 0W1y8NEkaPanVMShqqL1vIfaqrVkGj14faOe+uY4QhkhIwc3Vhm7eJ+z5Gn253TzZTf9Kib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BEBAAGJAiUEGAECAA8CGwwFAlfO2qgFCQlnV3oACgkQz7o2Dmlu3JkCPA//TF8xfQenM4usl1Swc Gn9LZL1y7GFtpvg6wDZh8JC5ZR2a8WRMrw5XD3jEWk2TcXcg3g/nlncuGaSlWflrqcRqzQ2dooHu Cn56FyqBOzxOe0AqWSO8YdX3fcvohgY2JmceKwRVBczRlcxeJWn+J9YSzHsTebc3+6t6vcrV5ERS t8+oXFj4IDNm6UuO/nLblpjbI5S2h47rvavngWDw9OBy9IsdvT33NXI36WQsppqCfxQL3W5S+xsD Pw3FklAPN4O1cgOdoTT4jxP1P+mgjIRZsjccSu4Egt32+uum5rMaPEKeNJTE6HN1Sqi+Csa8/NIB axBD9pFHYpACQ5nGnZSFtdqhzRMs/7YMBYCNRNX20AG1+k5XjmaSJ4GGf6mm0GKA5ReEs2Nuqb/C Ge1qXaHQuXvM0yipW8bK490uFTs2FkT6ssLL4iIJCG1hUTtCvkXfdto1+dB+ykqsIVoKt2/aO3DU AB3zYInnLXIP0zKFTI4/NykTMq0SGD4eIabOJIQp8+EpgP0YW6dSSrYcDkb1NUQpOZ4kWwRkI14x tMb7pfdtquqw0r1Sj2gxm6EO7JeXqdaeTROVjjaX0ydt/wRT3/aGI9hR7ZE93RZ30BfNuUqrvRcQ FQS+n4f5X930k/ptRG28fvsLZrn7h6DvV6QeYwUWp2PDI8x9t83vxbrghw= Subject: Re: UDP connections from NAT'ed jails To: freebsd-questions@freebsd.org From: Peter Ludikovsky Message-ID: <6ADC216F-CD1E-4AFA-8E57-01E928BC2776@ludikovsky.name> 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: Mon, 26 Feb 2018 14:35:09 -0000 Hi, With the adapdation on the VM: [peter@doctor ~]$ sudo service pf reload Reloading pf rules=2E [peter@doctor ~]$ cat /etc/pf=2Econf=20 IP_PUB=3D"10=2E0=2E2=2E15" IP_JAIL=3D"192=2E168=2E5=2E2" NET_JAIL=3D"192=2E168=2E5=2E0/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=2E168=2E5=2E0/24 to any -> 10=2E0=2E2=2E= 15 [peter@doctor ~]$ host pkg=2Efreebsd=2Eorg pkg=2Efreebsd=2Eorg is an alias for pkgmir=2Egeo=2Efreebsd=2Eorg=2E pkgmir=2Egeo=2Efreebsd=2Eorg has address 149=2E20=2E1=2E201 pkgmir=2Egeo=2Efreebsd=2Eorg has IPv6 address 2001:4f8:1:11::50:1 No change in the jail=2E tcpdump on the host shows resolution happening for the jail-host, but nothing for the jail itself=2E Regards, /peter Am 26=2E Februar 2018 13:58:23 MEZ schrieb Kristof Provost : >On 26 Feb 2018, at 18:11, Peter Ludikovsky wrote: >> I'm experimenting with jails in preparation for moving my home server >> from Linux to FreeBSD=2E I'm doing this from within a VirtualBox VM,=20 >> since >> it's easier to revert to a previous state in case I break something=2E >> >> My biggest issue ATM is that my first jail can't resolve any host=2E >TCP >> and ICMP packets pass without issue, but DNS requests time out=2E I >> checked with tcpdump on both the outside interface of the VM and of=20 >> the >> host, neither show any DNS requests=2E Both hosts use 9=2E9=2E9=2E10 as= the=20 >> DNS >> server in /etc/resolv=2Econf=2E >> >=E2=80=A6 >> Anyone got a pointer on what's going wrong here? >> >Hmm=2E That=E2=80=99s interesting=2E Can you tcpdump on the host to see w= hat=E2=80=99s=20 >going on with your DNS packets? > >Also, I=E2=80=99d try to remove the =E2=80=98set skip on lo=E2=80=99 pf r= ule=2E > >Regards, >Kristof >_______________________________________________ >freebsd-questions@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd=2Eorg"