Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 885 Bytes

BUILD.md

File metadata and controls

33 lines (27 loc) · 885 Bytes

Build from source


  1. Distro

    Ubuntu 22.04 server (kernel 5.15 or higher)

    sudo apt update
    sudo apt upgrade
    sudo reboot
    sudo apt install -y gcc clang libc6-dev-i386 libbpfcc-dev libbpf-dev

    Fedora 36 (kernel 6.0.5-200)

    sudo yum clean all
    sudo yum check-update
    sudo yum upgrade --refresh
    sudo yum install -y clang bcc-devel libbpf-devel iproute-devel iproute-tc glibc-devel.i686 git
  2. Compile:

    mkdir ~/repos
    cd repos
    git clone https://github.com/r-caamano/ebpf-tproxy-splicer.git 
    cd ebpf-tproxy-splicer/src
    clang -g -O2 -Wall -Wextra -target bpf -c -o tproxy_splicer.o tproxy_splicer.c
    clang -g -O2 -Wall -Wextra -target bpf -c -o outbound_track.o outbound_track.c
    clang -O2 -Wall -Wextra -o map_update map_update.c