PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Update der IP-adresse bei dyndns.org



/home/franz
08.02.04, 12:22
hi@all,
hab hier n Problem:
Seit vorgestern funktioniert mein script nicht mehr hab aber nix dran geändert!
/etc/cron.minutly/checkdsl:


#!/bin/bash
#
# Script zur Überprüfung der Internet-Verbindung
#
# PID vom ppd speichern:
PPP_ID=$(pidof pppd)

# Test der Verbindung + gegebenfalls Neuverbinden
[ -n "$PPP_ID" ] || connect; echo " Connection was down" >> ~/connection.log;

echo "Connection was testet" >> ~/connection.log


/etc/cron.minutly/restartdsl:


#!/bin/bash
#
# Script zum Neustarten der Internet-Verbindung
#

cinternet --interface-name dsl0 --stop
cinternet --interface-name dsl0 --start
cinternet --interface-name dsl0 --start

ping -c 5 suse.de

ifdown dsl0
connect

echo "Connection restartet" > ~/connection.log


~/connection.log:


Connection was testet
Connection was down
Connection was testet


/usr/bin/connect:


#!/bin/bash

ifup dsl0 &
ping -c 5 suse.de
/usr/local/bin/ez-ipupdate -c /etc/ez-ipupdate.conf

echo "IP-upgedated" > ~/ip-update.log


Auszug aus /var/log/messages:


Feb 8 06:00:00 router /USR/SBIN/CRON[6325]: (root) CMD ( /bin/yasuc)
Feb 8 06:00:00 router /USR/SBIN/CRON[6326]: (root) CMD ( /etc/cron.minutly/rm-squid-log)
Feb 8 06:00:01 router /USR/SBIN/CRON[6327]: (root) CMD ( /etc/cron.minutly/restartdsl)
Feb 8 06:00:01 router /USR/SBIN/CRON[6329]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:00:01 router pppd[8844]: Terminating on signal 15.
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase terminate (was running).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase network (was terminate).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase terminate (was network).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase dead (was terminate).
Feb 8 06:00:01 router modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf
Feb 8 06:00:02 router kernel: kcapi: appl 2 ncci 0x10102 down
Feb 8 06:00:02 router pppd[8844]: Hangup (SIGHUP)
Feb 8 06:00:02 router pppd[8844]: capiplugin: disconnect(local): "" -> "" outgoing 0x0000 (0x3312) - No additional information
Feb 8 06:00:02 router pppd[8844]: Connection terminated.
Feb 8 06:00:02 router pppd[8844]: Connect time 1440.0 minutes.
Feb 8 06:00:02 router pppd[8844]: Sent 5417753 bytes, received 83380552 bytes.
Feb 8 06:00:02 router pppd[8844]: tcflush failed: Input/output error
Feb 8 06:00:02 router pppd[8844]: capiplugin: phase disconnect (was dead).
Feb 8 06:00:02 router pppd[8844]: Script /etc/ppp/ip-down finished (pid 6337), status = 0x0
Feb 8 06:00:02 router pppd[8844]: capiplugin: exit
Feb 8 06:00:02 router pppd[8844]: Exit.
Feb 8 06:00:02 router kernel: kcapi: appl 2 down
Feb 8 06:00:03 router modify_resolvconf: restored /etc/resolv.conf.saved.by.smpppd to /etc/resolv.conf
Feb 8 06:00:04 router modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.19-4GB/modules.dep
Feb 8 06:00:04 router modify_resolvconf: Service smpppd modified /etc/resolv.conf. See info block in this file
Feb 8 06:00:04 router pppd[6641]: Plugin capiplugin.so loaded.
Feb 8 06:00:04 router pppd[6641]: capiplugin: $Revision: 1.27 $
Feb 8 06:00:04 router pppd[6641]: capiconn: 1.7
Feb 8 06:00:05 router pppd[6641]: Plugin passwordfd.so loaded.
Feb 8 06:00:05 router kernel: kcapi: appl 2 up
Feb 8 06:00:05 router pppd[6641]: pppd 2.4.1 started by root, uid 0
Feb 8 06:00:05 router pppd[6641]: Using interface ppp0
Feb 8 06:00:05 router pppd[6641]: local IP address 192.168.99.1
Feb 8 06:00:05 router pppd[6641]: remote IP address 192.168.99.99
Feb 8 06:00:05 router pppd[6641]: capiplugin: phase dormant.
Feb 8 06:00:05 router pppd[6641]: Starting link
Feb 8 06:00:05 router pppd[6641]: capiplugin: phase serialconn (was dormant).
Feb 8 06:00:05 router pppd[6641]: capiplugin: leased line (adslpppoe)
Feb 8 06:00:05 router kernel: kcapi: appl 2 ncci 0x10102 up
Feb 8 06:00:05 router pppd[6641]: capiplugin: connected: "" -> "" outgoing
Feb 8 06:00:05 router pppd[6641]: capiplugin: using /dev/capi/0: "" -> "" outgoing
Feb 8 06:00:06 router pppd[6641]: Connect: ppp0 <--> /dev/capi/0
Feb 8 06:00:06 router pppd[6641]: capiplugin: phase establish (was serialconn).
Feb 8 06:00:06 router pppd[6641]: capiplugin: phase authenticate (was establish).
Feb 8 06:00:07 router pppd[6641]: capiplugin: phase network (was authenticate).
Feb 8 06:00:08 router pppd[6641]: Local IP address changed to 80.145.145.135
Feb 8 06:00:08 router pppd[6641]: Remote IP address changed to 217.5.98.129
Feb 8 06:00:09 router pppd[6641]: Open UDP 80.145.145.135:4520 -> 194.25.2.129:53
Feb 8 06:00:09 router pppd[6641]: capiplugin: phase running (was network).
Feb 8 06:00:10 router kernel: tcp_v4_rebuild_header(): shifting sk->saddr from 80.145.135.96 to 80.145.145.135
Feb 8 06:00:10 router modify_resolvconf: Service pppd modified /etc/resolv.conf. See info block in this file
Feb 8 06:00:10 router pppd[6641]: Script /etc/ppp/ip-up finished (pid 6656), status = 0x0
Feb 8 06:00:10 router yasuc[6325]: Transfer successful
Feb 8 06:00:15 router ntpdate[6756]: adjust time server 192.53.103.103 offset -0.041825 sec
Feb 8 06:00:15 router poll.tcpip: Try to get initial date and time via NTP from ptbtime1.ptb.de..done
Feb 8 06:00:45 router inetd[18915]: smtp/tcp: bind: Address already in use
Feb 8 06:01:59 router /USR/SBIN/CRON[6768]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:04:00 router /USR/SBIN/CRON[6807]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:06:00 router /USR/SBIN/CRON[6846]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:08:00 router /USR/SBIN/CRON[6885]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:10:00 router /USR/SBIN/CRON[6925]: (root) CMD ( /etc/cron.minutly/rm-squid-log)
Feb 8 06:10:00 router /USR/SBIN/CRON[6926]: (root) CMD ( /etc/cron.minutly/checkdsl >/dev/null)
Feb 8 06:10:45 router inetd[18915]: smtp/tcp: bind: Address already in use

