View previous topic :: View next topic |
Author |
Message |
jerep6 Apprentice


Joined: 02 Aug 2006 Posts: 215 Location: Landes
|
Posted: Wed Aug 02, 2006 4:55 pm Post subject: [ddclient] ddclient ne checke pas l'ip (resolu) |
|
|
Salut j'ai installé ddclient mais j'ai un petit probleme avec. Quand je le lance moi même il fonctionne tres bien:
Code: | /etc/init.d/ddclient start |
Une fois lancé, il devrait checker l'ip toute les X secondes mais il ne le fais pas. J'ai essayé de mettre la variable RC_NET_STRICT_CHECKING à "yes" (elle est à "no" d'origine) du fichier /etc/conf.d/rc mais c'est pareil.
J'ai ddclient-3.6.6
Code: |
daemon=180 # check every 300 seconds
syslog=yes # log update msgs to syslog
#mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient/ddclient.pid # record PID in file.
use=web # via web
protocol=dyndns2 # default protocol
server=members.dyndns.org # default server
login=jerep6 # default login
password=... # default password
jerep6.dyndns.org,jerep6.homelinux.org,acimflo.homelinux.com |
Voilà......
Last edited by jerep6 on Thu Aug 03, 2006 4:25 pm; edited 2 times in total |
|
Back to top |
|
 |
netfab Veteran

Joined: 03 Mar 2005 Posts: 1985 Location: 127.0.0.1
|
Posted: Wed Aug 02, 2006 10:53 pm Post subject: |
|
|
Salut,
Rien dans les logs ?
(Peux-tu modifier ton titre selon les conventions, merci.)
Edit : peut-être ceci ? |
|
Back to top |
|
 |
jerep6 Apprentice


Joined: 02 Aug 2006 Posts: 215 Location: Landes
|
Posted: Thu Aug 03, 2006 11:41 am Post subject: |
|
|
Ou se trouve le log de ddclient? Dans /var/log/ je ne le vois pas. Dans /var/log/messages j'ai trouvé ça
Code: | WARNING: file /etc/ddclient/ddclient.conf: file /etc/ddclient/ddclient.conf must be accessible only by its owner
FATAL: Cannot create file '/etc/ddclient/ddclient.cache'. (Permission denied) | J'ai mis "web=web=checkip.dyndns.org" mais je ne pense pas que le problème vienne de là, mais qui sait?
Mon interface réseaux est br0 (j'ai un bridge) est ce que ça peut venir de là? Pourtant sous debian ça passe bien.
Est ce qu'il y a des gens derriere un routeur utilisant ddclient sous gentoo (et ayant eventuellement un brige) pour qui ddclient fonctionne.
Quelles conventions? |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Aug 03, 2006 12:48 pm Post subject: |
|
|
Il faut aussi faire ce qui est imploré par le log : Code: | chmod 600 /etc/ddclient/ddclient.conf
chown ddclient:ddclient /etc/ddclient/ddclient.conf
touch /etc/ddclient/ddclient.cache
chmod 600 /etc/ddclient/ddclient.cache
chown ddclient:ddclient /etc/ddclient/ddclient.cache
|
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
kernelsensei Bodhisattva


Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Thu Aug 03, 2006 12:48 pm Post subject: |
|
|
Salut et bienvenue sur le forum gentoo
jerep6 wrote: | Quelles conventions? |
Celles-ci  _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
 |
PabOu Veteran


Joined: 11 Feb 2004 Posts: 1088 Location: Namur - Belgium
|
Posted: Thu Aug 03, 2006 1:41 pm Post subject: |
|
|
XavierMiller wrote: | Il faut aussi faire ce qui est imploré par le log : Code: | chmod 600 /etc/ddclient/ddclient.conf
chown ddclient:ddclient /etc/ddclient/ddclient.conf
touch /etc/ddclient/ddclient.cache
chmod 600 /etc/ddclient/ddclient.cache
chown ddclient:ddclient /etc/ddclient/ddclient.cache
|
|
plus simple :
Code: | chown -R ddclient:ddclient /etc/ddclient
chmod 600 /etc/ddclient/* |
Et ca suffit ;-) _________________ Mangez du poulet ! |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Aug 03, 2006 1:55 pm Post subject: |
|
|
à part que le fichier Code: | /etc/ddclient/ddclient.cache | n'existe pas encore
ma méthode est au moins "chirurgicale", en ne touchant pas à d'éventuels autres fichiers  _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
PabOu Veteran


Joined: 11 Feb 2004 Posts: 1088 Location: Namur - Belgium
|
Posted: Thu Aug 03, 2006 2:24 pm Post subject: |
|
|
XavierMiller wrote: | à part que le fichier Code: | /etc/ddclient/ddclient.cache | n'existe pas encore ;) |
ddclient va le créer. Edit : il va pouvoir le créer grâce aux permissions sur le répertoire
XavierMiller wrote: | ma méthode est au moins "chirurgicale", en ne touchant pas à d'éventuels autres fichiers ;) |
Normalement, personne ne doit avoir accès au répertoire, et donc rien ne devrait se trouver dans le répertoire. Si c'est le cas, il y a (à mon avis) un problème bien plus grave que celui potentiellement engendré par ma commande.
Et puis moi, je change les permissions sur le répertoire aussi, ce qu'il me semble, ddclient demande également. _________________ Mangez du poulet !
Last edited by PabOu on Thu Aug 03, 2006 2:39 pm; edited 2 times in total |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Aug 03, 2006 2:33 pm Post subject: |
|
|
ok, chuis ko  _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
jerep6 Apprentice


Joined: 02 Aug 2006 Posts: 215 Location: Landes
|
Posted: Thu Aug 03, 2006 3:57 pm Post subject: |
|
|
Whaaaaooooooo vraiment baleze les gentoistes.
Il suffisait de faire ça
Code: | chown -R ddclient:ddclient /etc/ddclient
chmod 600 /etc/ddclient/* |
Merci à tous... |
|
Back to top |
|
 |
|