forked from hwdsl2/docker-ipsec-vpn-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (40 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
all: build
build:
docker-compose build
clean: down
docker rmi docker-ipsec-vpn-server_vpn
# docker rmi docker-ipsec-vpn-server_libreswan
# docker rmi docker-ipsec-vpn-server_xl2tpd
down:
docker-compose down
setup:
docker exec -it ipsec-vpn-server vpncli
# docker exec -it xl2tpd vpncli
bash:
docker exec -it ipsec-vpn-server /bin/bash
up: restart
restart: down start
start:
docker-compose up -d
info: ps logs
ps:
docker ps | grep "docker-ipsec-vpn-server_"
logs:
docker logs xl2tpd
docker logs libreswan
update: down reset-pull build start
reset-pull:
git reset --hard HEAD~2
git pull
debug:
docker exec -it libreswan apt update
docker exec -it libreswan apt install tcpdump
docker exec -it libreswan tcpdump -i eth0
debug2:
docker exec -it xl2tpd apt update
docker exec -it xl2tpd apt install tcpdump
docker exec -it xl2tpd tcpdump -i eth0
debug3:
docker exec -it ipsec-vpn-server apt update
docker exec -it ipsec-vpn-server apt install tcpdump
docker exec -it ipsec-vpn-server tcpdump -i eth0