/var/log/localmessages:


Feb 8 06:00:01 router pppd[8844]: Terminating on signal 15.
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase terminate (was running).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase network (was terminate).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase terminate (was network).
Feb 8 06:00:01 router pppd[8844]: capiplugin: phase dead (was terminate).
Feb 8 06:00:02 router pppd[8844]: Hangup (SIGHUP)
Feb 8 06:00:02 router pppd[8844]: capiplugin: disconnect(local): "" -> "" outgoing 0x0000 (0x3312) - No additional information
Feb 8 06:00:02 router pppd[8844]: Connection terminated.
Feb 8 06:00:02 router pppd[8844]: Connect time 1440.0 minutes.
Feb 8 06:00:02 router pppd[8844]: Sent 5417753 bytes, received 83380552 bytes.
Feb 8 06:00:02 router pppd[8844]: tcflush failed: Input/output error
Feb 8 06:00:02 router pppd[8844]: capiplugin: phase disconnect (was dead).
Feb 8 06:00:02 router pppd[8844]: Script /etc/ppp/ip-down finished (pid 6337), status = 0x0
Feb 8 06:00:02 router pppd[8844]: capiplugin: exit
Feb 8 06:00:02 router pppd[8844]: Exit.
Feb 8 06:00:04 router pppd[6641]: Plugin capiplugin.so loaded.
Feb 8 06:00:04 router pppd[6641]: capiplugin: $Revision: 1.27 $
Feb 8 06:00:04 router pppd[6641]: capiconn: 1.7
Feb 8 06:00:05 router pppd[6641]: Plugin passwordfd.so loaded.
Feb 8 06:00:05 router pppd[6641]: pppd 2.4.1 started by root, uid 0
Feb 8 06:00:05 router pppd[6641]: Using interface ppp0
Feb 8 06:00:05 router pppd[6641]: local IP address 192.168.99.1
Feb 8 06:00:05 router pppd[6641]: remote IP address 192.168.99.99
Feb 8 06:00:05 router pppd[6641]: capiplugin: phase dormant.
Feb 8 06:00:05 router pppd[6641]: Starting link
Feb 8 06:00:05 router pppd[6641]: capiplugin: phase serialconn (was dormant).
Feb 8 06:00:05 router pppd[6641]: capiplugin: leased line (adslpppoe)
Feb 8 06:00:05 router pppd[6641]: capiplugin: connected: "" -> "" outgoing
Feb 8 06:00:05 router pppd[6641]: capiplugin: using /dev/capi/0: "" -> "" outgoing
Feb 8 06:00:06 router pppd[6641]: Connect: ppp0 <--> /dev/capi/0
Feb 8 06:00:06 router pppd[6641]: capiplugin: phase establish (was serialconn).
Feb 8 06:00:06 router pppd[6641]: capiplugin: phase authenticate (was establish).
Feb 8 06:00:07 router pppd[6641]: capiplugin: phase network (was authenticate).
Feb 8 06:00:08 router pppd[6641]: Local IP address changed to 80.145.145.135
Feb 8 06:00:08 router pppd[6641]: Remote IP address changed to 217.5.98.129
Feb 8 06:00:09 router pppd[6641]: Open UDP 80.145.145.135:4520 -> 194.25.2.129:53
Feb 8 06:00:10 router pppd[6641]: Script /etc/ppp/ip-up finished (pid 6656), status = 0x0


