netstat -rn in jail doesn't work
Grzegorz Junka
list1 at gjunka.com
Wed May 18 16:46:59 UTC 2016
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 at app2:/ # netstat -rn
>> Routing tables
>>
>> Internet:
>> Destination Gateway Flags Netif Expire
>> 192.168.1.76 link#4 UHS lo0
>>
>>
>> root at 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 at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-jail
>> To unsubscribe, send any mail to "freebsd-jail-unsubscribe at 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 at 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
More information about the freebsd-jail
mailing list