json_decode, если вернули false - if ($result === false)
то значит json не валидный (пустой или не до загружен)
isset($data.value)
, если в json_decode был второй параметр false
$data.value
, а $data->value
who | grep root
, также при приветствии (Last login Xxxx from YY.yy.yy)Как вы подключаетесь к VDS по ssh? Какой адрес указываете? То же для HTTP.
я вот у себя пробую на ssh, на том же серваке, что и openvpn и вижу такую картину
Chain PREROUTING (policy ACCEPT 2835K packets, 316M bytes)
pkts bytes target prot opt in out source destination
2836K 316M PREROUTING_direct all -- * * 0.0.0.0/0 0.0.0.0/0
2836K 316M PREROUTING_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
2836K 316M PREROUTING_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 2735K packets, 308M bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 129K packets, 11M bytes)
pkts bytes target prot opt in out source destination
129K 11M OUTPUT_direct all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 132K packets, 12M bytes)
pkts bytes target prot opt in out source destination
229K 20M POSTROUTING_direct all -- * * 0.0.0.0/0 0.0.0.0/0
229K 20M POSTROUTING_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
229K 20M POSTROUTING_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
96347 7613K MASQUERADE all -- * eth0 10.10.15.0/24 0.0.0.0/0
0 0 MASQUERADE all -- * eth0 10.10.15.0/24 0.0.0.0/0
Chain OUTPUT_direct (1 references)
pkts bytes target prot opt in out source destination
Chain POSTROUTING_ZONES (1 references)
pkts bytes target prot opt in out source destination
225K 19M POST_public all -- * eth0 0.0.0.0/0 0.0.0.0/0 [goto]
3926 566K POST_public all -- * + 0.0.0.0/0 0.0.0.0/0 [goto]
Chain POSTROUTING_ZONES_SOURCE (1 references)
pkts bytes target prot opt in out source destination
Chain POSTROUTING_direct (1 references)
pkts bytes target prot opt in out source destination
Chain POST_public (2 references)
pkts bytes target prot opt in out source destination
229K 20M POST_public_log all -- * * 0.0.0.0/0 0.0.0.0/0
229K 20M POST_public_deny all -- * * 0.0.0.0/0 0.0.0.0/0
229K 20M POST_public_allow all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POST_public_allow (1 references)
pkts bytes target prot opt in out source destination
Chain POST_public_deny (1 references)
pkts bytes target prot opt in out source destination
Chain POST_public_log (1 references)
pkts bytes target prot opt in out source destination
Chain PREROUTING_ZONES (1 references)
pkts bytes target prot opt in out source destination
2736K 308M PRE_public all -- eth0 * 0.0.0.0/0 0.0.0.0/0 [goto]
100K 8190K PRE_public all -- + * 0.0.0.0/0 0.0.0.0/0 [goto]
Chain PREROUTING_ZONES_SOURCE (1 references)
pkts bytes target prot opt in out source destination
Chain PREROUTING_direct (1 references)
pkts bytes target prot opt in out source destination
Chain PRE_public (2 references)
pkts bytes target prot opt in out source destination
2836K 316M PRE_public_log all -- * * 0.0.0.0/0 0.0.0.0/0
2836K 316M PRE_public_deny all -- * * 0.0.0.0/0 0.0.0.0/0
2836K 316M PRE_public_allow all -- * * 0.0.0.0/0 0.0.0.0/0
Chain PRE_public_allow (1 references)
pkts bytes target prot opt in out source destination
Chain PRE_public_deny (1 references)
pkts bytes target prot opt in out source destination
Chain PRE_public_log (1 references)
pkts bytes target prot opt in out source destination