Unable to hit a few oid's from an external ip subnet

Hi,

I have the following issue then making an SNMP call to the microtik.

I have a PHP code to retrieve specific oid’s IP-address, mac address , bytes-in , bytes-out from the hotspot–>active section.

PHP call :

$bytes_in = snmpwalk($microtik_row_ip_value, ‘Office’,‘.1.3.6.1.4.1.14988.1.1.5.1.1.12’);


$bytes_out = snmpwalk($microtik_row_ip_value, ‘Office’,‘.1.3.6.1.4.1.14988.1.1.5.1.1.13’);

$ip_list = snmpwalk($microtik_row_ip_value, ‘Office’,‘.1.3.6.1.4.1.14988.1.1.5.1.1.5’);

$mac_list = snmpwalk($microtik_row_ip_value, ‘Office’,‘.1.3.6.1.4.1.14988.1.1.5.1.1.6’);



This call returns data and works fine when called from the same IP-subnet (from inside the same network 192.168.1.9).


I then tried hosting the same PHP call from an IP that is external to the IP that the microtik is on The microtik resides on a local ip(192.168.1.26 which has a global ip ).

When the php call is made from this external IP , the calls to (.1.3.6.1.4.1.14988.1.1.5.1.1.5 and .1.3.6.1.4.1.14988.1.1.5.1.1.6) oid’s respond with data but the other two .1.3.6.1.4.1.14988.1.1.5.1.1.12 and .1.3.6.1.4.1.14988.1.1.5.1.1.13 dont return data and I get an error as follows

“Warning: snmpwalk(): No response from ”

I also noticed that this is the case with all the oid’s ranging from .1.3.6.1.4.1.14988.1.1.5.1.1.11 to .1.3.6.1.4.1.14988.1.1.5.1.1.17 (they dont get a response from the microtik.

I find it strange why some oid’s can and some cannot. Which does not look like a network setting if you agree.We have ensured that the modem setting are as expected and are not blocking SNMP calls. I have added some firewall rules as well which you can look up in the config file attached.

Could you please help me get to the bottom of this.
PFA , the config file for the microtik that I can trying to connect to.

Also find the firewall setup for screen shot attached.

Ramanujan