Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2016 16:46:56 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        freebsd-jail@freebsd.org
Subject:   Re: netstat -rn in jail doesn't work
Message-ID:  <0b676bf0-2bc1-f1e1-4bb1-202c48396f33@gjunka.com>
In-Reply-To: <573C9A85.6060200@freebsd.org>
References:  <87302b92-dcae-0ed2-92e2-0c29779c0fd3@gjunka.com> <573C9A85.6060200@freebsd.org>

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

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0b676bf0-2bc1-f1e1-4bb1-202c48396f33>