Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom port for ddns-server is ignored when SSL is enabled #385

Closed
MestreLion opened this issue May 11, 2022 · 4 comments
Closed

Custom port for ddns-server is ignored when SSL is enabled #385

MestreLion opened this issue May 11, 2022 · 4 comments
Labels
blocker Blocks the next release it's targeted for
Milestone

Comments

@MestreLion
Copy link

Using inadyn 2.8.1 from Ubuntu 22.04 jammy repository

/etc/inadyn.conf sets a custom port 1234, and ssl is enabled as default:

custom ddnsp {
        ddns-server = example.com:1234
        ddns-path   = "/nic/update?hostname=%h&myip=%i"
        username    = user
        password    = pass
        hostname    = host
}
helena@minipc ~ $ sudo inadyn --foreground -l debug
inadyn[87031]: In-a-dyn version 2.8.1 -- Dynamic DNS update client.
...
inadyn[86397]: Sending IP# update to DDNS server, initiating HTTPS ...
inadyn[86397]: Sending IP# update to DDNS server, connecting to example.com([2606:2800:220:1:248:1893:25c8:1946]:443)
inadyn[86397]: Certificate OK
...

It ignores the 1234 setting and connects to the default 443 HTTPS port. If ssl = false is set in the config file, then it properly connects to the custom port (with HTTPS disabled, as expected):

inadyn[87044]: Sending IP# update to DDNS server, connecting to example.com([2606:2800:220:1:248:1893:25c8:1946]:1234)
inadyn[87044]: Waiting (5 sec) for three-way handshake to complete ...
inadyn[87044]: Failed connecting to that server: retrying ...
inadyn[87044]: Sending IP# update to DDNS server, reconnecting to example.com([93.184.216.34]:1234)
inadyn[87044]: Waiting (5 sec) for three-way handshake to complete ...
inadyn[87044]: Failed connecting to example.com: Operation now in progress
@troglobit
Copy link
Owner

Confirmed. Same problem also on master, and thus v2.9.1.

Thank you for the excellent report, and example config to help reproduce the problem!

@troglobit troglobit added this to the v2.9.2 milestone May 11, 2022
@troglobit troglobit added the blocker Blocks the next release it's targeted for label May 11, 2022
@troglobit
Copy link
Owner

Should be fixed as of 0b5ac98.

@MestreLion
Copy link
Author

Wow, thanks for the quick fix!

Is there a way to set up a PPA or similar so when 2.9.2 arrives it could be backported to Ubuntu 22.04? I doubt Ubuntu (or Debian) will land it in their official repositories for their current LTS

@troglobit
Copy link
Owner

I've had my own builds, not a PPA, but since the new Debian maintainer took over I've not continued to maintain it. It's not been feasible for me to maintain an entire PPA, there is simply not enough hours in a day.

I suggest reporting this to Debian/Ubuntu so they can backport that specific patch to their 2.8.1 release. I will do a 2.9.2 later, in a couple of months I guess when I circle back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Blocks the next release it's targeted for
Projects
None yet
Development

No branches or pull requests

2 participants