From owner-freebsd-questions@FreeBSD.ORG Tue Mar 5 17:48:01 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CCA3C491 for ; Tue, 5 Mar 2013 17:48:01 +0000 (UTC) (envelope-from matthias@d2ux.org) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id 8B51B233 for ; Tue, 5 Mar 2013 17:48:00 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id B4DBB84F2D6C for ; Tue, 5 Mar 2013 18:42:04 +0100 (CET) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id C5AeR1hqIBkj for ; Tue, 5 Mar 2013 18:42:02 +0100 (CET) Received: from www.s1.d2ux.org (unknown [10.0.0.4]) by mail.s1.d2ux.org (Postfix) with ESMTP id 7222984F257D for ; Tue, 5 Mar 2013 18:42:02 +0100 (CET) Received: from p5DDABF93.dip.t-dialin.net (p5DDABF93.dip.t-dialin.net [93.218.191.147]) by d2ux.org (Horde Framework) with HTTP; Tue, 05 Mar 2013 18:42:02 +0100 Date: Tue, 05 Mar 2013 18:42:02 +0100 Message-ID: <20130305184202.Horde.eDUXhBWXINRGxbZx4ZcRCQ2@d2ux.org> From: Matthias Petermann To: "questions@freebsd.org" Subject: Jailed process listening to broadcast address of host system - possible? User-Agent: Internet Messaging Program (IMP) H5 (6.0.4) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 17:48:01 -0000 Hello, is there any way to listen to a networks broadcast adress from within a Jail? Given ist the following setup: * The host (IP 192.168.2.127) * The jail (same IP as host, 192.168.2.127) When I do: $ nc -l 192.168.2.255 9999 I got the following results: root@host # nc -l 192.168.2.255 9999 root@jail # nc -l 192.168.2.255 9999 nc: Can't assign requested address The latter is the problem. I already sat security.jail.allow_raw_sockets=1 and now not sure if I am trying to do something which is not allowed by design? Thanks in advance, Matthias # Additional Information: ## ifconfig (host): root@host # ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=9b ether 08:00:27:b3:64:f2 inet 192.168.2.127 netmask 0xffffff00 broadcast 192.168.2.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 inet 10.0.0.1 netmask 0xffffffff inet 10.0.0.2 netmask 0xffffffff inet 10.0.0.3 netmask 0xffffffff inet 10.0.0.4 netmask 0xffffffff inet 10.0.0.5 netmask 0xffffffff nd6 options=21 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 ## ifconfig (jail): root@jail # ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=9b ether 08:00:27:b3:64:f2 inet 192.168.2.127 netmask 0xffffff00 broadcast 192.168.2.255 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 pflog0: flags=141 metric 0 mtu 33152 -- Matthias Petermann