openwrt


Control internet data rate for specific client for specific application


I am trying to shape internet bandwidth to user.
Following is my use case.
I have two client connected, and both uses youtube.
I want to limited data rate aceess to client 1 when it try to access youtube.
I am using ndpi to mark the packet using ip table.
Step I am trying are.
iptables -t mangle -I PREROUTING -m ndpi --youtube -j MARK --set-mark 8
tc class add dev br-lan parent 1:1 classid 1:39 hfsc ls rate 5kbit ul rate 10kbit
tc qdisc add dev br-lan parent 1:39 handle 39: fq_codel
tc filter add dev br-lan parent 1: handle 8 fw flowid 1:39
With this I can able to control the data rate of user when they are accessing youtube.
My aim is To provide this rate to client1(aa:bb:cc:dd:ee:ff) only, not to client 2.
How can I add match u32 with handle 8 fw ?
I tried with
tc filter add dev br-lan protocol ip parent 1: handle ::8 u32 match u32 0xccddeeff 0xFFFFFFFF at -12 match u16 0x1078 0xaabb at -14 flowid 1:39
But it didn't work
Thanks.

Related Links

Build OpenWRT for Dlink DIR-600 b2
ChilliSpot on OpenWRT
Building openwrt on centos7
Get per packet RSSI using libnltiny in Openwrt
Find MAC Addresses of devices in range of Wifi router with programatically
Unknow build error with OpenWrt
Installing “opkg”?
Makefile:1279: recipe for target 'clean-temp.o' failed
openwrt netcat do not work
Steps To Generating Image from OpenWrt SDK
add http request header to http request header from openwrt
Openwrt-,Firewall-pptp-client(ip table rule for pptp tunnel)
How to install GNU Radio on OpenWrt
how to use TingoDB in stead of MongoDB with Deployd?
Default username and password for LUCI2
jquery-2.1.1.min.js Openwrt Luci

Categories

HOME
scipy
drupal-7
antivirus
thunderbird-addon
cocos2d-x-3.0
hana
h2
mainframe
safari
specflow
hyperledger-fabric
devstack
android-source
xul
data-analysis
gwtp
maxima
cratedb
react-leaflet
sendkeys
dendrogram
phpbb
factor-analysis
google-openid
chocolatey
movies
eclipselink
styles
android-fragmentactivity
excel-2010
prediction
richfaces
bcrypt
cronet
yosys
auditing
mef2
pitest
pyscripter
graph-databases
spreedly
receipt
fabric-digits
precedence
pox
lego
redhat-datavirt
liquid-xml
es-shell
socketpair
coreclr
topic-modeling
brute-force
google-account
powermta
dimple.js
chunked-encoding
amazon-machine-learning
gauss
rollback
dwarf
iphone-developer-program
castle-dynamicproxy
garrys-mod
pdfkit
sqldatareader
inject
tomcat5
clob
search-regex
flexjson
schtasks.exe
textkit
anti-patterns
risk-analysis
ffprobe
xaml-designer
epl
hg-git
c++-actor-framework
sthttprequest
code-testing
smartystreets
wss
httpcontext
config-files
magicalrecord-2.2
execvp
swrl
ftp4j
threadx
arbor.js
vt100
angularjs-timeout
code-conversion
maven-ear-plugin
couchdb-lucene
fotoware
tfs-power-tools
deploying
rose-db-object
gdt
parameterization
userid
rubycas
pureftpd
open-graph-beta
external-assemblies
communicationexception
boost-date-time
pci-bus
callgrind
revision
database-diagramming
data-execution-prevention
visual-studio-dbpro

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App