/etc/ez-ipupdate.conf:


service-type=dyndns
user=***:***
host=ab****er.homelinux.net
interface=ppp0


AVM FritzCard DSL mit isdn es ging alles pc lief seit 140d und ab vorgestern ging das updaten von der ip nicht mehr.es wurde nur einmal kurz die
telefonanlage ausgesteckt. Von den PC´s auf die das internet geroutet wird kommt man ohne probleme ins Internet.
Von außen kommt man nur noch über die ip rein.d.h. das IP-Update geht nicht. Heute morgen wurde sogar die
adresse bei dyndns.org gesperrt wegen mehrfachem updaten innerhalb kurzer Zeit :ugly:
kernel 2.4.19-4GB
gcc:


router:~ # gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.2/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --enable-libgcj
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.2


Ich hoffe ihr könnt mir helfen. Falls ihr noch mehr Informationen braucht einfach sagen :D

Franz

Papischlumpf
08.02.04, 12:32
warum lädst du dir bei dyndns.org nicht einfach ez-ipupdate herunter, könntest dir alle mühen sparen ...

/home/franz
08.02.04, 12:32
es ist ez-ipupdate :ugly:

EDIT:
router:/usr/local/bin # ./ez-ipupdate --version
./ez-ipupdate: - 3.0.11b8 - $Id: ez-ipupdate.c,v 1.48 2001/07/17 00:49:41 amackay Exp $

minimike
08.02.04, 12:56
ich nutze ddclient so mal als Ersatz in den Raum geworfen

/home/franz
08.02.04, 13:14
ddclient? das war glaub der für win oder?

ChandlerBing
08.02.04, 13:48
Original geschrieben von /home/franz
ddclient? das war glaub der für win oder?


Nein.
Ich benutze den auch unter Linux.

$kuLL
08.02.04, 14:32
Ähm nur mal zur Info:
Den ganzen Aufwand da oben kannst du dir sparen in dem du die Scripte /etc/ppp/ip-up.local und /etc/ppp/ip-down.local benutzt.

Die werden beim Aufbau bzw. beim Beenden einer Connection zum Inet ausgeführt.
Es tut mir immer in der Seele weh, wenn jemand aller 1 Minute die Connection prüft.

Der crond hat auch Gefühle ;>

/home/franz
08.02.04, 14:45
Original geschrieben von $kuLL
Ähm nur mal zur Info:
Den ganzen Aufwand da oben kannst du dir sparen in dem du die Scripte /etc/ppp/ip-up.local und /etc/ppp/ip-down.local benutzt.



router:/etc/ppp # ls
. .. auth-down auth-up chap-secrets ioptions ip-down ip-down.d ip-up ip-up.d options pap-secrets peers poll.tcpip resolv.conf
router:/etc/ppp # cd ip-up.d/
router:/etc/ppp/ip-up.d # ls
. .. ez-ipupdate

vim ez-ipupdate:

/usr/local/bin/ez-ipupdate -c /etc/ez-ipupdate.conf

echo "ip-upgedated" > ~ip-update.log

Meinst du ich soll ein Anwahlscript in die ip-down.d schreiben?

Franz

$kuLL
08.02.04, 15:07
echo "/usr/local/bin/ez-ipupdate -c /etc/ez-ipupdate.conf" > /etc/ppp/ip-up.local
chmod 755 /etc/ppp/ip-up.local

Das wars, damit wird jedesmal wenn sich deine IP ändert die neue IP bei DynDNS aktualisiert.

/home/franz
08.02.04, 21:30
thx, ich hoff mal das es geht o_O
obs geht seh ich morgen :ugly:

Sweeper
16.03.04, 12:15
Ich hab ein ähnliches Problem

Mar 16 12:01:05 Linux /usr/bin/ez-ipupdate[1817]: failure to update ppp0->80.184
.41.28 (xxxxxx.dyndns.org)

könnt Ihr mir vielleicht helfen:confused: