Commit 27424ba6 authored by 王进波's avatar 王进波

udpate about L2TP config

parent dac7fa89
...@@ -35,29 +35,20 @@ edit-by:王进波 2018.08.12 ...@@ -35,29 +35,20 @@ edit-by:王进波 2018.08.12
## 服务器 ## 服务器
12.1是代码服务器,用 Docker 运行了 Gitlab-server 。除此之外,Docker中还运行着 Zabbix 监控服务器。 12.1是代码服务器,用 Docker 运行了 Gitlab-server 。
正在运行的容器的本地image镜像如下: 除此之外,Docker中还运行着 Zabbix 监控服务器,Sinopia(私有npm仓库),l2tp-vpn-server
查看正在运行的容器的本地image镜像,命令如下:
```shell ```shell
[gitlab@gitlabserver ~]$ sudo docker image ls [gitlab@gitlabserver ~]$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.docker-cn.com/zabbix/zabbix-web-nginx-mysql latest 45b7dc7196cb 10 days ago 161 MB
registry.docker-cn.com/zabbix/zabbix-server-mysql latest 54ac341fc48f 10 days ago 62.3 MB
registry.docker-cn.com/library/mysql 5.7 75576f90a779 11 days ago 372 MB
registry.docker-cn.com/gitlab/gitlab-ce latest 01d449655e58 2 weeks ago 1.46 GB
``` ```
正在运行的Docker容器如下: 查看正在运行的Docker容器,命令如下:
```shell ```shell
[gitlab@gitlabserver ~]$ sudo docker ps [gitlab@gitlabserver ~]$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8eb1ecab6adf registry.docker-cn.com/zabbix/zabbix-web-nginx-mysql:latest "docker-entrypoint.sh" 47 minutes ago Up 47 minutes 0.0.0.0:8000->80/tcp, 0.0.0.0:8043->443/tcp zabbix-web-nginx-mysql
9d2e28d10ae4 registry.docker-cn.com/zabbix/zabbix-server-mysql:latest "docker-entrypoint.sh" 54 minutes ago Up 54 minutes 0.0.0.0:10051->10051/tcp zabbixserver
dbc1348c8c51 registry.docker-cn.com/library/mysql:5.7 "docker-entrypoint..." 58 minutes ago Up 58 minutes 0.0.0.0:3306->3306/tcp mysql
f14446b77bae registry.docker-cn.com/gitlab/gitlab-ce:latest "/assets/wrapper" 12 days ago Up About an hour (healthy) 0.0.0.0:22->22/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:8822->8822/tcp, 0.0.0.0:8880->8880/tcp gitlab
``` ```
其中,Gitlab-server 只使用了一个Docker容器,gitlab(ID:f14446b77bae ),这个容器包含了Gitlab-server运行所需的全部服务。 其中,Gitlab-server 只使用了一个Docker容器,gitlab(ID:f14446b77bae ),这个容器包含了Gitlab-server运行所需的全部服务。
...@@ -243,4 +234,33 @@ docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest ...@@ -243,4 +234,33 @@ docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest
docker stop sinopia docker stop sinopia
docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar xvf /backup/backup.tar docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar xvf /backup/backup.tar
docker start sinopia docker start sinopia
``` ```
\ No newline at end of file
## L2TP-VPN-SERVER
```shell
docker run \
--name ipsec-server \
--env-file ./vpn.env \
--restart=always \
-p 500:500/udp \
-p 4500:4500/udp \
-v /lib/modules:/lib/modules:ro \
-d --privileged \
hwdsl2/ipsec-vpn-server
```
查看状态
```shell
docker exec -it ipsec-vpn-server ipsec status
```
查看连接
```shell
docker exec -it ipsec-vpn-server ipsec whack --trafficstatus
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment