Skip to content

QiuSimons/luci-app-daed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luci-app-daed

A Linux high-performance transparent proxy solution based on eBPF.


Build on OpenWrt official SnapShots

1. Get Source

  • luci-app-daed works with https://github.com/immortalwrt/packages/tree/master/net/daed
git clone https://github.com/QiuSimons/luci-app-daed package/dae

2. Install clang-13, refer to https://apt.llvm.org

apt-get update
apt-get install -y clang-13

3. Change OpenWrt Source (Requirements for DAE to work)

  • Enable eBPF support, add content to: .config

    CONFIG_DEVEL=y
    CONFIG_BPF_TOOLCHAIN_HOST=y
    # CONFIG_BPF_TOOLCHAIN_NONE is not set
    CONFIG_KERNEL_BPF_EVENTS=y
    CONFIG_KERNEL_CGROUP_BPF=y
    CONFIG_KERNEL_DEBUG_INFO=y
    CONFIG_KERNEL_DEBUG_INFO_BTF=y
    # CONFIG_KERNEL_DEBUG_INFO_REDUCED is not set
    
  • Add xdp-sockets-diag kernel module, add content to: package/kernel/linux/modules/netsupport.mk

    define KernelPackage/xdp-sockets-diag
      SUBMENU:=$(NETWORK_SUPPORT_MENU)
      TITLE:=PF_XDP sockets monitoring interface support for ss utility
      KCONFIG:= \
    	CONFIG_XDP_SOCKETS=y \
    	CONFIG_XDP_SOCKETS_DIAG
      FILES:=$(LINUX_DIR)/net/xdp/xsk_diag.ko
      AUTOLOAD:=$(call AutoLoad,31,xsk_diag)
    endef
    
    define KernelPackage/xdp-sockets-diag/description
     Support for PF_XDP sockets monitoring interface used by the ss tool
    endef
    
    $(eval $(call KernelPackage,xdp-sockets-diag))

4. Build luci-app-daed

make menuconfig # choose LUCI -> Applications -> luci-app-daed
make package/dae/luci-app-daed/compile V=s # build luci-app-daed

Preview