par eol » 04 Fév 2003 13:28
Arfff depuis le temps que ces questions traine... bon je vais donner mes fichiers de config en pature (RH7.3 comme firewall, modem eicon 2430)
<BR>Fichier /etc/ddclient.conf :
<BR>######################################################################
<BR>##
<BR>## Define default global variables with lines like:
<BR>## var=value [, var=value]*
<BR>## These values will be used for each following host unless overridden
<BR>## with a local variable definition.
<BR>##
<BR>## Define local variables for one or more hosts with:
<BR>## var=value [, var=value]* host.and.domain[,host2.and.domain...]
<BR>##
<BR>## Lines can be continued on the following line by ending the line
<BR>## with a
<BR>##
<BR>######################################################################
<BR>
<BR>daemon=300 # check every 300 seconds
<BR>syslog=yes # log update msgs to syslog
<BR>mail=mon_mail@hotmail.com # mail update msgs to root
<BR>pid=/var/run/ddclient.pid # record PID in file.
<BR>#
<BR>#use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW
<BR>#use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW
<BR>#use=smc-barricade, fw=192.168.123.254:80 # via SMC's Barricade FW
<BR>#use=netgear-rt3xx, fw=192.168.0.1:80 # via Netgear's internet FW
<BR>#use=linksys, fw=192.168.1.1:80 # via Linksys's internet FW
<BR>#use=maxgate-ugate3x00, fw=192.168.0.1:80 # via MaxGate's UGATE-3x00 FW
<BR>#use=elsa-lancom-dsl10, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
<BR>#use=elsa-lancom-dsl10-ch01, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
<BR>#use=elsa-lancom-dsl10-ch02, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
<BR>#use=alcatel-stp, fw=10.0.0.138:80 # via Alcatel Speed Touch Pro
<BR>#use=xsense-aero, fw=192.168.1.1:80 # via Xsense Aero Router
<BR>#fw-login=admin, fw-password=XXXXXX # FW login and password
<BR>#
<BR>## To obtain an IP address from FW status page (using fw-login, fw-password)
<BR>#use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address
<BR>#
<BR>## To obtain an IP address from Web status page (using the proxy if defined)
<BR>use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
<BR>#
<BR>#use=ip, ip=127.0.0.1 # via static IP's
<BR>#use=if, if=eth0 # via interfaces
<BR>#use=web # via web
<BR>#
<BR>protocol=dyndns2 # default protocol
<BR>#proxy=fasthttp.sympatico.ca:80 # default proxy
<BR>#server=members.dyndns.org # default server
<BR>#server=members.dyndns.org:8245 # default server (bypassing proxies)
<BR>
<BR>login=mon_loggin # default login
<BR>password=mon_password # default password
<BR>#mx=mx.for.your.host # default MX
<BR>#backupmx=yes|no # host is primary MX?
<BR>wildcard=yes # add wildcard CNAME?
<BR>
<BR>##
<BR>## dyndns.org dynamic addresses
<BR>##
<BR>## (supports variables: wildcard,mx,backupmx)
<BR>##
<BR> server=members.dyndns.org,
<BR> protocol=dyndns2
<BR> broceliande.homelinux.org
<BR>
<BR>##
<BR>## dyndns.org static addresses
<BR>##
<BR>## (supports variables: wildcard,mx,backupmx)
<BR>##
<BR># static=yes
<BR># server=members.dyndns.org,
<BR># protocol=dyndns2
<BR># your-static-host.dyndns.org
<BR>
<BR>##
<BR>##
<BR>## dyndns.org custom addresses
<BR>##
<BR>## (supports variables: wildcard,mx,backupmx)
<BR>##
<BR># custom=yes
<BR># server=members.dyndns.org,
<BR># protocol=dyndns2
<BR># your-domain.top-level,your-other-domain.top-level
<BR>
<BR>##
<BR>## ZoneEdit (zoneedit.com)
<BR>##
<BR># server=www.zoneedit.com,
<BR># protocol=zoneedit1,
<BR># login=your-zoneedit-login,
<BR># password=your-zoneedit-password
<BR># your.any.domain,your-2nd.any.dom
<BR>
<BR>##
<BR>## EasyDNS (easydns.com)
<BR>##
<BR># server=members.easydns.com,
<BR># protocol=easydns,
<BR># login=your-easydns-login,
<BR># password=your-easydns-password
<BR># your.any.domain,your-2nd.any.domain
<BR>
<BR>##
<BR>## Hammernode (hn.org) dynamic addresses
<BR>##
<BR># server=dup.hn.org,
<BR># protocol=hammernode1,
<BR># login=your-hn-login,
<BR># password=your-hn-password
<BR># your-hn-host.hn.org,your-2nd-hn-host.hn.org
<BR>
<BR>##
<BR>## dslreports.com dynamic-host monitoring
<BR>##
<BR># server=members.dslreports.com
<BR># protocol=dslreports1,
<BR># login=dslreports-login,
<BR># password=dslreports-password
<BR># dslreports-unique-id
<BR>
<BR>
<BR>
<BR>Fichier /etc/init.d/ddclientd :
<BR>#!/bin/sh
<BR>#
<BR># ddclient This shell script takes care of starting and stopping
<BR># ddclient.
<BR>#
<BR># chkconfig: 2345 65 35
<BR># description: ddclient provides support for updating dynamic DNS services.
<BR>
<BR>[ -f /etc/ddclient.conf ] || exit 0
<BR>
<BR>. /etc/rc.d/init.d/functions
<BR>
<BR># See how we were called.
<BR>case "$1" in
<BR> start)
<BR> # Start daemons.
<BR> echo -n "Starting ddclient: "
<BR> touch /var/lock/subsys/ddclient
<BR> daemon /usr/local/sbin/ddclient -debug -syslog -daemon 300
<BR> echo
<BR> ;;
<BR> stop)
<BR> # Stop daemons.
<BR> echo -n "Shutting down ddclient: "
<BR> killproc ddclient
<BR> echo
<BR> rm -f /var/lock/subsys/ddclient
<BR> ;;
<BR> restart)
<BR> $0 stop
<BR> $0 start
<BR> ;;
<BR> status)
<BR> status ddclient
<BR> ;;
<BR> *)
<BR> echo "Usage: ddclient {start|stop|restart|status}"
<BR> exit 1
<BR>esac
<BR>
<BR>exit 0
<BR>
<BR>
<BR>Voila tout. Le fichier de config precise qu'il faut ce connecter a une page web pour verifier si l'IP a changer (use=web, web=checkip.dyndns.org). Ceci permet d'obtenir l'ip de l'interface connecter au net. La verification ce fait toutes les 5 minutes (si si, ca marche sans pb), et une alarme est envoyer sur mon mail en cas de changement d'IP.
<BR>
<BR>Voila, ca marche depuis 1 ans sur mon systeme sans pb aucun, a vous d'adapter le fichier de config <IMG SRC="images/smiles/icon_bise.gif">
Le paresseux demande un oiseau, le courageux ne demande qu'un arc et des fleches (proverbe indien), auquel j'ajoute : le présomptueux ne demande qu'un arc et une fleche