What's new

wan-start userscript not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

This is the content of the wan-start:

#!/bin/sh
logger -t $(basename $0) "start"
/usr/bin/wget -s http://www.unotelly.com/unodns/auto_auth/hash_update/updateip.php?user_hash=xxxxxxxxx >/tmp/debug.txt 2>&1
logger -t $(basename $0) "end"
touch /tmp/init-start.ran
logger -t wan-start Wan start script finished

this is the debug.txt

Connecting to www.unotelly.com (10.0.0.1:80)
wget: can't connect to remote host (10.0.0.1): Connection timed out

this is the output if I launch the script manually from the terminal:

Connecting to www.unotelly.com (108.61.44.139:80)
Connecting to api.unotelly.com (64.237.43.124:80)
 
this is the syslog.log:

Jan 1 01:00:06 syslogd started: BusyBox v1.20.2
Jan 1 01:00:06 kernel: klogd started: BusyBox v1.20.2 (2014-06-06 16:30:42 EDT)
Jan 1 01:00:06 kernel: start_kernel
Jan 1 01:00:06 kernel: Linux version 2.6.22.19 (root@asus) (gcc version 4.2.4) #1 Fri Jun 6 16:31:19 EDT 2014
Jan 1 01:00:06 kernel: CPU revision is: 00019749
Jan 1 01:00:06 kernel: Determined physical RAM map:
Jan 1 01:00:06 kernel: memory: 07fff000 @ 00000000 (usable)
Jan 1 01:00:06 kernel: memory: 08000000 @ 87fff000 (usable)
Jan 1 01:00:06 kernel: Built 1 zonelists. Total pages: 585216
Jan 1 01:00:06 kernel: Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
Jan 1 01:00:06 kernel: Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Jan 1 01:00:06 kernel: Primary data cache 32kB, 4-way, linesize 32 bytes.
Jan 1 01:00:06 syslog: module ledtrig-usbdev not found in modules.dep
Jan 1 01:00:06 syslog: module leds-usb not found in modules.dep
Jan 1 01:00:06 kernel: Synthesized TLB refill handler (20 instructions).
Jan 1 01:00:06 kernel: Synthesized TLB load handler fastpath (32 instructions).
Jan 1 01:00:06 kernel: Synthesized TLB store handler fastpath (32 instructions).
Jan 1 01:00:06 kernel: Synthesized TLB modify handler fastpath (31 instructions).
Jan 1 01:00:06 kernel: PID hash table entries: 2048 (order: 11, 8192 bytes)
Jan 1 01:00:06 kernel: CPU: BCM5300 rev 1 pkg 0 at 600 MHz
Jan 1 01:00:06 kernel: Using 300.000 MHz high precision timer.
Jan 1 01:00:06 kernel: console [ttyS0] enabled
Jan 1 01:00:06 kernel: Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Jan 1 01:00:06 kernel: Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Jan 1 01:00:06 kernel: Memory: 238608k/131068k available (2572k kernel code, 22624k reserved, 515k data, 196k init, 131072k highmem)
Jan 1 01:00:06 kernel: Mount-cache hash table entries: 512
Jan 1 01:00:06 kernel: NET: Registered protocol family 16
Jan 1 01:00:06 kernel: PCI: Initializing host
Jan 1 01:00:06 kernel: PCI: Reset RC
Jan 1 01:00:06 init-start: Init start script finished
Jan 1 01:00:07 kernel: PCI: Initializing host
Jan 1 01:00:07 kernel: PCI: Reset RC
Jan 1 01:00:07 kernel: PCI: Fixing up bus 0
Jan 1 01:00:07 kernel: PCI/PCIe coreunit 0 is set to bus 1.
Jan 1 01:00:07 kernel: PCI: Fixing up bridge
Jan 1 01:00:07 kernel: PCI: Fixing up bridge
Jan 1 01:00:07 kernel: PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
Jan 1 01:00:07 kernel: PCI: Fixing up bus 1
Jan 1 01:00:07 kernel: PCI/PCIe coreunit 1 is set to bus 2.
Jan 1 01:00:07 kernel: PCI: Fixing up bridge
Jan 1 01:00:07 kernel: PCI: Fixing up bridge
Jan 1 01:00:07 kernel: PCI: Enabling device 0000:02:00.1 (0004 -> 0006)
Jan 1 01:00:07 kernel: PCI: Fixing up bus 2
Jan 1 01:00:07 kernel: NET: Registered protocol family 2
Jan 1 01:00:07 kernel: Time: MIPS clocksource has been installed.
Jan 1 01:00:07 kernel: IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
Jan 1 01:00:07 kernel: TCP established hash table entries: 16384 (order: 5, 131072 bytes)
Jan 1 01:00:07 kernel: TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
Jan 1 01:00:07 kernel: TCP: Hash tables configured (established 16384 bind 16384)
Jan 1 01:00:07 kernel: TCP reno registered
Jan 1 01:00:07 kernel: highmem bounce pool size: 64 pages
Jan 1 01:00:07 kernel: squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
Jan 1 01:00:07 kernel: io scheduler noop registered (default)
Jan 1 01:00:07 kernel: HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
Jan 1 01:00:07 kernel: N_HDLC line discipline registered.
Jan 1 01:00:07 kernel: Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
Jan 1 01:00:07 kernel: serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
Jan 1 01:00:07 kernel: serial8250: ttyS1 at MMIO 0xb8000400 (irq = 8) is a 16550A
Jan 1 01:00:07 kernel: PPP generic driver version 2.4.2
Jan 1 01:00:07 kernel: MPPE/MPPC encryption/compression module registered
Jan 1 01:00:07 kernel: NET: Registered protocol family 24
Jan 1 01:00:07 kernel: PPTP driver version 0.8.5
Jan 1 01:00:07 kernel: Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Jan 1 01:00:07 kernel: Amd/Fujitsu Extended Query Table at 0x0040
Jan 1 01:00:07 kernel: Enabling Spansion 65nm mode, writesize = 512 bytes
Jan 1 01:00:07 kernel: Physically mapped flash: CFI does not contain boot bank location. Assuming top.
Jan 1 01:00:07 kernel: number of CFI chips: 1
Jan 1 01:00:07 kernel: cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Jan 1 01:00:07 kernel: Flash device: 0x2000000 at 0x1c000000
Jan 1 01:00:07 kernel: Creating 5 MTD partitions on "Physically mapped flash":
Jan 1 01:00:07 kernel: 0x00000000-0x00040000 : "pmon"
Jan 1 01:00:07 kernel: 0x00040000-0x01fe0000 : "linux"
Jan 1 01:00:07 kernel: 0x001757f4-0x01a00000 : "rootfs"
Jan 1 01:00:07 kernel: 0x01fe0000-0x02000000 : "nvram"
Jan 1 01:00:07 kernel: 0x01a60000-0x01fe0000 : "jffs2"
Jan 1 01:00:07 kernel: Found an serial flash with 0 0KB blocks; total size 0MB
Jan 1 01:00:07 kernel: sflash: found no supported devices
Jan 1 01:00:07 kernel: dev_nvram_init: _nvram_init
Jan 1 01:00:07 kernel: sdhci: Secure Digital Host Controller Interface driver
Jan 1 01:00:07 kernel: sdhci: Copyright(c) Pierre Ossman
Jan 1 01:00:07 kernel: u32 classifier
Jan 1 01:00:07 kernel: OLD policer on
Jan 1 01:00:07 kernel: Netfilter messages via NETLINK v0.30.
Jan 1 01:00:07 kernel: nf_conntrack version 0.5.0 (2048 buckets, 16384 max)
Jan 1 01:00:07 kernel: ipt_time loading
Jan 1 01:00:07 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan 1 01:00:07 kernel: net/ipv4/netfilter/tomato_ct.c [Jun 6 2014 16:31:18]
Jan 1 01:00:07 kernel: ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://code.google.com/p/ipt-account/
Jan 1 01:00:07 kernel: NET: Registered protocol family 1
Jan 1 01:00:07 kernel: NET: Registered protocol family 10
Jan 1 01:00:07 kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan 1 01:00:07 kernel: NET: Registered protocol family 17
Jan 1 01:00:07 kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Jan 1 01:00:07 kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan 1 01:00:07 kernel: VFS: Mounted root (squashfs filesystem) readonly.
Jan 1 01:00:07 kernel: Freeing unused kernel memory: 196k freed
Jan 1 01:00:07 kernel: Warning: unable to open an initial console.
Jan 1 01:00:07 kernel: ctf: module license 'Proprietary' taints kernel.
Jan 1 01:00:07 kernel: et_module_init: passivemode set to 0x0
Jan 1 01:00:07 kernel: et_module_init: et_txq_thresh set to 0x400
Jan 1 01:00:07 kernel: bcm_robo_enable_switch: EEE is disabled
Jan 1 01:00:07 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.2002 (r382208)
Jan 1 01:00:07 kernel: wl_module_init: passivemode set to 0x0
Jan 1 01:00:07 kernel: PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
Jan 1 01:00:07 kernel: eth1: Broadcom BCM4331 802.11 Wireless Controller 6.30.163.2002 (r382208)
Jan 1 01:00:07 kernel: PCI: Enabling device 0000:02:01.0 (0000 -> 0002)
Jan 1 01:00:07 kernel: eth2: Broadcom BCM4331 802.11 Wireless Controller 6.30.163.2002 (r382208)
Jan 1 01:00:07 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan 1 01:00:07 kernel: JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
Jan 1 01:00:07 kernel: usbcore: registered new interface driver usbfs
Jan 1 01:00:07 kernel: usbcore: registered new interface driver hub
Jan 1 01:00:07 kernel: usbcore: registered new device driver usb
Jan 1 01:00:07 kernel: SCSI subsystem initialized
Jan 1 01:00:07 kernel: Initializing USB Mass Storage driver...
Jan 1 01:00:07 kernel: usbcore: registered new interface driver usb-storage
Jan 1 01:00:07 kernel: USB Mass Storage support registered.
Jan 1 01:00:07 kernel: ufsd: driver (8.6 U86_r187446_b122, LBD=ON, acl, ioctl, rwm, ws, sd) loaded at c0286000
Jan 1 01:00:07 kernel: NTFS (with native replay) support included
Jan 1 01:00:07 kernel: optimized: speed
Jan 1 01:00:07 kernel: Build_for__asus_n66u_2011-10-27_U86_r187446_b122
Jan 1 01:00:07 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan 1 01:00:07 kernel: ehci_hcd 0000:00:04.1: EHCI Host Controller
Jan 1 01:00:07 kernel: ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
Jan 1 01:00:07 kernel: ehci_hcd 0000:00:04.1: EHCI Fastpath: New EHCI driver starting
Jan 1 01:00:07 kernel: ehci_hcd 0000:00:04.1: irq 6, io mem 0x18004000
Jan 1 01:00:07 kernel: ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
Jan 1 01:00:07 kernel: usb usb1: configuration #1 chosen from 1 choice
Jan 1 01:00:07 kernel: hub 1-0:1.0: USB hub found
 
