HEXv3(RB750Gr3) RouterOS firmware v6.42.1
I need to extract graphs to send via e-mail, see the code to https://wiki.mikrotik.com/wiki/Backup_graphing_data. But it not function.
I test via terminal by using this:
/tool fetch url=“http://LANIP/graphs/cpu/daily.gif” mode=http dst-path=“graphs/cpu-daily.gif”
LANIP=HEXv3 lan IP
Result: failed to connect
I try also with 127.0.0.1 address but the same result.
I have another new HEXv3 RouterOS firmware v6.42.1, with default config + enable graphing. The problem is the same.
I found there is a problem of config of firewall.
For default it is configured to permit traffic to HEXv3 only from LAN, but not from HEXv3 itself.
I search on web to a solution, but I not found.
To make function i use:
/ip firewall filter chain=input action=accept src-address=192.168.88.1 dst-address=192.168.88.1 in-interface-list=!all
before the default rule
;;; defconf: drop all not coming from LAN
/ip firewall filter chain=input action=drop in-interface-list=!LAN
How can be solve in a correct way, to be secure ?
Thank you
Best regards