Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 6 of 6

Thread: Inadyn

  1. #1
    Junior Member Teacher
    Join Date
    Jul 2006
    Posts
    100
    Posts Thanks / Likes

    Default Inadyn

    Stie cineva cum se porneste inadynul din telnet sau TC?
    Imi arata cu verde dar la status scrie stopping si nu mai porneste nicidecum.

  2. #2
    Senior Member Expert
    Join Date
    Oct 2005
    Posts
    1,388
    Posts Thanks / Likes

    Default

    Incearca: /var/bin/inadyn &
    Daca ai router cu optiunea use dyndns si setat, nu ai nevoie de acest plugin. Deoarece ambele fac update la dynsdns si sa-r putea sa-ti blocheze contul pentru abuz.
    Cofigureaza inadyn la 20min update i.p.In cazul in care ai nevoie.

  3. #3
    Junior Member Teacher
    Join Date
    Jul 2006
    Posts
    100
    Posts Thanks / Likes

    Default

    Code:
    #!/bin/sh
    DAEMON=/bin/inadyn
    NAME=inadyn
    DESC="InaDyn dynamic DNS Client"
    INADYN_ON=1
    INADYN_USERNAME=blalala
    INADYN_PASSWORD=blalalaa
    INADYN_ALIAS=blalala.mine.nu
    UPDATE_PERIOD=180000
    LOG_FILE_ON=0
    LOG_NAME=z%[email protected]v(8ld8|X
    DYN_SYSTEM_ON=0
    [email protected]
    
    
    test -f $DAEMON || exit 0
    
    set -e
    
    case "$1" in
        start)
    	if [ $INADYN_ON -ne 0 ]; then
    		ARGS="-u $INADYN_USERNAME -p $INADYN_PASSWORD -a $INADYN_ALIAS --update_period $UPDATE_PERIOD"	
    		if [ $LOG_FILE_ON = 1 ]; then
    			ARGS="$ARGS --log_file $LOG_NAME"
    		fi
    		if [ $LOG_FILE_ON = 2 ]; then
    			ARGS="$ARGS --syslog"
    		fi
    		if [ $DYN_SYSTEM_ON -ne 0 ]; then
    			ARGS="$ARGS --dyndns_system $DYN_SYSTEM"
    
    		fi
    		echo -n "starting $DESC: $NAME... "
    		start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
    		echo "done."
    	fi
    	;;
        stop)
            echo -n "stopping $DESC: $NAME... "
    	start-stop-daemon -K -n $NAME
    	rm $LOG_NAME
    	echo "done."
    	;;
        restart)
            echo "restarting $DESC: $NAME... "
     	$0 stop
    	$0 start
    	echo "done."
    	;;
        reload)
        	echo -n "reloading $DESC: $NAME... "
        	killall -HUP $(basename ${DAEMON})
    	echo "done."
    	;;
        *)
    	echo "Usage: $0 {start|stop|restart|reload}"
    	exit 1
    	;;
    esac
    
    exit 0
    Am inlocuit scriptul de inadyn cu altul mai vechi si merge acum.
    Ceea ce este mai sus este cel care mi-a dat probleme si anume daca te uiti unde e bolduit ma gindesc ca nu era asa la scriptul original.
    Updateul de dyndns de la router nu il folosesc ca imi blocheaza din cind in cind routerul.
    BTW cu ce se porneste de obicei . sh sau ceva de genu....
    tnx

  4. #4
    Senior Member Expert
    Join Date
    Oct 2005
    Posts
    1,388
    Posts Thanks / Likes

    Default

    Ce este BTW?

  5. #5
    Junior Member Teacher
    Join Date
    Jul 2006
    Posts
    100
    Posts Thanks / Likes

    Default

    Scuze.
    BTW = by the way
    Asta e. Limbajul de mirc in 50 de ani o sa ne omoare.Nu o sa gasesti scris decit abrevieri peste abrebieri.

  6. #6
    Junior Member Teacher
    RDI - Board Default Avatar

    Join Date
    Sep 2005
    Location
    Bucuresti
    Posts
    244
    Posts Thanks / Likes

    Default Update DYNDNS cu INADYN

    Daca nu aveti posibilitatea de a face Update la Dyndns din router si daca routerul nu se restarteaza la mai putin de 30 de zile, atunci contul se va bloca, pierzandu-se legatura IP - DNS (Domain Name Server).

    Pentru a preintampina acest lucru, cu ajutorul comenzii "inadyn" din Dreambox si a procesului "crontab", puteti scapa de grija updatelui punand urmatoarele linii (personalizate cu datele voastre bineinteles), in fisierul: /var/spool/cron/crontabs/root

    05 01 14,28 * * inadyn --username gigel_dyndns --password parola_gigel_dyndns --update_period_sec 173000 --alias gigel.homeip.net --background --log_file /tmp/upd_inadyn.log
    07 01 14,28 * * kill -9 $(ps -ef|grep inady[n]|awk ' { print $1 } ')

    Astfel de doua ori pe luna (pe datele de 14 si 2 la ora 01:05 se va face updateul contului vostru, si doua minute mai tarziu se va opri procesul "inadyn".

    Folosesc DM500S cu EGD NEmesis, insa cred ca se poate aplica pe orice imagine. Trebuie activata in prealabil functia crontab prin comanda: crontab -e

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top