Remove test update makefile

This commit is contained in:
Owen Schwartz 2024-11-23 17:41:51 -05:00
parent f48502dd08
commit 99f7d13efe
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
6 changed files with 15 additions and 23 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
bin/
newt

View file

@ -1,8 +1,17 @@
# Description: Makefile for building the project
BINARY_NAME=newt
ll: build
all: build push
build:
go build -o bin/$(BINARY_NAME) -v
docker build -t fossorial/newt:latest .
push:
docker push fossorial/newt:latest
test:
docker run -it -p 3002:3002 -v ./config_example.json:/config/config.json --cap-add=NET_ADMIN --cap-add=SYS_MODULE newt --config /config/config.json
local:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o newt
clean:
rm newt

View file

@ -1 +0,0 @@
ip link del dev wg0

View file

@ -1 +0,0 @@
eN6oRymkBFTCLOwlpEgB9zkCJpl0zb6NL5TRogXzNlk=

View file

@ -1,9 +0,0 @@
./newt \
--tunnel-ip=192.168.4.28 \
"--private-key=kAexrEV1OHlMYQU3BZatZxNfKGAbzo+ATspAdtOcRks=" \
"--public-key=Kn4eD0kvcTwjO//zqH/CtNVkMNdMiUkbqFxysEym2D8=" \
--endpoint=192.168.1.16:51820 \
--tcp-targets=9999:127.0.0.1:8080 \
--udp-targets=9953:127.0.0.1:53 \
--listen-ip=192.168.4.28 \
--server-ip=192.168.4.1

View file

@ -1,6 +0,0 @@
ip link add dev wg0 type wireguard
ip addr add 192.168.4.1/24 dev wg0
ip link set up dev wg0
wg set wg0 private-key ./key
wg set wg0 listen-port 51820
wg set wg0 peer 3QfirSdDVihYCAz66t6DTAtFtsh+9WVVu7ItlL750hI= allowed-ips 192.168.4.28