Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2012 09:59:30 +0200
From:      =?UTF-8?Q?Kalle_M=C3=B8ller?= <freebsd-questions@k-moeller.dk>
To:        "Herbert J. Skuhra" <h.skuhra@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Jails on FreeBSD 9.0
Message-ID:  <CAMaK76HJfvVpn8qURDoUbBVKsowgrqmO7Nv=VXrtU0Yq4VbohA@mail.gmail.com>
In-Reply-To: <CADfJ1Pa1dpZ5StTTrG=8KVnFNzUuK58MhLXrg4prAqq4cKLK2g@mail.gmail.com>
References:  <87fw8yariq.wl%h.skuhra@gmail.com> <CADfJ1PYDaJ-ogJq8ewvzLk3sCjqrE0bw36grVSAn2_16dZHDhw@mail.gmail.com> <CAPd55qAiWO5eQ=KkweuWir%2BgD4C1LSSbiky2VgZwiDpwwUyJaw@mail.gmail.com> <CADfJ1Pa1dpZ5StTTrG=8KVnFNzUuK58MhLXrg4prAqq4cKLK2g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 12, 2012 at 9:04 PM, Herbert J. Skuhra <h.skuhra@gmail.com> wro=
te:
> On Thu, Jul 12, 2012 at 11:56 AM, joris dedieu <joris.dedieu@gmail.com> w=
rote:
>> 2012/7/12 Herbert J. Skuhra <h.skuhra@gmail.com>:
>>> On Wed, Jul 11, 2012 at 11:59 PM, Herbert J. Skuhra <h.skuhra@gmail.com=
> wrote:
>>>> Hi,
>>>>
>>>> although I've followed the instructions in jail(8) and jail.conf(5) I
>>>> cannot manage to setup jails on FreeBSD 9.0 STABLE (r238334).
>>>>
>>>> The symptons:
>>>>
>>>> * ssh'ing to jail works, but it takes about 20 seconds until password
>>>>   prompt appears
>>
>> Does it still the same with UseDNS=3Dno in /etc/ssh/sshd_config ?
>
> No, I can login instantly.
>
>>>> * netstat -r in the jail takes about 150 seconds to finish
>>
>> Does netstat -rn does the same ?
>
> No, the output appears immediately.
>
>>>> * connections to the internet time out; with tcpdump I see that
>>>>   packets leave and enter the public interface on the host, but never
>>>>   reach the jail
>>>>
>>>> I use lo1 interface and ip address 192.168.1.1/24 for the jail. Public
>>>> interface is fxp0 with both an IPv4 and an IPv6 address assigned.
>>>> Of course, nat is enable via pf on the public interface.
>>
>> Can you post your PF configuration ?
>>>
>>> After switching to ipfw/natd networking in the jail works.
>>> Could this be a bug?
>>
>> I think you had an issue with firewall that block name resolution and
>> makes everything goes slow. At least you need one single line on your
>> pf.conf :
>>
>> nat on $public_interface form $jail_ip to any -> ($public_interface)
>
> Even when loading only the nat rule it doesn't work:
>
> nat on fxp0 from  192.168.1.0/24 to any -> $ext_addr
>
> Thanks.
> Herbert
> _______________________________________________
> freebsd-jail@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"


As Mark Felder wrote

You don't have anything in /etc/resolv.conf, in the jail do you? :-)

--=20

Med Venlig Hilsen

Kalle R. M=C3=B8ller



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMaK76HJfvVpn8qURDoUbBVKsowgrqmO7Nv=VXrtU0Yq4VbohA>