Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 18:35:32 +0400
From:      Subbsd <subbsd@gmail.com>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        freebsd-jail <freebsd-jail@freebsd.org>
Subject:   Re: ip settings not work for jail 'service' type
Message-ID:  <CAFt_eMpWjFpQ8=uS7PzW6TSunDsSeq7JYhPsT6xEzOHzuyBvpw@mail.gmail.com>
In-Reply-To: <02CBAA19-5015-4A5A-B4BB-D3FA7EB4DB65@lists.zabbadoz.net>
References:  <CAFt_eMpx3mk2ZQ=sKRFC8kEke%2BnDQqdrs8RaGFORkLuHcmdLfA@mail.gmail.com> <02CBAA19-5015-4A5A-B4BB-D3FA7EB4DB65@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On 7/21/11, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
>
> And does inetd run at that point?  Did it log anything to your logfiles?
>

Yes, inetd in proccess list is available with binding on IP:port. In
/var/log/messages i see only
inetd[52312]: madvise() failed: Operation not permitted

I think inetd+ftpd was the bad example. Now i test with it:


jail_i1_ip="192.0.0.1/24"
jail_i1_exec_start="/usr/sbin/daemon /usr/sbin/inetd -d -p
/var/run/i1.pid /root/i1.conf -wW"

jail_i2_ip="192.0.0.2/24"
jail_i2_ip_multi0="10.0.0.11"
jail_i2_exec_start="/usr/sbin/daemon /usr/sbin/inetd -d -p
/var/run/i2.pid /root/i2.conf -wW"

/root/i{1,2}.conf have:
daytime stream  tcp     nowait  root    internal

and i get time after jail starting successfully via
telnet 192.0.0.1 daytime
telnet 192.0.0.2 daytime
telnet 10.0.0.11 daytime

Thanks for response. Now i see that all fine with ip settings)



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