Skip to content
Permalink
Browse files

inadyn: switch Asus DDNS server to ns1.asuscomm.com since their serve…

…r certificate is missing the nwsrv-ns1.asus.com SAN; re-enable certificate validation when updating an Asus DDNS account
  • Loading branch information
RMerl committed Nov 29, 2019
1 parent 31efcf7 commit 6ce31ebb1325c2b03b2c725d6ad944c84999f03e
Showing with 12 additions and 3 deletions.
  1. +6 −3 release/src/router/inadyn/plugins/asuscomm.c
  2. +6 −0 release/src/router/rc/services.c
@@ -71,7 +71,8 @@ static ddns_system_t asus_update = {
.checkip_url = DYNDNS_MY_CHECKIP_URL,
.checkip_ssl = DYNDNS_MY_IP_SSL,

.server_name = "nwsrv-ns1.asus.com",
// .server_name = "nwsrv-ns1.asus.com",
.server_name = "ns1.asuscomm.com",
.server_url = "/ddns/update.jsp"
};

@@ -85,7 +86,8 @@ static ddns_system_t asus_register = {
.checkip_url = DYNDNS_MY_CHECKIP_URL,
.checkip_ssl = DYNDNS_MY_IP_SSL,

.server_name = "nwsrv-ns1.asus.com",
// .server_name = "nwsrv-ns1.asus.com",
.server_name = "ns1.asuscomm.com",
.server_url = "/ddns/register.jsp"
};

@@ -99,7 +101,8 @@ static ddns_system_t asus_unregister = {
.checkip_url = DYNDNS_MY_CHECKIP_URL,
.checkip_ssl = DYNDNS_MY_IP_SSL,

.server_name = "nwsrv-ns1.asus.com",
// .server_name = "nwsrv-ns1.asus.com",
.server_name = "ns1.asuscomm.com",
.server_url = "/ddns/register.jsp"
};

@@ -3560,8 +3560,10 @@ start_ddns(void)
fprintf(fp, "wildcard = true\n");

fprintf(fp, "}\n");
#if 0
if (asus_ddns == 1)
fprintf(fp, "secure-ssl = false\n");
#endif

append_custom_config("inadyn.conf", fp);

@@ -3729,7 +3731,9 @@ asusddns_reg_domain(int reg)
fprintf(fp, "username = %s\n", get_lan_hwaddr());
fprintf(fp, "password = %s\n", nvram_safe_get("secret_code"));
fprintf(fp, "}\n");
#if 0
fprintf(fp, "secure-ssl = false\n");
#endif
fclose(fp);

if((time_fp=fopen("/tmp/ddns.cache","w"))) {
@@ -3806,7 +3810,9 @@ _dprintf("%s: do inadyn to unregister! unit = %d wan_ifname = %s nserver = %s ho
fprintf(fp, "username = %s\n", get_lan_hwaddr());
fprintf(fp, "password = %s\n", nvram_safe_get("secret_code"));
fprintf(fp, "}\n");
#if 0
fprintf(fp, "secure-ssl = false\n");
#endif
fclose(fp);

/*

0 comments on commit 6ce31eb

Please sign in to comment.
You can’t perform that action at this time.