From owner-freebsd-jail@freebsd.org Wed May 18 16:46:59 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31631B41CF4 for ; Wed, 18 May 2016 16:46:59 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D13051255 for ; Wed, 18 May 2016 16:46:58 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [192.168.1.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u4IGku6t096895 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 18 May 2016 16:46:56 GMT (envelope-from list1@gjunka.com) Subject: Re: netstat -rn in jail doesn't work To: freebsd-jail@freebsd.org References: <87302b92-dcae-0ed2-92e2-0c29779c0fd3@gjunka.com> <573C9A85.6060200@freebsd.org> From: Grzegorz Junka Message-ID: <0b676bf0-2bc1-f1e1-4bb1-202c48396f33@gjunka.com> Date: Wed, 18 May 2016 16:46:56 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <573C9A85.6060200@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 16:46:59 -0000 On 18/05/2016 16:38, Allan Jude wrote: > On 2016-05-18 12:37, Grzegorz Junka wrote: >> What may be the reason that netstat -rn works in one jail and doesn't in >> another? >> >> root@app2:/ # netstat -rn >> Routing tables >> >> Internet: >> Destination Gateway Flags Netif Expire >> 192.168.1.76 link#4 UHS lo0 >> >> >> root@pjp1:/ # netstat -rn >> netstat: kvm not available: /dev/mem: No such file or directory >> Routing tables >> rt_tables: symbol not in namelist >> >> Grzegorz >> >> _______________________________________________ >> freebsd-jail@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-jail >> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > Do you have /dev/mem exposed in one of them? > No. It's just that -rn doesn't show that error in that particular case, but it shows it at another occasion: root@app2:/ # netstat -a netstat: kvm not available: /dev/mem: No such file or directory Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 app2.8484 *.* LISTEN tcp4 0 0 app2.smtp *.* LISTEN tcp4 0 0 app2.ssh *.* LISTEN udp4 0 0 app2.syslog *.* Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr fffff8003068f870 dgram 0 0 0 fffff80030634870 0 fffff80030634780 fffff8003068f960 dgram 0 0 0 fffff80030634960 0 0 fffff80030634780 dgram 0 0 0 fffff80030634870 0 0 fffff80030634870 dgram 0 0 fffff801057be1d8 0 fffff8003068f870 0 /var/run/logpriv fffff80030634960 dgram 0 0 fffff801058eb1d8 0 fffff8003068f960 0 /var/run/log