OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: novel on November 28, 2023, 09:28:16 AM

Title: How to solve ddclient error message?
Post by: novel on November 28, 2023, 09:28:16 AM
Hello,

I use the service ddclient 1.17  version then I have a profile to update my dns hostname. but always shows the below messages.

2023-11-28T10:06:51   Notice   ddclient   WARNING: Could not determine an IP for ....
2023-11-28T10:06:51   Notice   ddclient   WARNING: found neither IPv4 nor IPv6 address   
2023-11-28T10:06:51   Notice   ddclient   WARNING: '' is not a valid IPv4 or IPv6 address

I have bellow settings.

Service                         no-ip
username                     .....
password                     .....
check ip method         interface
interface to monitor    wan
check ip timout            10
force ssl                        tick
Title: Re: How to solve ddclient error message?
Post by: tiermutter on November 28, 2023, 09:33:42 AM
Again, I know from other thread (others won't) that your WAN interface has an internal IP, probably due to a upstream router/modem.
In this case you must not use "interface" as method. Use any other.
Title: Re: How to solve ddclient error message?
Post by: novel on November 28, 2023, 10:00:46 AM
Quote from: tiermutter on November 28, 2023, 09:33:42 AM
Again, I know from other thread (others won't) that your WAN interface has an internal IP, probably due to a upstream router/modem.
In this case you must not use "interface" as method. Use any other.


I changed a lot of other protocols in section check ip method. It doesn't work
Title: Re: How to solve ddclient error message?
Post by: tiermutter on November 28, 2023, 10:06:40 AM
Ok... now i remember this: https://forum.opnsense.org/index.php?topic=37211.msg182268#msg182268

Please screenshots from your gateways and routing table.
Probably the traffic is routed over VPN issueing the same error message.
Title: Re: How to solve ddclient error message?
Post by: novel on November 28, 2023, 10:34:57 AM
Quote from: tiermutter on November 28, 2023, 10:06:40 AM
Ok... now i remember this: https://forum.opnsense.org/index.php?topic=37211.msg182268#msg182268

Please screenshots from your gateways and routing table.
Probably the traffic is routed over VPN issueing the same error message.


The same problem is without enabled vpn
Title: Re: How to solve ddclient error message?
Post by: tiermutter on November 28, 2023, 10:41:53 AM
Quote from: tiermutter on November 28, 2023, 10:06:40 AM
Please screenshots from your gateways and routing table.
Probably the traffic is routed over VPN issueing the same error message.
Title: Re: How to solve ddclient error message?
Post by: novel on November 28, 2023, 11:20:47 AM
Quote from: tiermutter on November 28, 2023, 10:41:53 AM
Quote from: tiermutter on November 28, 2023, 10:06:40 AM
Please screenshots from your gateways and routing table.
Probably the traffic is routed over VPN issueing the same error message.

ok
Title: Re: How to solve ddclient error message?
Post by: tiermutter on November 28, 2023, 11:24:45 AM
Ok, there are some other issues... Your VPN GW is down. Should be in normal (up) condition for further testing.
Title: Re: How to solve ddclient error message?
Post by: novel on November 29, 2023, 09:01:47 PM

I don't understand which is the meaning of this forum. Is this forum to help old opnsense users the newbie like me?    :-[ :-[


I format 2 times then I installed the opnsesne from scratch. The first thing was to installed os-ddclient. ddclient cannot update noip service. It show below messages


2023-11-28T10:06:51   Notice   ddclient   WARNING: Could not determine an IP for ....
2023-11-28T10:06:51   Notice   ddclient   WARNING: found neither IPv4 nor IPv6 address   
2023-11-28T10:06:51   Notice   ddclient   WARNING: '' is not a valid IPv4 or IPv6 address


Please, is anybody here that solved this error? Am unique person here that I have this problem?  Do you use other plugn to update dynamic dns?

Pleaase any help will be welcoming
Title: Re: How to solve ddclient error message?
Post by: cookiemonster on November 29, 2023, 10:31:39 PM
Not being funny but you have had a lot of help. And you seem to not use some courtesy sometimes. For instance on this https://forum.opnsense.org/index.php?topic=37186.15 you asked a question. One was asked back to understand your requirement and never answered, like you just abandoned the thread without care when people were trying to understand your requirement.
Be patient and have some thread hygiene please.
Title: Re: How to solve ddclient error message?
Post by: novel on November 30, 2023, 09:49:20 AM
Quote from: cookiemonster on November 29, 2023, 10:31:39 PM
Not being funny but you have had a lot of help. And you seem to not use some courtesy sometimes. For instance on this https://forum.opnsense.org/index.php?topic=37186.15 you asked a question. One was asked back to understand your requirement and never answered, like you just abandoned the thread without care when people were trying to understand your requirement.
Be patient and have some thread hygiene please.

when was I not courtesy? I am very sorry if happen, but I would like to know when happened.

So, do you know how it solves this problem? Do you want any more information?


Thank you for responding.

Title: Re: How to solve ddclient error message?
Post by: cookiemonster on November 30, 2023, 01:38:09 PM
please re-read tiermutter's inputs. That's what will help you solve it.

> 2023-11-28T10:06:51   Notice   ddclient   WARNING: Could not determine an IP for ....
could not determine an ip for what? Is it an interface name there or is that the actual log?

> 2023-11-28T10:06:51   Notice   ddclient   WARNING: found neither IPv4 nor IPv6 address   
>2023-11-28T10:06:51   Notice   ddclient   WARNING: '' is not a valid IPv4 or IPv6 address
The message is clear, ddclient can't find an ip address and tiermutter has told you that from previous interactions your wan is a private ip and you need to have the vpn up in your particular setup for further testing.

The log message is clear despite all your efforts to mask your information all along on multiple posts/threads. Maybe you're very "security conscious" but I'm not sure what you are trying to do with so much apparent cloak and dagger stuff, wanting to break encryption and tunnel connections. It's all very strange to me.
Title: Re: How to solve ddclient error message?
Post by: novel on December 01, 2023, 01:48:14 PM
Quote from: cookiemonster on November 30, 2023, 01:38:09 PM
please re-read tiermutter's inputs. That's what will help you solve it.

> 2023-11-28T10:06:51   Notice   ddclient   WARNING: Could not determine an IP for ....
could not determine an ip for what? Is it an interface name there or is that the actual log?

> 2023-11-28T10:06:51   Notice   ddclient   WARNING: found neither IPv4 nor IPv6 address   
>2023-11-28T10:06:51   Notice   ddclient   WARNING: '' is not a valid IPv4 or IPv6 address
The message is clear, ddclient can't find an ip address and tiermutter has told you that from previous interactions your wan is a private ip and you need to have the vpn up in your particular setup for further testing.

The log message is clear despite all your efforts to mask your information all along on multiple posts/threads. Maybe you're very "security conscious" but I'm not sure what you are trying to do with so much apparent cloak and dagger stuff, wanting to break encryption and tunnel connections. It's all very strange to me.

So would you like to start from beginning? Please tell me what information you want to upload then tell me what do you want to do.

As I said, I try ddclient without vpn with no luck. Please tell me what do want to do for you.

Thank you
Title: Re: How to solve ddclient error message?
Post by: novel on December 02, 2023, 05:36:40 PM
IF I PUT BELOW TWO LINES

use=if, if=igb2
use=web, web=freemyip.com/checkip

THEN WORKS, BUT EVERY BOOT ERASE THESE LINES.  I USE NOIP.

IS THERE ALTERNATIVE TO DDCLIENT OR ALTERNATIVE TO NOIP?

is there free dynamic dns service that works with opnsense?

Thank you
Title: Re: How to solve ddclient error message?
Post by: novel on December 06, 2023, 11:22:30 AM

As I said If I put inside /usr/local/etc/ddclient.conf

theese two lines

use=if, if=igb2
use=web, web=freemyip.com/checkip

then works fine

The problem is OPNsense gui cuts this line  and change ddclient.conf file to

syslog=yes                  # log update msgs to syslog
pid=/var/run/ddclient.pid   # record PID in file.
verbose=yes

usev4=ifv4, ifv4=igb2, \
protocol=noip, \
login=.....@... \
password=.....
hostname.dynamic....


How to solve that?

Title: Re: How to solve ddclient error message?
Post by: hunter86_bg on February 04, 2024, 12:26:11 PM
I noticed that I had the same problem with no-ip but now it works:

Account settings:
Service: noip
username: my-email
pass: noip pass
hostname: FQDN1, FQDN2
Check ip method: Interface[ipv4]
Interface to monitor: wan
check ip timeout: 10
Force SSL: ticked

General Settings:
Enable: ticked
Interval: 300
Backend: native (with ddclient fails miserably)
Title: Re: How to solve ddclient error message?
Post by: novel on February 06, 2024, 08:35:02 PM
Quote from: hunter86_bg on February 04, 2024, 12:26:11 PM
I noticed that I had the same problem with no-ip but now it works:

Account settings:
Service: noip
username: my-email
pass: noip pass
hostname: FQDN1, FQDN2
Check ip method: Interface[ipv4]
Interface to monitor: wan
check ip timeout: 10
Force SSL: ticked

General Settings:
Enable: ticked
Interval: 300
Backend: native (with ddclient fails miserably)

Please , would you like to upload a screenshot?