Skip to content

NAVT(Network Address Vlan Translation) with XDP

License

Notifications You must be signed in to change notification settings

x86taka/xdp-navt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XDP-NAVT

NAVT(Network Address Vlan Translation) with XDP

VID:100, 192.168.0.1(inside) <=> VID:98, 10.10.0.1 (outside)
VID:1500, 192.168.0.1(inside0 <=> VID:98, 10.15.0.1(outside)

Build

In today's Linux, bpf_helper_defs.h is supposed to build. If you hit this script accordingly, it will fetch the kernel code and build it. Please use according to your kernel version. There is no problem with the first execution.

./gen_bpf_helper.sh

dev packages install

sudo apt install clang llvm libelf-dev build-essential linux-headers-$(uname -r) linux-libc-dev libbpf-dev gcc-multilib clang-format

Let's build go & ebpf

make

Run

./bin/xdp-navt

# use option
./bin/xdp-navt --device eth2

Test

make test

About

NAVT(Network Address Vlan Translation) with XDP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published