Results 1 to 2 of 2

Thread: Script for asus router

  1. #1

    Arrow Script for asus router

    I'm going to put this script on my router(to limit connections per ip) but i'm not sure if everything is cofigured properly.
    My router is the asus wl500g premium.
    Here is the script:

    TCA="tc class add dev br0"
    TFA="tc filter add dev br0"
    tc qdisc del dev br0 root
    tc qdisc add dev br0 root handle 1: htb
    tc class add dev br0 parent 1: classid 1:1 htb rate 3480kbit
    $TCA parent 1:1 classid 1:10 htb rate 256kbit ceil 256kbit prio 2
    $TCA parent 1:1 classid 1:11 htb rate 256kbit ceil 256kbit prio 2
    $TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
    $TFA parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
    iptables -t mangle -A POSTROUTING -d 192.168.1.2 -j MARK --set-mark 10
    iptables -t mangle -A POSTROUTING -d 192.168.1.3 -j MARK --set-mark 11
    tc qdisc add dev br0 ingress
    $TFA parent ffff: protocol ip u32 match ip src 192.168.1.2 flowid :1 police rate 160kbit mtu 12k burst 10k drop
    $TFA parent ffff: protocol ip u32 match ip src 192.168.1.3 flowid :1 police rate 160kbit mtu 12k burst 10k drop
    iptables -I FORWARD -s 192.168.1.2 -p tcp -m connlimit --connlimit-above 100 -j DROP
    iptables -I FORWARD -s 192.168.1.3 -p tcp -m connlimit --connlimit-above 100 -j DROP



    Thanks

  2. #2
    none of you know about this?

Similar Threads

  1. Printer werkt niet met router WL-500gPremium
    By EvO in forum Dutch Discussion - Nederlands
    Replies: 4
    Last Post: 12-11-2007, 15:42
  2. How-to: Use your router as a BitTorrent Client
    By GerardNL in forum WL-700g Tutorials
    Replies: 28
    Last Post: 24-10-2007, 19:38
  3. Kein Ping auf Router über W-lan/kein Internet
    By Tomkin in forum German Discussion - Deutsch (DE)
    Replies: 11
    Last Post: 21-10-2007, 15:22
  4. Replies: 0
    Last Post: 24-01-2007, 02:54
  5. Completely new WL700gE router crashed after firmware update - plz help!
    By ClaudeX in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 20-07-2006, 00:03

Posting Permissions

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