Visit the Forums
Register Now!

User Login


Forum Topic

Tomato flashed Dual wan Router from CD-R KING (CW-5356U/CW-5358U) Read Page1

  • Hello at magandang gabi. Wala na ako makita na tomato router sa cdrking, wala na sila stock. Any recommendations na same same sa cdrking tomato router? Maraming salamat po.
  • Hi guys. Sino po dito ang marunong mag setup ng access restriction? gusto ko kasi iblock yung youtube sa tablet ng pamangkin ko lalo na yung youtube na app mismo. Pano ba ang set up nun? Thanks!
  • @Polka,

    Thanks sa advice, yeah medyo nakakalito pag mag build from scratch but possible naman pag may free time ulit ako tutukan ko sya.

    @all

    Anyone can point out to me where can i find the total daily bandwidth usage -- using CLI?

    kailangan ko kasi sa script, nung natapos na kasi yung 2 years lock-in period ko sa Globe lagi na akong may daily limit na 8gig.

    So basically bumabagal na yung 3mpbs ko to 1mpbs, and i need to set may QOS from 3mpbs to 1mpbs:

    normal qos:
    Inbound: 3200 kbps <<< tested ko na maximum nya eh 3500
    Outbound: 1700 kbps <<< not fully tested but so far no problem on upload

    over 8gig daily limit:
    qos:
    Inbound: 1000bps
    Outbound: 700 kbps

    Script should look like:
    if 'total daily' => 8 gig then
    nvram set qos_ibw=1100
    nvram set qos_obw=700
    else
    nvram is the same

    ang problem di ko makita yung command para sa total daily bandwidth :(. any help would be appreciated :)

    -- edited by odnamra on May 30 2016, 06:05 AM
  • ^install entware or optware
    then install python

    and download the rstat python script <click here for link>

    then madugong grep filtering yan

    -- edited by polka on May 30 2016, 08:51 AM
  • Hello po ask ko lng ulit kung may captive portal ung 5358
  • @polka

    awts madugo nga... wala bang shortcut? :D

    For those who are wondering why i need to change the qos pag naka throttle kana:
    pag na set mo ng mataas yung qos kesa sa net bandwidth speed mo nde maayos yung sharing nya, ramdam na ramdam ng mga gumagamit kasi madalas isa lang kumukuha ng bandwidth tapos marami user.

    abala kasi yung check mo sya araw araw at iset manually yung qos :D

    -- edited by odnamra on May 30 2016, 06:20 PM
  • ^here's a rough thing that I can do for you,


    #!/bin/sh

    getbandwith=`python ./rstats.py /tomato/dba/tomato_rstats_00904c0104d2 | grep $(date +"%Y/%m/%d")`
    download=`echo $getbandwith | grep "^([^,]*\,){2}\K[^,]*"`
    upload=`echo $getbandwith | grep "^([^,]*\,){1}\K[^,]*"`

    totalbandwidth=$(( $download + $upload ))

    if [ $totalbandwidth > 8000000000 ] then;
    <<<<>>>>>> SET YOUR NVRAM HERE <<<<<>>>>>>>
    elif [ $totalbandwidth < 8000000000 ] then;
    <<<<>>>>>> SET YOUR NVRAM HERE <<<<<>>>>>>>
    fi
    fi


    bold text needs to be changed where your rstat script is and your rstat file is.

    make sure you eneble avoid nvram commits under debugging nenu i think, hanapin mo na lang.,

    -- edited by polka on May 30 2016, 07:20 PM
  • @polka,

    nice thanks!!!

    yung install script pala ni v128 obselete na :)

    and sa nvram commit, from my test nvram set is good enough nag rereflect naman agad .. and yeah i will check that option

    -- edited by odnamra on May 30 2016, 07:17 PM
  • kailangan mo na lang siguro i-adjust yung time ng kamatis mo depende kung anong oras nag rereset yung globe. Most of the time around 7am nag rereset si Globobo kaya set mo na lang sa GMT+1 para sa kamatis thats 12am of the next day, pero 7am na sa talagang oras natin, meron din ibang globe user na reset nila tuwing 12am.