-
Notifications
You must be signed in to change notification settings - Fork 322
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
Unable to determine IP address #84
Comments
I'm not very experienced with this but my guesses would be the following:
Check which method ddclient is using to determine the ip-address of your WAN interface. This is determined by the Also, I see a lot of your lines are ending with a comma, which I would remove since I don't think they should be there. |
@minuzed, thanks for the suggestions. I excised the commas and added However, I still get the same results:
Where should I go from here? |
To the reason that your ubuntu server is probably located behind an router, you should use the option as example my cloudflare setup
|
@libertyx82, thanks for the suggestion. That is correct; my server is set up behind a home router. I added
This caused some changes in the error messages:
I'm starting to suspect my firewall has something to do with it. UFW logs show an abundance of items like this (extra items removed):
My UFW settings look like this:
Is there something I should add to UFW in order to allow ddclient to function? |
@SpencerDub, those are some odd problems.
If you access http://checkip.dyndns.org/ from a computer on your
network, does it show your IP? What if you try to ping it from your server?
- Dave
…On 11/23/19 3:02 PM, SpencerDub wrote:
@libertyx82 <https://github.com/libertyx82>, thanks for the
suggestion. That is correct; my server is set up behind a home router.
I added |use=web, web=checkip.dyndns.org| to the config file:
|## ## CloudFlare (www.cloudflare.com) ## ssl=yes protocol=cloudflare
server=www.cloudflare.com zone=<mydomain.us> use=web
web=checkip.dyndns.org ***@***.***> password=API KEY
<mydomain.us> |
This caused some changes in the error messages:
DEBUG: proxy =
DEBUG: url = checkip.dyndns.org
DEBUG: server = checkip.dyndns.org
CONNECT: checkip.dyndns.org
WARNING: cannot connect to checkip.dyndns.org:80 socket:
IO::Socket::INET: Bad hostname 'checkip.dyndns.org'
WARNING: found neither ipv4 nor ipv6 address
DEBUG: get_ip: using web, checkip.dyndns.org reports
WARNING: unable to determine IP address
I'm starting to suspect my firewall has something to do with it. UFW
logs show an abundance of items like this (extra items removed):
Nov 12 19:39:44 alexandria [...] [UFW BLOCK] IN=enp3s0 OUT= [...]
SRC=192.168.0.1 DST=224.0.0.1
My UFW settings look like this:
|Status: active Logging: on (low) Default: deny (incoming), allow
(outgoing), deny (routed) New profiles: skip To Action From -- ------
---- 137,138/udp (Samba) ALLOW IN 192.168.0.0/16 # allow Samba
139,445/tcp (Samba) ALLOW IN 192.168.0.0/16 # allow Samba <SSH
port>/tcp LIMIT IN Anywhere # allow SSH connections (on <SSH port>)
80/tcp ALLOW IN Anywhere # allow HTTP 443/tcp ALLOW IN Anywhere #
allow HTTPS <SSH port>/tcp (v6) LIMIT IN Anywhere (v6) # allow SSH
connections (on port <SSH port>) 80/tcp (v6) ALLOW IN Anywhere (v6) #
allow HTTP 443/tcp (v6) ALLOW IN Anywhere (v6) # allow HTTPS |
Is there something I should add to UFW in order to allow ddclient to
function?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#84?email_source=notifications&email_token=AFRFCWUOF37BY5KXY6NSUFLQVGK77A5CNFSM4JOA7NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE75TEA#issuecomment-557832592>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRFCWR2HYTWZZ6H7H6GYELQVGK77ANCNFSM4JOA7NUA>.
|
@DaveSophoServices, when I access http://checkip.dyndns.org/ from my desktop computer (not my server), it does indeed show my IP. But
I get the same result from |
What does It should look like this
|
Looks like a DNS issue. Are you able to resolve any other names? |
I get this:
Which doesn't look at all similar.
Pinging google.com and mit.edu both give me the same issue: "Temporary failure in name resolution". |
I looked around and found this resource on opening port 53 via UFW. I added the following UFW rules:
After a reboot, this seems to have resolved ddclient's issue with determining the IP address. When I run
|
After a reboot, this seems to have resolved ddclient's issue with determining the IP address!
Great news!
-Dave
|
Hi there,
Result run clear on console for the IPv6: with the same skip option
and works very well. Result run clear on console for the IPv4:
|
This worked for me! Thank you! |
I've got the same problem here. Have you found a solution or a workaround meanwhile? |
I'm still trying to get ddclient set up on my Ubuntu server using Cloudflare for DNS.
When I run
ddclient -daemon=0 -debug -verbose -noquiet
, I get several error messages, including:(Other error messages include warnings about permissions for
ddclient.conf
, a fatal error about failing to createddclient.cache
, and errors with sendmail, but I feel pretty confident that those are separate issues.)The relevant section of
ddclient.conf
is:What can I do to resolve these issues so that ddclient can properly identify my IP address?
Thanks.
The text was updated successfully, but these errors were encountered: