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.
  • Curious lang po... Bat po ba kailangan dapat original version ng firmware ang kailangan e-flash pag unbricking?
  • kasi yun yung certified na gunagaba,

    -- edited by polka on Jun 02 2016, 06:39 PM
  • sucess tomato >> openwrt upgrade

    using CW-5356u CDRKING router

    using CC 15.05.01 image

    cons on openwrt: no WiFi, but hey, just buy a USB wifi dongle based on ralink chipset and youre good.

    tried and tested so far no crashes whatsoever




    can go back to tomato just fine, perfect router for multiwan task now using mwan3 package.

    -- edited by polka on Jun 05 2016, 06:36 AM
  • Sir kumusta Bandwith Limiter w/ MultiWan sa CW5356U OpenWRT, gustong gawin din yan sa 5356U ko madali lang bang gawin at kung babalik sa Tomato madali rin, any simple guide hehehe
  • unfortunately walang bandwidth limiter ang OpenWRT, although you can bandwidth limit per interface hindi nga lang per IP.

    if you want to migrate to openwrt, just download the generic BCM47xx image and flash it using the tomato upgrade page the same as you upgrade/downgrade a tomato firmware (make sure to check clear nvram thing if you dont, hindi mo ma-access yung admin page ng OpenWRT using LAN ports but the wan port). Same with going back to Tomato, just flash Tomato firmware back using OpenWRT flash firmware page, just make sure to uncheck the 'keep settings' and youre good to go.

    link to compatible firmware for CW-5356u router: <click here for link>

    5358u users, flash at your own risk.

    tested gargoyle firmware, works 100% wala nga lang wifi but has comprehensive bandwidth limiter features that you can use, so kung meron naman kayo dedicated AP device dyan this is good to go.

    -- edited by polka on Jun 05 2016, 10:06 AM
  • Gargoyle on CW-5356u CDRKING.

    works 100%, no wifi as expected.




    link to compatible gargoyle firmware: <click here for link>

    -- edited by polka on Jun 05 2016, 10:27 AM
  • @sir polka pwede po bang separate ang game at browsing sa OpenWRT ? medyo may bug nga kasi ung kay kamatis currently using CW-5356u
  • @polka
    ok pala yan Gargoyle, bandwidth quota meron din ba kay kamatis
  • May recommended ba kayo na dual band router na under 3k that is supported by gargoyle?

    QoS ang primary concern ko, para kahit may nag yoyoutube/download, di ako maapektuhan sa online fps games ko.
  • @ronkx

    here: <click here for link>

    unlisted routers can be also supported as long as they use the same chipset that gargoyle supports. The popular chipset is AR71xx chipsets. Which you can find commonly in tplink routers.

    @edward

    wala bandwidth quota ang kamatis

    bandwidth limiter lang at qos lang meron ang kamatis

    @kpitan

    sure, as long as meron ka 2 WAN internet sources. All you have to do is flash the openwrt image on it and install mwan3-luci package.

    once installed, adjust lang ng konti sa switch configuration ng router so you can use 2 wan ports. actually pwede hanggang 4 na WAN internet or more assuming na meron ka managed switch, pero I highly doubt that the router can handle more than 4 wan interfaces dahil na rin sa CPU issue ng router, di kakayanin.
  • @sir polka mamayang gabi try ko to. parang duduguin ang utak ko ah XD sana magawa kong paghiwalayin ang game sa browsing XD salamat sir
  • ayus successfully flash my 5356u to openwrt
    BAD NEWS HINDI KO MACONFIGURE ANG DUAL WAN AT PA SEPARATE NG GAME SA BROWSING
    pa help naman mga sir with pix san kung may tutorial para madaling ma intindihan ng mga noob na tulad........
    nila kasama narin ako dun XD

    -- edited by kpitan on Jun 07 2016, 04:39 PM
  • Hi guys! hehe ang tindi buhay pa ito. Sorry 2nd time ko to itatanong dito, sino may guide pag setup ng optware? naisave ko yung link kung nasan yung topic na yun kaya lang yung link dun sa page na yun dead na or wala na yung file na yun :(

    Sa page 95 and 96 nandun yung google link pero dead na...

    Baka po meron kayo naitabi nun. Balak ko kasi buhayin yung router ko sa bahay dadalin ko sa opis for research hehe. Thanks thanks
  • @gadget20

    sir malapit na malapit ka na try mo mag backread sa pages na yun..

    tska outdated na ang Optware. Mas updated and Entware. after mo mainstall ang Entware, upgrade mo sya sa Entware-ng which is may instructions after mainstall ang Entware.
  • @satoshi214

    yes sir actually kagabi ko lang din sya ginamit. nag host ako ng free wifi dito sa amin with bandwidth limit.
  • tamang tama yung openwrt, i just brick the router.. (while testing the script provide by polka, my fault :D ).

    downloading and i will play with it this coming weekend
  • @kpitan

    kailangan mo pa kasi i-configure yan, hindi yan plug and play.

    ill create a basic how-to video about it later.

    basically you need to do is

    - create a VLAN correspond to LAN4 as WAN2
    - create a new interface based on that new VLAN you created and set the interface on WAN firewall.
    - make sure each WAN has its own metric, set WAN1 as 1 and WAN2 as 2
    - go to Loadbalancing
    - go to configuration
    - under interfaces, go delete all.
    - create a new one, set the name of the interface exactly how you named it on while you created the interface earlier
    - set the tracking IP (you can use 8.8.8.8 and 8.8.4.4 as tracking IP)
    - set tracking reliability to 1
    - ping count to 1
    - ping timeout to 10s
    - ping interval to 5s
    - interface down to 10
    - interface up to 1
    - save and apply and do that again and create new interface for wan 2 with the same setting
    - go to members
    - delete all entries and create new one
    - name rule as WAN_M1 then click add
    - choose interface to wan
    - set metric to 1
    - set weigh to 1
    - click save and apply
    - create another one named WAN_M2
    - choose interface to wan
    - set metric to 2
    - set weigh to 1
    - click save and apply
    - create another one named WAN2_M1
    - choose interface to wan
    - set metric to 1
    - set weigh to 1
    - click save and apply
    - Go to policies
    - name it as wan1 and click add
    - set members as WAN_M1
    - last resort as unreachable (reject)
    - save and apply
    - create another one named as wan2_games_only
    - set member as WAN2_M1 and WAN_M2
    - last resort as unreachable (reject)
    - save and apply
    - go to rules
    - delete all here except 'default_rule'
    - edit 'default_rule' and set the policy assigned to 'wan1'
    - save settings and create a new rule for wan2 games only traffic

    **** this will be the tricky one since you need to know the game server's port/ip go here in ulop page to know the games ip/port <click here for link>

    sample is this rule.

    Draron Nest TCP
    Destination Port: 14300:14306,14400:14406,14500:14600
    Protocol: TCP
    Policy Assign: wan2_game_only

    save and apply

    Draon Nest UDP
    Destination Port: 15100:15200
    Protocol: UDP
    Policy Assign: wan2_game_only

    save and apply

    ;... now play Dragon Nest and that traffic should only go to WAN2

    -- edited by polka on Jun 08 2016, 09:24 PM
  • @sir polka salamat talaga sa effort sir, gagawin ko to mamayang gabi baka makuha na may guide na galing sau salamat ulit master...... pero w8 ko parin ung video tutorial mo para mas exact ung gagawin namin XD

    -- edited by kpitan on Jun 09 2016, 12:54 PM
  • wow, buhay pa pala thread guys, keep it up, will back read for a while, im happy to see some old forummates here
  • @kemosabe8 thanks thanks hehe :)
  • may bago po bang update sa setting up squid?? kasi naginstall ako today, hindi ko na makita yung
    *search for "http_port" edit it with "http_port 3128 transparent"
    *search for "cache_dir" edit it with "cache_dir ufs /opt/var/cache 5120 24 256" ... 5120 is the total size of data you want to store for caching, edit it with your personal liking, measured in Megabyte.
    *search for "cache_mem" edit it with "cache_mem 8 MB"


    sir polka pahelp po =D Salamat!