Skip to content

lynxthecat/cake-wg-pbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

cake-wg-pbr

Set up CAKE in the context of WireGuard with PBR

Relies on skb->hash preservation, see:

https://lists.bufferbloat.net/pipermail/cake/2020-May/005257.html

And capturing ingress packets from layer 3 WireGuard interface, see:

https://forum.openwrt.org/t/nftables-and-qos-in-2021/112013/517

Required packages

This cake-wg-pbr script requires at least the following packages:

  • tc-tiny
  • kmod-ifb
  • kmod-sched-core
  • kmod-sched-cake

Installation on OpenWrt

To install:

 opkg update; opkg install tc-tiny kmod-ifb kmod-sched-core kmod-sched-cake
 cd /etc/init.d/
 wget https://raw.githubusercontent.com/lynxthecat/cake-wg-pbr/main/cake-wg-pbr
 chmod +x ./cake-wg-pbr
 cd /etc/hotplug.d/iface/
 wget https://raw.githubusercontent.com/lynxthecat/cake-wg-pbr/main/11-cake-wg-pbr
 chmod +x ./11-cake-wg-pbr

Set the WAN and VPN interfaces in cake-wg-pbr

About

Set up CAKE in the context of WireGuard with PBR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages