GenieACS 1.2 Mikrotik issue - Device Offline

Hello, I installed newest version of genieacs from GitHub.

My problem is:

I have configured TR069 on Mikrotik Device like this

38

I can see new device in WEB UI

I am got some basic information from CPE

But when i want to refresh some paramater then I am getting message with device is offline

there is access log

2019-11-27T10:42:54.016Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: Inform; informEvent=“2 PERIODIC” informRetryCount=0
2019-11-27T10:42:54.103Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: ACS request; acsRequestId=“16eac74eb890000” acsRequestName=“GetParameterNames”
2019-11-27T10:42:54.152Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: ACS request; acsRequestId=“16eac74eb890001” acsRequestName=“GetParameterNames”
2019-11-27T10:42:54.280Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: ACS request; acsRequestId=“16eac74eb890002” acsRequestName=“GetParameterValues”
2019-11-27T10:42:54.340Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: ACS request; acsRequestId=“16eac74eb890003” acsRequestName=“SetParameterValues”
2019-11-27T10:42:54.442Z [INFO] 10.20.5.45 E48D8C-LHG%20R-B8A30B2DB3C8: New device registered

There is debug messages after device is registered

---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:53.972Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 401
headers:
  content-length: 12
  www-authenticate: Digest
    realm="GenieACS",qop="auth,auth-int",nonce="a63ef36fac4b2ef5ed4775f8dc6297bf"
body: Unauthorized
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.013Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000001,
    cnonce="5898972454a5906d726e64dc5be086ac", qop=auth,
    response="a1b39e698d1fbfe9e80c6363b0cbf07d", opaque=""
  content-length: "1826"
  content-type: text/xml
  host: 192.168.250.11
  user-agent: MikroTik
body: <soapenv:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:cwmp='urn:dslforum-org:cwmp-1-0'
  xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><soapenv:Body><cwmp:Inform><DeviceId><Manufacturer>MikroTik</Manufacturer><OUI>E48D8C</OUI><ProductClass>LHG
  R</ProductClass><SerialNumber>B8A30B2DB3C8</SerialNumber></DeviceId><Event
  soap:arrayType='cwmp:EventStruct[1]'><EventStruct><EventCode>2
  PERIODIC</EventCode><CommandKey></CommandKey></EventStruct></Event><MaxEnvelopes>1</MaxEnvelopes><CurrentTime>2019-11-27T11:42:49+01:00</CurrentTime><RetryCount>0</RetryCount><ParameterList
  soap:arrayType='cwmp:ParameterValueStruct[7]'><ParameterValueStruct><Name>Device.RootDataModelVersion</Name><Value
  xsi:type='xsd:string'>2.11</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.SoftwareVersion</Name><Value
  xsi:type='xsd:string'>6.45.7</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.ProvisioningCode</Name><Value
  xsi:type='xsd:string'>JackoImrich-Secovce</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.HardwareVersion</Name><Value
  xsi:type='xsd:string'>v1.0</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.ParameterKey</Name><Value
  xsi:type='xsd:string'></Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.ConnectionRequestURL</Name><Value
  xsi:type='xsd:string'>http://10.20.5.45:7547/7923e056ad6a602c64c1796076c6fff7e92f</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.AliasBasedAddressing</Name><Value
  xsi:type='xsd:boolean'>0</Value></ParameterValueStruct></ParameterList></cwmp:Inform></soapenv:Body></soapenv:Envelope>
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.020Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 200
headers:
  content-length: 524
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  content-type: text/xml; charset="utf-8"
  set-cookie: session=36d27eb321b25df3
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">null</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.092Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000002,
    cnonce="7e69102f5d71638c7486db4f69477eb3", qop=auth,
    response="6db3801a16dc561165c0f736bca9f785", opaque=""
  content-length: "0"
  cookie: session=36d27eb321b25df3
  host: 192.168.250.11
  user-agent: MikroTik
