I have this router and the firmware is buggy as hell. All that FOTA stuff can be ignored. It has to do with the new auto-check for firmware upgrades. Even if you turn it off, you will still see this happen in the log daily. Its a feature or a bug depending on who you ask. :/
I'd turn off UPNP. First, it's a security issue. And second, it looks to be the thing that is happening right before IPsec craps out. Worth a shot anyway.
i did it and still same:
2019-10-08 03:44:38 FOTA[2195]: fota_config.c, fota_init_config, 322:
2019-10-08 03:44:38 FOTA[2195]: CA certificate is not set, use default file: /etc_ro/cacert.pem.
2019-10-08 03:44:38 FOTA[2195]: fota_config.c, fota_init_config, 335:
2019-10-08 03:44:38 FOTA[2195]: firmware encryption flag is on.
2019-10-08 03:44:38 FOTA_CONFIG[2213]: mtk/fota_generate_config.c, main, 1060:
2019-10-08 03:44:38 FOTA_CONFIG[2213]: Execute config ACTION: config.
2019-10-08 03:44:38 FOTA_CONFIG[2213]: mtk/fota_generate_config.c, action_config, 779:
2019-10-08 03:44:38 FOTA_CONFIG[2213]: Now start generating the configuration file.
2019-10-08 03:44:38 FOTA_CONFIG[2213]: mtk/fota_generate_config.c, main, 1068:
2019-10-08 03:44:38 FOTA_CONFIG[2213]: Done.
2019-10-08 03:44:38 FOTA[2195]: fota.c, main, 1357:
2019-10-08 03:44:38 FOTA[2195]: Execute ACTION: auto.
2019-10-08 03:44:38 FOTA[2195]: fota.c, query_latest_firmware_info, 83:
2019-10-08 03:44:38 FOTA[2195]: Now check with the server for the latest firmware information.
2019-10-08 03:44:39 FOTA[2195]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 03:44:39 FOTA[2195]: iHttp_code=401.
2019-10-08 03:44:39 FOTA[2195]: fota.c, query_latest_firmware_info, 106:
2019-10-08 03:44:39 FOTA[2195]: Http code: 401, Error code: 111, error message: Invalid access token..
2019-10-08 03:44:39 FOTA[2195]: fota_api.c, refresh_access_token, 214:
2019-10-08 03:44:39 FOTA[2195]: Now REFRESH the access token.
2019-10-08 03:44:40 FOTA[2195]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 03:44:40 FOTA[2195]: iHttp_code=200.
2019-10-08 03:44:40 FOTA[2195]: fota_api.c, refresh_access_token, 248:
2019-10-08 03:44:40 FOTA[2195]: REFRESH the access token success.
2019-10-08 03:44:40 FOTA[2195]: fota.c, query_latest_firmware_info, 83:
2019-10-08 03:44:40 FOTA[2195]: Now check with the server for the latest firmware information.
2019-10-08 03:44:40 FOTA[2195]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 03:44:40 FOTA[2195]: iHttp_code=200.
2019-10-08 03:44:40 FOTA[2195]: fota.c, query_latest_firmware_info, 116:
2019-10-08 03:44:40 FOTA[2195]: QUERY the latest firmware information success.
2019-10-08 03:44:40 FOTA[2195]: fota.c, send_event_notification_to_server, 240:
2019-10-08 03:44:40 FOTA[2195]: Now send EVENT notification to the server.
2019-10-08 03:44:41 FOTA[2195]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 03:44:41 FOTA[2195]: iHttp_code=200.
2019-10-08 03:44:41 FOTA[2195]: fota.c, send_event_notification_to_server, 273:
2019-10-08 03:44:41 FOTA[2195]: Send EVENT notification to the server success.
2019-10-08 03:44:41 FOTA[2195]: fota.c, select_firmware_version, 442:
2019-10-08 03:44:41 FOTA[2195]: Now CHOOSE a viable firmware version.
2019-10-08 03:44:41 FOTA[2195]: fota.c, check_enforced_version, 411:
2019-10-08 03:44:41 FOTA[2195]: Now check enforced version.
2019-10-08 03:44:41 FOTA[2195]: fota.c, check_enforced_version, 425:
2019-10-08 03:44:41 FOTA[2195]: 'pEnforced_exist' is null pointer.
2019-10-08 03:44:41 FOTA[2195]: fota.c, select_firmware_version, 488:
2019-10-08 03:44:41 FOTA[2195]: Select upgrade stable firmware.
2019-10-08 03:44:41 FOTA[2195]: fota.c, select_firmware_version, 502:
2019-10-08 03:44:41 FOTA[2195]: No newer firmware is available.
2019-10-08 03:44:41 FOTA[2195]: fota.c, main, 1366:
2019-10-08 03:44:41 FOTA[2195]: The value of 'iRet' is not OK.
2019-10-08 06:29:13 [RC]: Wan(eth3) Disconnect
2019-10-08 06:29:13 ipsec_setup: ...Openswan IPsec stopped
2019-10-08 06:29:14 [RC]: Wan(eth3) connect Success , Current Wan ip is 192.168.1.145
2019-10-08 06:29:17 ipsec_setup: ...Openswan IPsec stopped
2019-10-08 06:29:18 FOTA[24891]: fota_config.c, fota_init_config, 322:
2019-10-08 06:29:18 FOTA[24891]: CA certificate is not set, use default file: /etc_ro/cacert.pem.
2019-10-08 06:29:18 FOTA[24891]: fota_config.c, fota_init_config, 335:
2019-10-08 06:29:18 FOTA[24891]: firmware encryption flag is on.
2019-10-08 06:29:18 FOTA_CONFIG[24911]: mtk/fota_generate_config.c, main, 1060:
2019-10-08 06:29:18 FOTA_CONFIG[24911]: Execute config ACTION: config.
2019-10-08 06:29:18 FOTA_CONFIG[24911]: mtk/fota_generate_config.c, action_config, 779:
2019-10-08 06:29:18 FOTA_CONFIG[24911]: Now start generating the configuration file.
2019-10-08 06:29:18 FOTA_CONFIG[24911]: mtk/fota_generate_config.c, main, 1068:
2019-10-08 06:29:18 FOTA_CONFIG[24911]: Done.
2019-10-08 06:29:18 FOTA[24891]: fota.c, main, 1357:
2019-10-08 06:29:18 FOTA[24891]: Execute ACTION: query.
2019-10-08 06:29:18 FOTA[24891]: fota.c, query_latest_firmware_info, 83:
2019-10-08 06:29:18 FOTA[24891]: Now check with the server for the latest firmware information.
2019-10-08 06:29:19 FOTA[24891]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 06:29:19 FOTA[24891]: iHttp_code=401.
2019-10-08 06:29:19 FOTA[24891]: fota.c, query_latest_firmware_info, 106:
2019-10-08 06:29:19 FOTA[24891]: Http code: 401, Error code: 111, error message: Invalid access token..
2019-10-08 06:29:19 FOTA[24891]: fota_api.c, refresh_access_token, 214:
2019-10-08 06:29:19 FOTA[24891]: Now REFRESH the access token.
2019-10-08 06:29:20 FOTA[24891]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 06:29:20 FOTA[24891]: iHttp_code=200.
2019-10-08 06:29:20 FOTA[24891]: fota_api.c, refresh_access_token, 248:
2019-10-08 06:29:20 FOTA[24891]: REFRESH the access token success.
2019-10-08 06:29:20 FOTA[24891]: fota.c, query_latest_firmware_info, 83:
2019-10-08 06:29:20 FOTA[24891]: Now check with the server for the latest firmware information.
2019-10-08 06:29:21 FOTA[24891]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 06:29:21 FOTA[24891]: iHttp_code=200.
2019-10-08 06:29:21 FOTA[24891]: fota.c, query_latest_firmware_info, 116:
2019-10-08 06:29:21 FOTA[24891]: QUERY the latest firmware information success.
2019-10-08 06:29:21 FOTA[24891]: fota.c, select_firmware_version, 442:
2019-10-08 06:29:21 FOTA[24891]: Now CHOOSE a viable firmware version.
2019-10-08 06:29:21 FOTA[24891]: fota.c, check_enforced_version, 411:
2019-10-08 06:29:21 FOTA[24891]: Now check enforced version.
2019-10-08 06:29:21 FOTA[24891]: fota.c, check_enforced_version, 425:
2019-10-08 06:29:21 FOTA[24891]: 'pEnforced_exist' is null pointer.
2019-10-08 06:29:21 FOTA[24891]: fota.c, select_firmware_version, 488:
2019-10-08 06:29:21 FOTA[24891]: Select upgrade stable firmware.
2019-10-08 06:29:21 FOTA[24891]: fota.c, select_firmware_version, 502:
2019-10-08 06:29:21 FOTA[24891]: No newer firmware is available.
2019-10-08 06:29:21 FOTA[24891]: fota.c, main, 1393:
2019-10-08 06:29:21 FOTA[24891]: The value of 'iRet' is not OK.
2019-10-08 12:29:14 [RC]: Wan(eth3) Disconnect
2019-10-08 12:29:14 ipsec_setup: ...Openswan IPsec stopped
2019-10-08 12:29:15 [RC]: Wan(eth3) connect Success , Current Wan ip is 192.168.1.205
2019-10-08 12:29:18 ipsec_setup: ...Openswan IPsec stopped
2019-10-08 12:29:19 FOTA[11034]: fota_config.c, fota_init_config, 322:
2019-10-08 12:29:19 FOTA[11034]: CA certificate is not set, use default file: /etc_ro/cacert.pem.
2019-10-08 12:29:19 FOTA[11034]: fota_config.c, fota_init_config, 335:
2019-10-08 12:29:19 FOTA[11034]: firmware encryption flag is on.
2019-10-08 12:29:19 FOTA_CONFIG[11054]: mtk/fota_generate_config.c, main, 1060:
2019-10-08 12:29:19 FOTA_CONFIG[11054]: Execute config ACTION: config.
2019-10-08 12:29:19 FOTA_CONFIG[11054]: mtk/fota_generate_config.c, action_config, 779:
2019-10-08 12:29:19 FOTA_CONFIG[11054]: Now start generating the configuration file.
2019-10-08 12:29:19 FOTA_CONFIG[11054]: mtk/fota_generate_config.c, main, 1068:
2019-10-08 12:29:19 FOTA_CONFIG[11054]: Done.
2019-10-08 12:29:19 FOTA[11034]: fota.c, main, 1357:
2019-10-08 12:29:19 FOTA[11034]: Execute ACTION: query.
2019-10-08 12:29:19 FOTA[11034]: fota.c, query_latest_firmware_info, 83:
2019-10-08 12:29:19 FOTA[11034]: Now check with the server for the latest firmware information.
2019-10-08 12:29:20 FOTA[11034]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 12:29:20 FOTA[11034]: iHttp_code=401.
2019-10-08 12:29:20 FOTA[11034]: fota.c, query_latest_firmware_info, 106:
2019-10-08 12:29:20 FOTA[11034]: Http code: 401, Error code: 111, error message: Invalid access token..
2019-10-08 12:29:20 FOTA[11034]: fota_api.c, refresh_access_token, 214:
2019-10-08 12:29:20 FOTA[11034]: Now REFRESH the access token.
2019-10-08 12:29:21 FOTA[11034]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 12:29:21 FOTA[11034]: iHttp_code=200.
2019-10-08 12:29:21 FOTA[11034]: fota_api.c, refresh_access_token, 248:
2019-10-08 12:29:21 FOTA[11034]: REFRESH the access token success.
2019-10-08 12:29:21 FOTA[11034]: fota.c, query_latest_firmware_info, 83:
2019-10-08 12:29:21 FOTA[11034]: Now check with the server for the latest firmware information.
2019-10-08 12:29:22 FOTA[11034]: fota_api_curl.c, get_http_response_code, 167:
2019-10-08 12:29:22 FOTA[11034]: iHttp_code=200.
2019-10-08 12:29:22 FOTA[11034]: fota.c, query_latest_firmware_info, 116:
2019-10-08 12:29:22 FOTA[11034]: QUERY the latest firmware information success.
2019-10-08 12:29:22 FOTA[11034]: fota.c, select_firmware_version, 442:
2019-10-08 12:29:22 FOTA[11034]: Now CHOOSE a viable firmware version.
2019-10-08 12:29:22 FOTA[11034]: fota.c, check_enforced_version, 411:
2019-10-08 12:29:22 FOTA[11034]: Now check enforced version.
2019-10-08 12:29:22 FOTA[11034]: fota.c, check_enforced_version, 425:
2019-10-08 12:29:22 FOTA[11034]: 'pEnforced_exist' is null pointer.
2019-10-08 12:29:22 FOTA[11034]: fota.c, select_firmware_version, 488:
2019-10-08 12:29:22 FOTA[11034]: Select upgrade stable firmware.
2019-10-08 12:29:22 FOTA[11034]: fota.c, select_firmware_version, 502:
2019-10-08 12:29:22 FOTA[11034]: No newer firmware is available.
2019-10-08 12:29:22 FOTA[11034]: fota.c, main, 1393:
2019-10-08 12:29:22 FOTA[11034]: The value of 'iRet' is not OK.