View previous topic :: View next topic |
Author |
Message |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Mon Oct 25, 2004 5:19 pm Post subject: [Install] ddclient [RISOLTO] |
|
|
salve. innanzitutto sappiate che litigo da poco più di un mese con linux, quindi abbiate pazienza se il mio problema vi sembra paragonabile alla questione più idiota mai posta.
Ho emerso l'ebuild di ez-ipupdate per tenere aggiornati i miei account dyndns. Avevo appena capito come avviare i progs come demoni all'avvio con la funzione rc-update ed ecco che subito arriva il programma che non può essere avviato con questo metodo. Mi dicono che devo inserire il prog nel local.start, così, per puro istinto, provo a mettere il comando che via shell funziona, nel suddetto. All'avvio, invece, la mia soluzione si rivela sbagliata.
C'è qualcuno che ha voglia di spiegarmi come funziona la pratica dell'avvio dei demoni via local.start?
grazie a tutti. _________________ SabaziaLUG: il LUG a nord di Roma
Last edited by funkoolow on Thu Oct 28, 2004 11:28 am; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Mon Oct 25, 2004 7:49 pm Post subject: |
|
|
Ti consiglio di usare ddclient. Io lo uso da molto tempo e mi sembra uno dei migliori in circolazione.
Code: |
* net-dns/ddclient
Latest version available: 3.6.2
Latest version installed: 3.6.2
Size of downloaded files: [no/bad digest]
Homepage: http://burry.ca:4141/ddclient/
Description: A perl based client for dyndns
|
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Tue Oct 26, 2004 10:56 am Post subject: |
|
|
in effetti così ho fatto. Indubbio vantaggio, posso usare l'rc-update per far partire il prog come demone. ho quindi provveduto a seguire le istruzioni sul relativo sito per la configurazione:
- cp /etc/ddclient/sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
- inserimento dati relativi al login
- rc-update add ddclient default
tutto ok, il servizio si avvia, peccato che gli effetti non si vedano: ho provato a connettermi con un vecchio portatile via 56k (per non passare dalla stessa linea su cui si collega il webserver) ed la richiesta del sito va in timeout. Pensando potesse esserci qualche problema con l'account su dyndns, ho scaricato un tool per win per aggiornare i siti e se lo faccio refreshare, i relativi dyndns vengono correttamente aggiornati.
Ho pensato potesse essere anche un problema legato al fatto che ho router adsl netgear che interfaccia la connettività, ma nel relativo log non vedo nessuna richiesta bloccata, ed anche ragionevolmente dato che su win passa senza necessità di modificare le regole del firewall.
vi posto il mio config, nel caso fosse utile.
Code: | ######################################################################
##
## Define default global variables with lines like:
## var=value [, var=value]*
## These values will be used for each following host unless overridden
## with a local variable definition.
##
## Define local variables for one or more hosts with:
## var=value [, var=value]* host.and.domain[,host2.and.domain...]
##
## Lines can be continued on the following line by ending the line
## with a \
##
######################################################################
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
#
#use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW
#use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW
#use=smc-barricade, fw=192.168.123.254:80 # via SMC's Barricade FW
#use=netgear-rt3xx, fw=192.168.0.1:80 # via Netgear's internet FW
#use=linksys, fw=192.168.1.1:80 # via Linksys's internet FW
#use=maxgate-ugate3x00, fw=192.168.0.1:80 # via MaxGate's UGATE-3x00 FW
#use=elsa-lancom-dsl10, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
#use=elsa-lancom-dsl10-ch01, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
#use=elsa-lancom-dsl10-ch02, fw=10.0.0.254:80 # via ELSA LanCom DSL/10 DSL Router
#use=alcatel-stp, fw=10.0.0.138:80 # via Alcatel Speed Touch Pro
#use=xsense-aero, fw=192.168.1.1:80 # via Xsense Aero Router
#fw-login=admin, fw-password=XXXXXX # FW login and password
#
## To obtain an IP address from FW status page (using fw-login, fw-password)
#use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address
#
## To obtain an IP address from Web status page (using the proxy if defined)
#use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
#
#use=ip, ip=127.0.0.1 # via static IP's
use=if, if=eth0 # via interfaces
#use=web # via web
#
protocol=dyndns2 # default protocol
#proxy=fasthttp.sympatico.ca:80 # default proxy
server=members.dyndns.org # default server
#server=members.dyndns.org:8245 # default server (bypassing proxies)
login=blablabla # default login
password=blablabla # default password
#mx=mx.for.your.host # default MX
#backupmx=yes|no # host is primary MX?
#wildcard=yes|no # add wildcard CNAME?
##
## dyndns.org dynamic addresses
##
## (supports variables: wildcard,mx,backupmx)
##
server=members.dyndns.org, \
protocol=dyndns2 \
funkoolow.dyndns.org
server=members.dyndns.org, \
protocol=dyndns2 \
funkoolow.homeip.org
##
## dyndns.org static addresses
##
## (supports variables: wildcard,mx,backupmx)
##
# static=yes \
# server=members.dyndns.org, \
# protocol=dyndns2 \
# your-static-host.dyndns.org
##
##
## dyndns.org custom addresses
##
## (supports variables: wildcard,mx,backupmx)
##
# custom=yes \
# server=members.dyndns.org, \
# protocol=dyndns2 \
# your-domain.top-level,your-other-domain.top-level
##
## ZoneEdit (zoneedit.com)
##
# server=www.zoneedit.com, \
# protocol=zoneedit1, \
# login=your-zoneedit-login, \
# password=your-zoneedit-password \
# your.any.domain,your-2nd.any.dom
##
## EasyDNS (easydns.com)
##
# server=members.easydns.com, \
# protocol=easydns, \
# login=your-easydns-login, \
# password=your-easydns-password \
# your.any.domain,your-2nd.any.domain
##
## Hammernode (hn.org) dynamic addresses
##
# server=dup.hn.org, \
# protocol=hammernode1, \
# login=your-hn-login, \
# password=your-hn-password \
# your-hn-host.hn.org,your-2nd-hn-host.hn.org
##
## dslreports.com dynamic-host monitoring
##
# server=members.dslreports.com \
# protocol=dslreports1, \
# login=dslreports-login, \
# password=dslreports-password \
# dslreports-unique-id |
p.s. provvedo anche a cambiare il titolo del topic con ddclient _________________ SabaziaLUG: il LUG a nord di Roma |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guerro Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Funny_Figure/klo.gif)
Joined: 21 Jun 2004 Posts: 417 Location: Brescia
|
Posted: Tue Oct 26, 2004 12:10 pm Post subject: |
|
|
Concordo con "gutter", ddclient è a mio avviso il più semplice e comodo prog per gestire i DNS dinamici su DynDNS.org
![Wink :wink:](images/smiles/icon_wink.gif) _________________ (.(*. .*).)
.. G u e r r o ..
(.(.* *.).) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Tue Oct 26, 2004 5:11 pm Post subject: |
|
|
Lancia il comando:
quando sei connesso e posta il risultato. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Tue Oct 26, 2004 6:50 pm Post subject: |
|
|
Quote: | root@funkserver funkoolow # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:20:18:8D:A1:F0
inet addr:192.168.0.30 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:980 errors:0 dropped:0 overruns:0 frame:0
TX packets:871 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112596 (109.9 Kb) TX bytes:118339 (115.5 Kb)
Interrupt:11 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
|
_________________ SabaziaLUG: il LUG a nord di Roma |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Tue Oct 26, 2004 9:37 pm Post subject: |
|
|
Scusa ma questo è il PC dove è attaccato il modem ?!?
Devi alnciare il comando sul PC dove c'è attaccato il modem ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Wed Oct 27, 2004 1:48 am Post subject: |
|
|
come dicevo sopra, ho un router netgear. L'ip del pc con gentoo è appunto 192.168.0.30 (che infatti risulta), ed il comando l'ho lanciato da una shell ssh2 aperta sul pc con win, dopo essermi loggato appunto sul server linux come root via su.
se poi è proprio necessario cmq posso anche lanciare tutto direttamente dalla shell del linux, anche se mi tocca spostarmi di sedia ![Smile :)](images/smiles/icon_smile.gif) _________________ SabaziaLUG: il LUG a nord di Roma |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Oct 27, 2004 8:00 am Post subject: |
|
|
funkoolow wrote: |
[CUT]
se poi è proprio necessario cmq posso anche lanciare tutto direttamente dalla shell del linux, anche se mi tocca spostarmi di sedia ![Smile :)](images/smiles/icon_smile.gif) |
Non credo sia necessario che ti sposti
Cambia le due righe del tuo file cosi':
Code: | #use=if, if=eth0 # via interfaces
use=web # via web |
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Wed Oct 27, 2004 11:41 am Post subject: |
|
|
grazie ancora, sembra che vada, nel senso che ho l'impressione che i dns siano stati aggiornati. La mia mente malata e paranoica però, cercando conferme, ha fatto qualche test: ho provato a cambiare manualmente i dns dalla pagina su dyndns.org, per poi far restartare il demone con /etc/init.d/ddclient restart, per vedere se i dns si riaggiornavano e ho notato che in effetti NON si riaggiornano, almeno in questo modo. Esiste per caso un log che ddclient controlla prima di effettuare un update?
Cmq, intanto che mi cambia l'ip qui della connessione per avere una conferma definitiva, grazie dell'aiuto. _________________ SabaziaLUG: il LUG a nord di Roma |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Oct 27, 2004 4:30 pm Post subject: |
|
|
funkoolow wrote: | grazie ancora, sembra che vada, nel senso che ho l'impressione che i dns siano stati aggiornati. La mia mente malata e paranoica però, cercando conferme, ha fatto qualche test: ho provato a cambiare manualmente i dns dalla pagina su dyndns.org, per poi far restartare il demone con /etc/init.d/ddclient restart, per vedere se i dns si riaggiornavano e ho notato che in effetti NON si riaggiornano, almeno in questo modo.
|
Devi aspettare qualche minuto, l'aggiornamento non è istantaneo ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
funkoolow Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7643761644156cd264c531.gif)
Joined: 21 Sep 2004 Posts: 545 Location: er paese delle anguille
|
Posted: Thu Oct 28, 2004 11:29 am Post subject: |
|
|
ho appena verificato che funziona tutto perfettamente, ora cambio il topic. Grazie a tutti ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ SabaziaLUG: il LUG a nord di Roma |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|