body: ""
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.106Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 200
headers:
  content-length: 566
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  content-type: text/xml; charset="utf-8"
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">16eac74eb890000</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:GetParameterNames><ParameterPath></ParameterPath><NextLevel>1</NextLevel></cwmp:GetParameterNames></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.142Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000003,
    cnonce="08ad58042deb418077a8358842796bd2", qop=auth,
    response="8ad648f7f683f5d393c1f8f761495a52", opaque=""
  content-length: "634"
  content-type: text/xml
  cookie: session=36d27eb321b25df3
  host: 192.168.250.11
  soapaction: ""
  user-agent: MikroTik
body: <soapenv:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:cwmp='urn:dslforum-org:cwmp-1-0'
  xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><soapenv:Header><cwmp:ID
  soap:mustUnderstand='1'>16eac74eb890000</cwmp:ID></soapenv:Header><soapenv:Body><cwmp:GetParameterNamesResponse><ParameterList
  soap:arrayType='cwmp:ParameterInfoStruct[1]'><ParameterInfoStruct><Name>Device.</Name><Writable>0</Writable></ParameterInfoStruct></ParameterList></cwmp:GetParameterNamesResponse></soapenv:Body></soapenv:Envelope>
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.152Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 200
headers:
  content-length: 590
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  content-type: text/xml; charset="utf-8"
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">16eac74eb890001</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:GetParameterNames><ParameterPath>Device.ManagementServer.</ParameterPath><NextLevel>1</NextLevel></cwmp:GetParameterNames></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.253Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000004,
    cnonce="4031acc4015e7ab9529fdc5b6667e424", qop=auth,
    response="acc584a33cd56ae4fdf9539344cc4ceb", opaque=""
  content-length: "1983"
  content-type: text/xml
  cookie: session=36d27eb321b25df3
  host: 192.168.250.11
  soapaction: ""
  user-agent: MikroTik
body: <soapenv:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:cwmp='urn:dslforum-org:cwmp-1-0'
  xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><soapenv:Header><cwmp:ID
  soap:mustUnderstand='1'>16eac74eb890001</cwmp:ID></soapenv:Header><soapenv:Body><cwmp:GetParameterNamesResponse><ParameterList
  soap:arrayType='cwmp:ParameterInfoStruct[12]'><ParameterInfoStruct><Name>Device.ManagementServer.ParameterKey</Name><Writable>0</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.ConnectionRequestURL</Name><Writable>0</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.URL</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.Username</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.Password</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.PeriodicInformEnable</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.PeriodicInformInterval</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.ConnectionRequestUsername</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.ConnectionRequestPassword</Name><Writable>1</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.AliasBasedAddressing</Name><Writable>0</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.InformParameterNumberOfEntries</Name><Writable>0</Writable></ParameterInfoStruct><ParameterInfoStruct><Name>Device.ManagementServer.InformParameter.</Name><Writable>1</Writable></ParameterInfoStruct></ParameterList></cwmp:GetParameterNamesResponse></soapenv:Body></soapenv:Envelope>
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.287Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 200
headers:
  content-length: 837
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  content-type: text/xml; charset="utf-8"
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">16eac74eb890002</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:GetParameterValues><ParameterNames soap-enc:arrayType="xsd:string[4]"><string>Device.ManagementServer.ConnectionRequestUsername</string><string>Device.ManagementServer.ConnectionRequestPassword</string><string>Device.ManagementServer.PeriodicInformEnable</string><string>Device.ManagementServer.PeriodicInformInterval</string></ParameterNames></cwmp:GetParameterValues></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.333Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000005,
    cnonce="035f1701669f443f31f40bc5252d54dd", qop=auth,
    response="3a7287c79877488e3aad9c9db4e88256", opaque=""
  content-length: "1132"
  content-type: text/xml
  cookie: session=36d27eb321b25df3
  host: 192.168.250.11
  soapaction: ""
  user-agent: MikroTik