Jan 1 01:00:07 kernel: hub 1-0:1.0: 2 ports detected
Jan 1 01:00:07 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan 1 01:00:07 kernel: ohci_hcd 0000:00:04.0: OHCI Host Controller
Jan 1 01:00:07 kernel: ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
Jan 1 01:00:08 kernel: ohci_hcd 0000:00:04.0: irq 6, io mem 0x18009000
Jan 1 01:00:08 kernel: usb usb2: configuration #1 chosen from 1 choice
Jan 1 01:00:08 kernel: hub 2-0:1.0: USB hub found
Jan 1 01:00:08 kernel: hub 2-0:1.0: 2 ports detected
Jan 1 01:00:08 kernel: usbcore: registered new interface driver usblp
Jan 1 01:00:08 kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:08 kernel: usbcore: registered new interface driver asix
Jan 1 01:00:08 kernel: usb 1-1: new high speed USB device using ehci_hcd and address 2
Jan 1 01:00:08 kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 1 01:00:08 kernel: hub 1-1:1.0: USB hub found
Jan 1 01:00:08 kernel: hub 1-1:1.0: 4 ports detected
Jan 1 01:00:08 kernel: usbcore: registered new interface driver cdc_ether
Jan 1 01:00:08 kernel: usbcore: registered new interface driver rndis_host
Jan 1 01:00:08 kernel: cdc_ncm: 04-Aug-2011
Jan 1 01:00:08 kernel: usbcore: registered new interface driver cdc_ncm
Jan 1 01:00:08 syslog: module cdc_wdm not found in modules.dep
Jan 1 01:00:08 syslog: module qmi_wwan not found in modules.dep
Jan 1 01:00:08 syslog: module cdc_mbim not found in modules.dep
Jan 1 01:00:08 sd-idle-2.6[266]: initialized
Jan 1 01:00:08 kernel: usb 1-1.2: new high speed USB device using ehci_hcd and address 3
Jan 1 01:00:08 kernel: br0: starting userspace STP failed, staring kernel STP
Jan 1 01:00:08 kernel: vlan1: dev_set_promiscuity(master, 1)
Jan 1 01:00:08 kernel: device eth0 entered promiscuous mode
Jan 1 01:00:08 kernel: device vlan1 entered promiscuous mode
Jan 1 01:00:08 kernel: usb 1-1.2: configuration #1 chosen from 1 choice
Jan 1 01:00:08 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 01:00:08 kernel: usb 1-1.4: new high speed USB device using ehci_hcd and address 4
Jan 1 01:00:08 kernel: device eth1 entered promiscuous mode
Jan 1 01:00:08 kernel: device eth2 entered promiscuous mode
Jan 1 01:00:08 kernel: br0: port 3(eth2) entering listening state
Jan 1 01:00:08 kernel: br0: port 2(eth1) entering listening state
Jan 1 01:00:08 kernel: br0: port 1(vlan1) entering listening state
Jan 1 01:00:08 kernel: br0: port 3(eth2) entering learning state
Jan 1 01:00:08 kernel: br0: port 2(eth1) entering learning state
Jan 1 01:00:08 kernel: br0: port 1(vlan1) entering learning state
Jan 1 01:00:08 kernel: usb 1-1.4: configuration #1 chosen from 1 choice
Jan 1 01:00:08 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan 1 01:00:08 kernel: br0: topology change detected, propagating
Jan 1 01:00:08 kernel: br0: port 3(eth2) entering forwarding state
Jan 1 01:00:08 kernel: br0: topology change detected, propagating
Jan 1 01:00:08 kernel: br0: port 2(eth1) entering forwarding state
Jan 1 01:00:08 kernel: br0: topology change detected, propagating
Jan 1 01:00:08 stop_nat_rules: apply the redirect_rules!
Jan 1 01:00:08 kernel: br0: port 1(vlan1) entering forwarding state
Jan 1 01:00:09 dnsmasq[333]: started, version 2.69 cachesize 1500
Jan 1 01:00:09 dnsmasq[333]: asynchronous logging enabled, queue limit is 5 messages
Jan 1 01:00:09 dnsmasq-dhcp[333]: DHCP, IP range 192.168.1.2 -- 192.168.1.254, lease time 1d
Jan 1 01:00:09 dnsmasq-dhcp[333]: DHCP, sockets bound exclusively to interface br0
Jan 1 01:00:09 dnsmasq[333]: read /etc/hosts - 5 addresses
Jan 1 01:00:09 dnsmasq[333]: read /etc/hosts.dnsmasq - 2 addresses
Jan 1 01:00:09 dnsmasq-dhcp[333]: read /etc/ethers - 2 addresses
Jan 1 01:00:09 WAN Connection: ISP's DHCP did not function properly.
Jan 1 01:00:09 syslog: Password for 'alfucon' changed
Jan 1 01:00:09 RT-N66U: start httpd
an 1 01:00:09 crond[354]: crond: crond (busybox 1.20.2) started, log level 8
Jan 1 01:00:09 syslog: Generating SSL certificate...
Jan 1 01:00:10 kernel: scsi 0:0:0:0: Direct-Access ST96812A S PQ: 0 ANSI: 4
Jan 1 01:00:10 kernel: sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB)
Jan 1 01:00:10 kernel: sd 0:0:0:0: [sda] Write Protect is off
Jan 1 01:00:10 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 01:00:10 disk monitor: be idle
Jan 1 01:00:10 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 01:00:10 kernel: sda:<5>scsi 1:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0
Jan 1 01:00:10 kernel: sd 1:0:0:0: [sdb] Attached SCSI removable disk
Jan 1 01:00:10 kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0
Jan 1 01:00:10 kernel: sda1 < sda5 sda6 >
Jan 1 01:00:10 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Jan 1 01:00:10 kernel: sd 0:0:0:0: Attached scsi generic sg1 type 0
Jan 1 01:00:12 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 01:00:12 kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
Jan 1 01:00:12 hotplug[418]: USB ext3 fs at /dev/sda6 mounted on /tmp/mnt/NAS
Jan 1 01:00:12 kernel: EXT3 FS on sda6, internal journal
Jan 1 01:00:12 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 01:00:12 Samba Server: daemon is started
Jan 1 01:00:13 dnsmasq-dhcp[333]: DHCPREQUEST(br0) 192.168.1.97 b8:c7:5d:cb:4e:44
Jan 1 01:00:13 dnsmasq-dhcp[333]: DHCPACK(br0) 192.168.1.97 b8:c7:5d:cb:4e:44 timecapsule
Jan 1 01:00:13 rc_service: hotplug 418:notify_rc restart_nasapps
Jan 1 01:00:13 nmbd[507]: [2011/01/01 01:00:13, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
Jan 1 01:00:13 nmbd[507]: Samba server ROUTER is now a domain master browser for workgroup WORKGROUP on subnet UNICAST_SUBNET
Jan 1 01:00:13 dnsmasq[333]: read /etc/hosts - 5 addresses
Jan 1 01:00:13 dnsmasq[333]: read /etc/hosts.dnsmasq - 2 addresses
Jan 1 01:00:13 dnsmasq-dhcp[333]: read /etc/ethers - 2 addresses
Jan 1 01:00:13 dnsmasq[333]: using nameserver 8.8.8.8#53
Jan 1 01:00:13 dnsmasq[333]: using nameserver 8.8.4.4#53
Jan 1 01:00:13 FTP Server: daemon is stopped
Jan 1 01:00:15 dnsmasq[333]: read /etc/hosts - 5 addresses
Jan 1 01:00:15 dnsmasq[333]: read /etc/hosts.dnsmasq - 2 addresses
Jan 1 01:00:15 dnsmasq-dhcp[333]: read /etc/ethers - 2 addresses
Jan 1 01:00:15 dnsmasq[333]: using nameserver 8.8.8.8#53
Jan 1 01:00:15 dnsmasq[333]: using nameserver 8.8.4.4#53
Jan 1 01:00:15 start_nat_rules: apply the nat_rules(/tmp/nat_rules_eth0_eth0)!
Jan 1 01:00:15 wan-start: start
Jan 1 01:00:15 dnsmasq[333]: exiting on receipt of SIGTERM
Jan 1 01:00:16 dnsmasq[556]: started, version 2.69 cachesize 1500
Jan 1 01:00:16 dnsmasq[556]: asynchronous logging enabled, queue limit is 5 messages
Jan 1 01:00:16 dnsmasq-dhcp[556]: DHCP, IP range 192.168.1.2 -- 192.168.1.254, lease time 1d
Jan 1 01:00:16 dnsmasq-dhcp[556]: DHCP, sockets bound exclusively to interface br0
Jan 1 01:00:16 dnsmasq[556]: read /etc/hosts - 5 addresses
Jan 1 01:00:16 dnsmasq[556]: read /etc/hosts.dnsmasq - 2 addresses
Jan 1 01:00:16 dnsmasq-dhcp[556]: read /etc/ethers - 2 addresses
Jan 1 01:00:16 dnsmasq[556]: using nameserver 8.8.8.8#53
Jan 1 01:00:16 dnsmasq[556]: using nameserver 8.8.4.4#53
Jan 1 01:00:16 kernel: nf_conntrack_rtsp v0.6.21 loading
Jan 1 01:00:16 kernel: nf_nat_rtsp v0.6.21 loading
Jan 1 01:00:16 rc_service: udhcpc 529:notify_rc stop_upnp
Jan 1 01:00:16 rc_service: waitting "restart_nasapps" via hotplug ...
Jan 1 01:00:17 Samba Server: smb daemon is stopped
Jan 1 01:00:17 Samba Server: daemon is started
Jan 1 01:00:17 nmbd[615]: [2011/01/01 01:00:17, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
Jan 1 01:00:17 nmbd[615]: Samba server ROUTER is now a domain master browser for workgroup WORKGROUP on subnet UNICAST_SUBNET
Jan 1 01:00:17 rc_service: udhcpc 529:notify_rc start_upnp
Jan 1 01:00:17 rc_service: waitting "stop_upnp" via udhcpc ...
Jan 1 01:00:18 kernel: Adding 506008k swap on /dev/sda5. Priority:-1 extents:1 across:506008k
Jan 1 01:00:18 ddns: clear ddns cache file for server/hostname change
Jan 1 01:00:18 miniupnpd[632]: HTTP listening on port 35360
Jan 1 01:00:18 miniupnpd[632]: Listening for NAT-PMP/PCP traffic on port 5351
Jan 1 01:00:18 ddns update: ez-ipupdate: starting...
Jan 1 01:00:19 ddns update: connected to updates.dnsomatic.com (67.215.92.215) on port 80.
Jan 1 01:00:19 ddns update: request successful
Jan 1 01:00:19 ddns update: asusddns_update: 0
Jan 1 01:00:19 ddns: ddns update ok
Jan 1 01:00:19 rc_service: udhcpc 529:notify_rc stop_ntpc
Jan 1 01:00:19 rc_service: udhcpc 529:notify_rc start_ntpc
Jan 1 01:00:20 dhcp client: bound 79.31.230.108 via 79.31.230.108 during 30 seconds.
Jan 1 01:00:20 WAN Connection: WAN was restored.
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPDISCOVER(br0) b0:05:94:34:bb:e9
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPOFFER(br0) 192.168.1.154 b0:05:94:34:bb:e9
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPDISCOVER(br0) b0:05:94:34:bb:e9
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPOFFER(br0) 192.168.1.154 b0:05:94:34:bb:e9
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPREQUEST(br0) 192.168.1.154 b0:05:94:34:bb:e9
Jan 1 01:00:22 dnsmasq-dhcp[556]: DHCPACK(br0) 192.168.1.154 b0:05:94:34:bb:e9
Jan 1 01:00:25 nmbd[615]: [2011/01/01 01:00:25, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
Jan 1 01:00:25 nmbd[615]: Samba server ROUTER is now a domain master browser for workgroup WORKGROUP on subnet 192.168.1.1
Jan 1 01:00:28 alfucon: Started transmission-daemon from .
 
Jan 1 01:00:30 transmission-daemon[661]: UDP Failed to set receive buffer: requested 4194304, got 237568 (tr-udp.c:78)
Jan 1 01:00:30 transmission-daemon[661]: UDP Failed to set send buffer: requested 1048576, got 237568 (tr-udp.c:89)
Jan 1 01:00:30 transmission-daemon[661]: Unable to watch "/opt/Transmission/Watchdir": No such file or directory (watch.c:80)
Jan 1 01:00:40 nmbd[615]: [2011/01/01 01:00:40, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(392)
Jan 1 01:00:40 nmbd[615]: Samba name server ROUTER is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.1
Jul 4 23:44:02 rc_service: ntp 635:notify_rc restart_upnp
Jul 4 23:44:02 miniupnpd[632]: shutting down MiniUPnPd
Jul 4 23:44:02 rc_service: ntp 635:notify_rc restart_diskmon
Jul 4 23:44:02 disk monitor: be idle
Jul 4 23:44:02 miniupnpd[698]: HTTP listening on port 51983
Jul 4 23:44:02 miniupnpd[698]: Listening for NAT-PMP/PCP traffic on port 5351
Jul 4 23:44:09 login[703]: root login on 'pts/0'
Jul 4 23:44:13 wan-start: end
Jul 4 23:44:13 wan-start: Wan start script finished
Jul 4 23:44:13 crond[354]: time disparity of 1844504 minutes detected
 
Think I see it....script is running before WAN is fully restored. Try changing the script to this to add a delay (the sleep command)...making it long for now....try 'sleep 10' if this works.

Code:
#!/bin/sh
sleep 20
logger -t $(basename $0) "start"
/usr/bin/wget -s http://www.unotelly.com/unodns/auto_...hash=xxxxxxxxx >/tmp/debug.txt 2>&1
logger -t $(basename $0) "end"
touch /tmp/init-start.ran
logger -t wan-start Wan start script finished
 
OK, now we're getting somewhere.

We can see the script if running fine. The problem is that DNS is no resolving names.

We can see from the log that at the exact same time that our wan-start script runs the DNS server is shut down. So that'll be the problem.

I'm not aware of what (if any) interdependences there are between the various custom scripts, but the obvious first thing to try would be to introduce a delay to allow the DNS server time to restart.

So, insert a line before your wget command like this:
Code:
sleep 10
Update: Doh! John beat me to it.
 
Thanks to all in this thread for finishing debugging when I was away! Can confirm that the script works fine with a delay.
 
Hi everyone,

Sorry to bring up a thread that has been dormant for about a month now, but wanted to add my input in case its helpful for others...

I've just started using UnoTelly, and thought I'd search this forum incase there were any known issues when trying to set up an automated script. I'm glad I did as I came across this thread.

Thanks to the work that has already done, I tweaked the script and made the log output a little better.

My wan-start script
Code:
#!/bin/sh
logger -t $(basename $0) "start"
sleep 20
UnoTelly=$(/usr/bin/wget -qO - http://www.unotelly.com/unodns/auto_auth/hash_update/updateip.php?user_hash=######)
logger -t $(basename $0) "UnoTelly: "$UnoTelly
logger -t $(basename $0) "end"
Log output when it works
Code:
Aug 16 11:58:52 wan-start: start
Aug 16 11:59:13 wan-start: UnoTelly: IP Updated!
Aug 16 11:59:14 wan-start: end
Log output when it can't reach the UnoTelly server
Code:
Aug 16 11:59:52 wan-start: start
Aug 16 12:00:12 wan-start: UnoTelly: 
Aug 16 12:00:12 wan-start: end
Seems so simple now, but it would not have been possible without all your work.
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top