centerclick / feedback

Issues, Bug Reports, and Feature Requests
7 stars 0 forks source link

ntp pool now requires verification #111

Closed sgrayban closed 6 months ago

sgrayban commented 7 months ago

To verify that you operate the server retrieve a verification token by doing an HTTP request from the NTP server to https:// validate4.ntppool.dev/p/. The validation server will return a URL for you to load to finish the validation process.

For example one of these commands:

curl --interface X.X.X.X https://validate4.ntppool.dev/p/

wget --bind-address=X.X.X.X -O- https://validate4.ntppool.dev/p/

dave4445 commented 7 months ago

yep, I noticed this too. I'll add a command to do this

sgrayban commented 7 months ago

Thanks !

dave4445 commented 6 months ago
ntp-demo1.centerclick.com> ntppool validate -4
To verify this server with the NTP Pool, visit

https://manage.ntppool.org/manage/server/verify/xxxxxxxx

2024-03-10 17:12:22 URL:https://validate4.ntppool.dev/p/ [106/106] -> "-" [1]

ntp-demo1.centerclick.com> ntppool validate -6
To verify this server with the NTP Pool, visit

https://manage.ntppool.org/manage/server/verify/xxxxxxxx

2024-03-10 17:12:54 URL:https://validate6.ntppool.dev/p/ [106/106] -> "-" [1]

ntp-demo1.centerclick.com> 
sgrayban commented 6 months ago

hmm getting a error for the 6

clock.borgnet.us> ntppool validate -6 https://validate6.ntppool.dev/p/: 2024-03-12 14:35:11 ERROR 404: Not Found.

the host pings and traces fine

dave4445 commented 6 months ago

https://validate6.ntppool.dev/p/ gives you a 404 if no validation is pending

sgrayban commented 6 months ago

But it is

sgrayban commented 6 months ago

I wonder if the ntp device is binding to a different ipv6

2603:3023:3e4:c900::ae3e/128
2603:3023:3e4:c900:70f7:75ff:fed6:d6d4/64
fe80::70f7:75ff:fed6:d6d4/64

The second 6 is the one it should be binding to

sgrayban commented 6 months ago

Yup that's the issue -- its binding to the first 6 address which is is right but wrong also -- my block is the /64 not the /128

I don't know how to fix this..

dave4445 commented 6 months ago

The 1st address is the address assigned by your DHCPv6 server and takes precidence over the EUI64 based address for outbound connections. And yes it should be a /128, that's just how DHCPv6 works. I could add another arg to the command to bind to an arbitrary address, but the address selection is doing the right thing given the 2 available choices. DHCPv6 is just higher priority.

sgrayban commented 6 months ago

Ok