Page 2 of 2 FirstFirst 12
Results 26 to 33 of 33

Thread: Connection Refused

  1. #26
    Junior Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    93

    Default

    Looks like the path is not set or you dont have read access to the executable binaries. And I'm sorry about the utility but looks like it's just not for your system.

    Telnet back in and try these commands please.

    info - should hopefully give you information/statistics of your router, if the command works.
    version - you know what that means
    help - I'm assuming this would give you addl info on what commands are valid
    env - should print the environment variables
    ls -al /etc - should list the files in the /etc folder from which you should hopefully be able to make out what/where the config files are/could be. If it has an /etc/sysconfig folder you could try look at the files there.

    It should be interesting to explore - and I say explore because as much as I would have loved to I still don't have a resolution just yet. And I've done a little research on this model and I've come up with very little. You could check this website though it does not exactly match your version: The D-Link DSL-500 & DSL-504 Router Info Dump

  2. #27
    Junior Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    17

    Default

    Thanks, I'm posting the results:

    # cat /proc/cpuinfo
    processor : 0
    cpu model : MIPS 4KEc V4.8
    BogoMIPS : 149.91
    wait instruction : no
    microsecond timers : yes
    extra interrupt vector : yes
    hardware watchpoint : yes
    VCED exceptions : not available
    VCEI exceptions : not available


    # cat /proc/version
    Linux version 2.4.17_mvl21-malta-mips_fp_le (jenny@fd6e) (gcc version 2.95.3 200
    10315 (release/MontaVista)) #70 Mon May 30 16:34:48 CST 2005


    # set
    USER='admin'
    HOME='/'
    PS1='# '
    OPTIND='1'
    PS2='> '
    LOGNAME='admin'
    _='env'
    TERM='vt102'
    PPID='234'
    PATH='/usr/sbin:/bin:/usr/bin:/sbin'
    SHELL='/bin/sh'
    IFS='
    '
    PWD='/'


    # ls -al /etc
    -rw-r--r-- 1 504 504 62599 May 30 2005 config.xml
    -rw-r--r-- 1 504 504 2714 Sep 14 14:00 dhcp-fwd.cfg
    lrwxrwxrwx 1 504 504 13 May 30 2005 dproxy.conf -> ./resolv.
    conf
    drwxr-xr-x 1 504 504 52 Sep 14 14:00 dropbear
    -rwxr-xr-x 1 504 504 180 Sep 14 14:00 firewall_start
    -rwxr-xr-x 1 504 504 120 Sep 14 14:00 firewall_stop
    -rwxr-xr-x 1 504 504 86 Sep 14 14:00 flush_firewall
    -rw-r--r-- 1 504 504 313 Sep 14 14:00 fstab
    lrwxrwxrwx 1 504 504 19 May 30 2005 gateways -> ../var/tmp/g
    ateways
    -rw-r--r-- 1 504 504 0 Sep 14 14:00 group
    -rw-r--r-- 1 504 504 17 Sep 14 14:00 host.conf
    lrwxrwxrwx 1 504 504 16 May 30 2005 hosts -> ../var/tmp/host
    s
    drwxr-xr-x 1 504 504 10 Sep 14 14:00 init.d
    -rw-r--r-- 1 504 504 259 Oct 22 08:17 inittab
    -rw-r--r-- 1 504 504 4573 May 30 2005 led.conf
    lrwxrwxrwx 1 504 504 17 May 30 2005 passwd -> ../var/tmp/pas
    swd
    drwxr-xr-x 1 504 504 18 May 30 2005 ppp
    -rw-r--r-- 1 504 504 4407 May 30 2005 progdefs.xml
    -rw-r--r-- 1 504 504 1595 Sep 14 14:00 protocols
    lrwxrwxrwx 1 504 504 22 May 30 2005 resolv.conf -> ../var/tm
    p/resolv.conf
    -rw-r--r-- 1 504 504 34 Sep 14 14:00 securetty
    -rw-r--r-- 1 504 504 2009 Sep 14 14:00 services
    lrwxrwxrwx 1 504 504 17 May 30 2005 shadow -> ../var/tmp/sha
    dow
    -rw-r--r-- 1 504 504 48 Sep 14 14:00 shells
    -rw-r--r-- 1 504 504 4522 May 30 2005 strings.xml
    -rw-r--r-- 1 504 504 27048 May 30 2005 sysdef.xml
    drwxr-xr-x 1 504 504 18 Sep 14 14:00 udhcpc
    lrwxrwxrwx 1 504 504 22 May 30 2005 udhcpd.conf -> ../var/tm
    p/udhcpd.conf
    -rw-rw-r-- 1 504 504 154 May 30 2005 versions


    Will explore sysdef.xml and revert.

    Thank you very much.
    --

    Quote Originally Posted by hexwiz View Post
    Looks like the path is not set or you dont have read access to the executable binaries. And I'm sorry about the utility but looks like it's just not for your system.

    Telnet back in and try these commands please.

    info - should hopefully give you information/statistics of your router, if the command works.
    version - you know what that means
    help - I'm assuming this would give you addl info on what commands are valid
    env - should print the environment variables
    ls -al /etc - should list the files in the /etc folder from which you should hopefully be able to make out what/where the config files are/could be. If it has an /etc/sysconfig folder you could try look at the files there.

    It should be interesting to explore - and I say explore because as much as I would have loved to I still don't have a resolution just yet. And I've done a little research on this model and I've come up with very little. You could check this website though it does not exactly match your version: The D-Link DSL-500 & DSL-504 Router Info Dump

  3. #28
    Junior Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    93

    Default

    The above output sure is interesting. Sounds more like a plan now. But one thing that really gets to me is how and why the normal d-link gui doesnt show on http://192.168.1.1/

    Of particular interest would be the config.xml, inittab (initialization table) and the initialization scripts in /etc/init.d and also the fstab file which should show how the file system is like.

    And apart from /proc/version - doesn't version alone work at the prompt? What about help? And even mount?

    Now since the previous attempts at mount shows the command is enabled, if you could tell me the contents of the fstab, I could think up of something to "try" and mount your file system in read/write mode.

    Also try chroot /mnt/sysimage and see if you are able to execute the commands which were not enabled/found earlier:
    Code:
    ip iphostname flush
    config save
    flashfs update
    restart
    And whether it works or it doesn't you can exit the chroot environment with exit to get back to the shell prompt.
    Last edited by hexwiz; 09-04-09 at 06:21 AM. Reason: Automerged Doublepost

  4. #29
    Junior Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    17

    Default

    Quote Originally Posted by hexwiz View Post
    Of particular interest would be the config.xml, inittab (initialization table) and the initialization scripts in /etc/init.d and also the fstab file which should show how the file system is like.
    here's fstab:


    #
    ::sysinit:/etc/init.d/rcS
    # Start an "askfirst" shell on the console (whatever that may be)
    ::askfirst:-/bin/sh
    #::askfirst:-/usr/bin/cmcli

    # Stuff to do before rebooting
    #::ctrlaltdel:/sbin/reboot
    ::shutdown:/bin/umount -a -r
    ::shutdown:/sbin/swapoff -a


    and here's is rcS

    # cat /etc/init.d/rcS
    #!/bin/sh

    trap "" SIGHUP

    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    runlevel=S
    prevlevel=N
    umask 022
    export PATH runlevel prevlevel

    #
    # Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
    #
    trap ":" INT QUIT TSTP

    mount -n /proc
    #mount -n -o remount,rw /
    mount /var

    # unreserve for unp systems
    echo "0 0" > /proc/sys/vm/pagetable_cache
    # router
    echo 1 > /proc/sys/net/ipv4/ip_forward
    # pppox
    echo 1 > /proc/sys/net/ipv4/ip_dynaddr
    # ignore_all not yet used: this should be satisfactory
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    # drop spoofed addr: turn this off on non-loop-free networks
    echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter
    echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
    # do not honor source route flags
    echo 0 > /proc/sys/net/ipv4/conf/default/accept_source_route
    echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
    # protect against syn flood attacks
    echo 1 >/proc/sys/net/ipv4/tcp_syncookies
    # this needs proper sampling on av_blog to determine optimal value
    # for now just observe softnet_stats to see # time was throttled
    # historical value was 300
    echo 100 > /proc/sys/net/core/netdev_max_backlog

    (cd /; tar xf var.tar)

    /sbin/ledcfg
    sleep 1

    /sbin/insmod tiatm
    sleep 1

    # UPnP requires loopback
    ifconfig lo 127.0.0.1
    #
    # installed by vincent 20040113, do not built in BRIDGE MODULE in kernel to redu
    ce the kernel size
    # use install module load the bridge
    # temporarily marked by tiger in NSP350
    #/sbin/insmod bridge

    /sbin/insmod avalanche_usb; sleep 1



    /usr/bin/cm_pc > /dev/tts/0 &

    /usr/sbin/diap &



    And apart from /proc/version - doesn't version alone work at the prompt? What about help? And
    even mount?
    Here's help output.

    . : bg break builtin cd chdir continue eval exec exit export
    false fc fg hash help jobs kill local pwd read readonly return
    set setvar shift times trap true type ulimit umask unset wait


    Now since the previous attempts at mount shows the command is enabled, if you could tell me the contents of the fstab, I could think up of something to "try" and mount your file system in read/write mode.
    # <file system> <mount point> <type> <options> <dump> <pass>
    /dev/root / auto defaults,errors=continue 0 0
    proc /proc proc defaults 0 0
    ramfs /var ramfs defaults 0 0


    [QUOTE]Also try chroot /mnt/sysimage and see if you are able to execute the commands which were not enabled/found earlier:
    Code:
    ip iphostname flush
    config save
    flashfs update
    restart
    And whether it works or it doesn't you can exit the chroot environment with exit to get back to the shell prompt.
    chroot does not work.

    Once again, thank you for all your help.
    --

  5. #30
    Junior Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    17

    Default

    Attaching config.xml, sysdef.xml, progdefs.xml and strings.xml.
    Attached Files Attached Files

  6. #31
    Junior Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    17

    Default

    Also, ls -la * output.
    Attached Files Attached Files

  7. #32
    Junior Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    93

    Default

    Looks like it. If you take a look at the rcS file, you'd see a line which is commented out with a hash. If only you could somehow edit the file, remove the # and save the changes and reboot...
    Code:
    mount -n -o remount,rw /

  8. #33
    Junior Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    17

    Default

    Thanks, I've noticed that. Wondering how to edit. FTP is disabled.
    --

    Quote Originally Posted by hexwiz View Post
    Looks like it. If you take a look at the rcS file, you'd see a line which is commented out with a hash. If only you could somehow edit the file, remove the # and save the changes and reboot...
    Code:
    mount -n -o remount,rw /

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. can i use my broadband connection with any landline???
    By ash_10 in forum BSNL broadband
    Replies: 4
    Last Post: 02-12-10, 07:24 PM
  2. changing airtel broadband cable connection to wifi
    By praitk20990 in forum Airtel Broadband
    Replies: 1
    Last Post: 02-07-10, 12:26 AM
  3. World's Fastest Internet Connection
    By ashishcw in forum General offtopic discussions
    Replies: 8
    Last Post: 02-06-10, 11:43 AM
  4. How to - Troubleshoot your connection
    By meetdilip in forum Broadband How to
    Replies: 0
    Last Post: 02-04-10, 05:12 PM
  5. Prepaid mobile connection vs. postpaid mobile connection
    By Preeti_20 in forum Mobile phone service providers
    Replies: 0
    Last Post: 02-02-10, 01:42 PM

Posting Permissions

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