mirror of
https://github.com/fosrl/newt.git
synced 2025-05-13 05:30:39 +01:00
Remove test update makefile
This commit is contained in:
parent
f48502dd08
commit
99f7d13efe
6 changed files with 15 additions and 23 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
bin/
|
||||
newt
|
19
Makefile
19
Makefile
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
ip link del dev wg0
|
1
test/key
1
test/key
|
@ -1 +0,0 @@
|
|||
eN6oRymkBFTCLOwlpEgB9zkCJpl0zb6NL5TRogXzNlk=
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue