Failed to connect to controller during registration: curl exit code 7

47 views
Skip to first unread message

Michele Salerno

unread,
Jan 21, 2025, 1:49:54 PM1/21/25
to OpenWISP
Hi, I have openwisp server in my lan with NAT on public ip for access
from outside.
An external router registers, if I put an internal router in my lan it
doesn't work

root@OpenWrt:~ # curl https://10.27.22.5 --insecure
curl: (7) Failed to connect to 10.27.22.5 port 443 after 0 ms: Error

root@OpenWrt:~ # curl https://openwisp.nnxx.ninux.org --insecure
curl: (7) Failed to connect to openwisp.nnxx.ninux.org port 443 after 0
ms: Error

I try with lan ip and with domain and I also turned off SSL verification

config controller 'http'
    option url 'https://10.27.22.5'
    option interval '120'
    option management_interval '10'
    #option registration_interval '30'
    option verify_ssl '0'
    option shared_secret 'Secretn1nuxB4s'
    #option consistent_key '1'
    #option mac_interface 'eth0'
    option management_interface 'owzt0192af'
    #option merge_config '1'
    #option tags ''
    #option test_config '1'
    #option test_script '/usr/sbin/mytest'
    #option hardware_id_script '/usr/sbin/read_hw_id'
    #option hardware_id_key '1'
    #option bootup_delay '0'
    #option uuid ''
    #option key ''
    # curl options
    #option connect_timeout '15'
    #option max_time '30'
    #option capath '/etc/ssl/certs'
    #option cacert '/etc/ssl/certs/ca-certificates.crt'
    #option checksum_max_retries '5'
    #option checksum_retry_delay '6'
    # hooks
    #option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
    #option post_reload_hook '/usr/sbin/my_post_reload_hook'

How can I solve it?

Best regards,

Michele Salerno

Federico Capoano

unread,
Jan 21, 2025, 3:23:41 PM1/21/25
to open...@googlegroups.com
The output of the curl commands show that the application is not reachable at the URLs you're trying from your device.

There's not much openwisp can do about it here.

I would check the DNS resolution and ensure the IP targeted responds correctly on port 443.

Federico 

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/openwisp/50c578d3-5a63-4bbd-bf6f-fa3ba271466b%40gmail.com.

Michele Salerno

unread,
Jan 21, 2025, 3:38:44 PM1/21/25
to open...@googlegroups.com

Hi, Federico.

I got the wrong IP address :D

After a hard day's work, it can happen that you lose your mind!

Thanks.


Il 21/01/25 21:23, Federico Capoano ha scritto:
To view this discussion, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6JdxriELV%2BQwZ9hLbt%2B1Yaku698DFFSqt7a-WALuhp%2BbQ%40mail.gmail.com.
-- 
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.

Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
Reply all
Reply to author
Forward
0 new messages