Add Wireguard support to Burrow

This commit is contained in:
Jett Chen 2023-12-17 01:20:56 +08:00 committed by Conrad Kramer
parent 60257b256a
commit d3448e2bc7
59 changed files with 3805 additions and 521 deletions

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
tun_num := $(shell ifconfig | awk -F 'utun|[: ]' '/utun[0-9]/ {print $$2}' | tail -n 1)
check:
@cargo check
build:
@cargo run build
daemon:
@RUST_BACKTRACE=1 RUST_LOG=debug cargo run daemon
start:
@RUST_BACKTRACE=1 RUST_LOG=debug cargo run start
test-dns:
@sudo route delete 8.8.8.8
@sudo route add 8.8.8.8 -interface utun$(tun_num)
@dig @8.8.8.8 hackclub.com