body: <soapenv:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:cwmp='urn:dslforum-org:cwmp-1-0'
  xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><soapenv:Header><cwmp:ID
  soap:mustUnderstand='1'>16eac74eb890002</cwmp:ID></soapenv:Header><soapenv:Body><cwmp:GetParameterValuesResponse><ParameterList
  soap:arrayType='cwmp:ParameterValueStruct[4]'><ParameterValueStruct><Name>Device.ManagementServer.ConnectionRequestUsername</Name><Value
  xsi:type='xsd:string'>acs</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.ConnectionRequestPassword</Name><Value
  xsi:type='xsd:string'></Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.PeriodicInformEnable</Name><Value
  xsi:type='xsd:boolean'>1</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.PeriodicInformInterval</Name><Value
  xsi:type='xsd:unsignedInt'>60</Value></ParameterValueStruct></ParameterList></cwmp:GetParameterValuesResponse></soapenv:Body></soapenv:Envelope>
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.341Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 200
headers:
  content-length: 1098
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  content-type: text/xml; charset="utf-8"
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">16eac74eb890003</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:SetParameterValues><ParameterList soap-enc:arrayType="cwmp:ParameterValueStruct[3]"><ParameterValueStruct><Name>Device.ManagementServer.ConnectionRequestUsername</Name><Value xsi:type="xsd:string">E48D8C-LHG%20R-B8A30B2DB3C8</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.ConnectionRequestPassword</Name><Value xsi:type="xsd:string">134qf6yoah5</Value></ParameterValueStruct><ParameterValueStruct><Name>Device.ManagementServer.PeriodicInformInterval</Name><Value xsi:type="xsd:unsignedInt">300</Value></ParameterValueStruct></ParameterList><ParameterKey></ParameterKey></cwmp:SetParameterValues></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2019-11-27T10:42:54.413Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
localPort: 7547
method: POST
url: /
headers:
  authorization: Digest username="acs", realm="GenieACS", uri="/", algorithm=MD5,
    nonce="a63ef36fac4b2ef5ed4775f8dc6297bf", nc=00000006,
    cnonce="15e7404d62ef8923596151fb5a2d0a2a", qop=auth,
    response="cacc71af10652bc616c5ad1f8e063c96", opaque=""
  content-length: "494"
  content-type: text/xml
  cookie: session=36d27eb321b25df3
  host: 192.168.250.11
  soapaction: ""
  user-agent: MikroTik
body: >-
  <soapenv:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:cwmp="urn:dslforum-org:cwmp-1-0"
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><cwmp:ID
  soap:mustUnderstand="1">16eac74eb890003</cwmp:ID></soapenv:Header><soapenv:Body>

  <cwmp:SetParameterValuesResponse><Status>0</Status></cwmp:SetParameterValuesResponse></soapenv:Body></soapenv:Envelope>
---
event: outgoing HTTP response
timestamp: 2019-11-27T10:42:54.429Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: 2019-11-27T10:42:53.972Z
statusCode: 204
headers:
  content-length: 0
  server: GenieACS/1.2.0-beta.0+20191127091408
  soapserver: GenieACS/1.2.0-beta.0+20191127091408
  connection: close
body: ""

And there is debug of refresh some parramter

---
event: outgoing HTTP request
timestamp: 2019-11-27T10:45:54.280Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: null
remotePort: "7547"
method: null
url: /7923e056ad6a602c64c1796076c6fff7e92f
headers:
  host: 10.20.5.45:7547
error: socket hang up
---
event: outgoing HTTP request
timestamp: 2019-11-27T10:46:09.370Z
remoteAddress: 10.20.5.45
deviceId: E48D8C-LHG%20R-B8A30B2DB3C8
connection: null
remotePort: "7547"
method: null
url: /7923e056ad6a602c64c1796076c6fff7e92f
headers:
  host: 10.20.5.45:7547
error: socket hang up

Please help what is wrong

Thank you

Hi, you need it create firewall rule for syn from server. I created rule chain input src.ip my server ip and dst.port 7547

Hi @baronkis ,
How to create firewall rule for syn from server?