How did you figure $99? I have a Raspberry Pi 4B serving as an OpenWRT firewall for $66, including the aluminum case, the POE splitter, the microSD card, and the board itself.
an extra USB ethernet, and prices vary from one place to another. but yeah, less than $99
What's your Internet bandwidth?
Cisco SG250 from their Small Business Series may be the cheapest switch platform that provides the feature you are looking for. Look at page 354 of this document and then review the entire Chapter 20.
You can pick up one here for under $50, including shipping, which is probably one of the cheapest Cisco SG250 switches you can find.
Cisco SG250 series of switches have all sorts of different models with more ports and also with POE ports. Cisco SG250 also has some limited L3 features, such as static routing. The switch has a Web GUI and a CLI similar to Cisco IOS; however, the OS is Linux and not the true Cisco IOS. These are not their true enterprise-level switches; rather, these are made for the SMB segment.
i saw the video in question my internet connexion is vdsl2 70m dl and up 20 and my mate
930 and 640 lol
so i copy in winscp hfsc.sh and gaming.sh chmod 755
cd /root/
ls -l
then startup
sleep 8
/root/hfsc.sh
sleep 8
/root/gaming.sh ?
is correctly
thnaks for advance
this is the basic idea, you do want to make the changes to the numeric quantities at the beginning of the script to match your speeds and your games requirements. also the download direction will only work with a wired router that has separate wifi APs.
hello dlakelan ys is exactly i would like make,
my router is just wired rb750gr3 and my isp is 70 dl and up 20
then i have interface lan bridge eth0.1
and eth0.2 is my wan
i have try that but not success
#!/bin/sh
WAN=eth0.2 # change this to your WAN device name
UPRATE=16000 #change this to your 80% kbps upload speed (in kbps)
LAN=eth0.1 # change this to your LAN device name
DOWNRATE=56000 #change this to about 80% of your download speed (in kbps)
GAMEUP=400 # throttle your speeds for upload in PS4/Xbox
GAMEDOWN=2000 # throttle your speeds for download in PS4/Xbox
setqdisc () {
DEV=eth0.2
RATE=$2
OH=26
highrate=$((RATE*90/100))
lowrate=$((RATE*10/100))
gamerate=$3
tc qdisc replace dev eth0 pfifo
tc qdisc delete dev eth0.2
tc qdisc delete dev eth0.1
## for ethernet / DOCSIS / VDSL etc use this
tc qdisc replace dev eht0.2 stab overhead 26 linklayer ethernet handle 1: root hfsc default 3
# for old school DSL with ATM use this:
#tc qdisc replace dev "$DEV" handle 1: root stab mtu 2047 tsize 512 mpu 68 overhead ${OH} #linklayer atm hfsc default 3
tc class add dev eth0.2 parent 1: classid 1:1 hfsc ls m2 59000kbit ul m2 16000kbit
# high prio class
tc class add dev eth0.2 parent 1:1 classid 1:2 hfsc rt m1 50000kbit d 40ms m2 14000kbit
tc class add dev eth0.2 parent 1:1 classid 1:3 hfsc ls m1 50000kbit d 40ms m2 50000kbit
tc qdisc add dev eth0.2 parent 1:2 pfifo limit 10
tc qdisc add dev eth0.2 parent 1:3 pie limit 100 target 80ms ecn tupdate 40ms bytemode
}
setqdisc $WAN $UPRATE $GAMEUP
## uncomment this to do the download direction via output of LAN
#setqdisc $LAN $DOWNRATE $GAMEDOWN
and add gaming.sh in root too thanks for you help
Blockquote
what does it mean not success? you can uncomment the last line to put the download direction enabled... but if you run those scripts, what happens?
also at rates above about 3Mbps it probably makes more sense to run fq_codel on the non-game packets instead of pie.
in luci i don't change to sfq
i have tap tc qdisc and the result is that
root@OpenWrt:~# tc qdisc
qdisc noqueue 0: dev lo root refcnt 2
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc noqueue 0: dev eth0.1 root refcnt 2
qdisc htb 1: dev eth0.2 root refcnt 2 r2q 10 default 0x12 direct_packets_stat 0 direct_qlen 1000
qdisc fq_codel 120: dev eth0.2 parent 1:12 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc fq_codel 130: dev eth0.2 parent 1:13 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc fq_codel 110: dev eth0.2 parent 1:11 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ----------------
qdisc htb 1: dev ifb4eth0.2 root refcnt 2 r2q 10 default 0x10 direct_packets_stat 0 direct_qlen 32
qdisc fq_codel 110: dev ifb4eth0.2 parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
how i execute the script ? please what is the command ?Preformatted text
those would be correct... but you must disable your SQM instances.
ok so i reboot the router with instance sqm disable is correctly ?
then can you modify the script please for my connexion ??
VDSL2 70 dl and upload 20
i reboot now for see
thanks, really
in reboot and disable sqm instance like that
i haveQueuing disciplines useable on this system. After installing a new qdisc, you need to restart the router to see updates but only fq codel and cake
I couldn't get mine to work using Putty, I made two files in root folder but failed with these scripts, especially this execute part:
execute
tc qdisc delete dev $WAN root
and restart the firewall
#!/bin/sh
WAN=eth1.2 # change this to your WAN device name
UPRATE=4800 #change this to your kbps upload speed
LAN=eth0.1
DOWNRATE=80000 #change this to about 80% of your download speed (in kbps)
setqdisc () {
DEV=$1
RATE = $2
tc qdisc replace dev $DEV handle 1: root tbf limit 3000 burst 6000 rate ${RATE}kbit
tc qdisc add dev $DEV parent 1: handle 2: drr
tc class add dev $DEV parent 2: classid 2:1 drr quantum 1500
tc class add dev $DEV parent 2: classid 2:2 drr quantum 15000
tc qdisc add dev $DEV parent 2:1 bfifo limit 3000
tc qdisc add dev $DEV parent 2:2 bfifo limit 15000
}
setqdisc $WAN $UPRATE
setqdisc $LAN $DOWNRATE
#!/bin/sh
GAMINGIP = "192.168.1.****" # change this
# start by putting everything into 2:1 as "default"
iptables -t mangle -A PREROUTING -j CLASSIFY --set-class 2:1
#reclassify all udp packets from your gaming machine as 2:2, high priority
iptables -t mangle -A PREROUTING -p udp -s ${GAMINGIP} -j CLASSIFY --set-class 2:2
iptables -t mangle -A POSTROUTING -p udp -d ${GAMINGIP} -j CLASSIFY --set-class 2:2
am I missing some of the Scripts or files to begin with? it would be great if we could get information on what are the needed files/script to begin with
I have Xfinity comcast cable with docsis 3.1 modem and WRT3200ACM Router with 100 mbps Down and 5 Mbps Up
hello happi $DEV you will do change for eth? or not i'm very not sure thanks i will try your script
The high level instructions full set of steps is basically this:
- Copy the files somewhere and make them executable
- Change the numerical values, and put your appropriate WAN and LAN devices at the top of the qdisc script
- change the IP address of your gaming box in the iptables script
- run each script by just saying their names at the command line (depends on what you named them, but suppose it's qdisc.sh and ipt.sh)
./qdisc.sh
./ipt.sh
ok just for understand
i'm change just the nuemrical values to the top ? not $dEV rate kbits
i'am confuse
i assume this should work with any standard OpenWRT firmware? without the need for any additional packages.
is this step necessary?
execute
tc qdisc delete dev $WAN root
and restart the firewall
in Putty it comes back saying it doesn't exist or something like that
Just the variables at the top.
not really, no, that's in case something goes wrong and you get locked out of your internet.
i think install bash and putty change $WAN to you eth0 the mine is eth0.2
@Happi reboot the router to see if qdiscs attached...when i delete dev...it gives me error to..restart and see if qdsics attached...tc -s qdisc.
do it and tell us please.