1
23.1 Legacy Series / ddclient with opnsense backend and cloudflare - more problems
« on: May 09, 2023, 07:12:15 pm »
I opened a post a couple of days ago about ddclient not starting nor logging. Apparently, my configs weren't correct and it failed silently, so I lost a couple of days on that instead of it saying there were some problem.
Anyway, it starts now, and I've found the following problems, just checking if anybody has a solution and this "new and improved" version of a working plugin that caused no problems to anybody can get to a working state, or even feature parity:
- With the opnsense backend, there's no way of using an API token. The global token has to be used, otherwise it complains about:
Using global token instead of an API one is a serious security issue.
- When using more than one hostname in a config, it gives the error:
- More importantly: I have some proxied domains and some unproxied. Updating them via opnsense backend set all of them as unproxied. There is an optional parameter in the body of the query (see here), but there's no way of setting it. I guess a frontend change should be made, and have a checkbox to control this.
Anyway, it starts now, and I've found the following problems, just checking if anybody has a solution and this "new and improved" version of a working plugin that caused no problems to anybody can get to a working state, or even feature parity:
- With the opnsense backend, there's no way of using an API token. The global token has to be used, otherwise it complains about:
Code: [Select]
error receiving ZoneID [[{"code": 6003, "message": "Invalid request headers", "error_chain": [{"code": 6103, "message": "Invalid format for X-Auth-Key header"}]}]]
Using global token instead of an API one is a serious security issue.
- When using more than one hostname in a config, it gives the error:
Code: [Select]
failed to set new ip XXXX [{"result":null,"success":false,"errors":[{"code":9000,"message":"DNS name is invalid."}],"messages":[]
}]- More importantly: I have some proxied domains and some unproxied. Updating them via opnsense backend set all of them as unproxied. There is an optional parameter in the body of the query (see here), but there's no way of setting it. I guess a frontend change should be made, and have a checkbox to control this.