add openvpn
This commit is contained in:
parent
19a84b8027
commit
ec1c47116c
3
Reseaux/Openvpn/LICENSE
Normal file
3
Reseaux/Openvpn/LICENSE
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Additional permission under GNU GPL version 3 section 7
|
||||||
|
|
||||||
|
If you modify this Program, or any covered work, by linking or combining it with [name of library] (or a modified version of that library), containing parts covered by the terms of [name of library's license], the licensors of this Program grant you additional permission to convey the resulting work. Corresponding Source for a non-source form of such a combination shall include the source code for the parts of [name of library] used as well as that of the covered work.
|
66
Reseaux/Openvpn/README.md
Normal file
66
Reseaux/Openvpn/README.md
Normal file
@ -0,0 +1,66 @@
|
|||||||
|

|
||||||
|
URL : https://www.uvdesk.com/en/
|
||||||
|
|
||||||
|
# OpenSpeedTest
|
||||||
|
|
||||||
|
OpenSpeedTest est le test de bande passante en ligne le plus pr?cis et le plus puissant. Vous pouvez l'utiliser pour tester votre vitesse de r?seau local/bureau, y compris votre r?seau local/Wi-Fi. L'outil est con?u pour r?pliquer votre vitesse de connexion r?elle.
|
||||||
|
|
||||||
|
# Téléchargement, Configuration et Lancement
|
||||||
|
|
||||||
|
## Téléchargement de OpenSpeedTest
|
||||||
|
|
||||||
|
Saisir la commande pour télécharger la source
|
||||||
|
```bash
|
||||||
|
git clone https://git.tips-of-mine.fr/Tips-Of-Mine/Docker.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Saisir la commande pour vous rendre dans le dossier
|
||||||
|
```bash
|
||||||
|
cd Reseaux\OpenSpeedTest
|
||||||
|
```
|
||||||
|
|
||||||
|
## Modifier la configuration de OpenSpeedTest
|
||||||
|
|
||||||
|
Saisir la commande pour vous rendre dans le dossier
|
||||||
|
```bash
|
||||||
|
cd Reseaux\OpenSpeedTest
|
||||||
|
```
|
||||||
|
|
||||||
|
Nous éditons le fichier de configuration
|
||||||
|
```bash
|
||||||
|
nano .env
|
||||||
|
```
|
||||||
|
|
||||||
|
Nous modifions les variables dont nous avons besoin.
|
||||||
|
|
||||||
|
## Lancement de OpenSpeedTest
|
||||||
|
|
||||||
|
Pour utiliser OpenSpeedTest tout seul
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
Pour utiliser OpenSpeedTest avec Traefik
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose-traefik.yml up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
# Utilisation
|
||||||
|
|
||||||
|
## Accueil
|
||||||
|
|
||||||
|
Ouvrir une page web avec l'url :
|
||||||
|
Pour une utilisation tout seul
|
||||||
|
|
||||||
|
http://10.0.4.29:3000
|
||||||
|
|
||||||
|
Pour une utilisation avec Traefik
|
||||||
|
|
||||||
|
https://OpenSpeedTest.10.0.4.29.traefik.me`)"
|
||||||
|
|
||||||
|
|
||||||
|
# More info
|
||||||
|
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
|
||||||
|
|
||||||
|
# Buy me a coffe
|
||||||
|
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
72
Reseaux/Openvpn/docker-compose-traefik.yml
Normal file
72
Reseaux/Openvpn/docker-compose-traefik.yml
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
#### NETWORKS
|
||||||
|
networks:
|
||||||
|
docker-traefik_front_network:
|
||||||
|
external: true
|
||||||
|
back_network:
|
||||||
|
driver: bridge
|
||||||
|
attachable: true
|
||||||
|
external: false
|
||||||
|
|
||||||
|
#### SERVICES
|
||||||
|
services:
|
||||||
|
### openvpn-tcp
|
||||||
|
openvpn-tcp:
|
||||||
|
container_name: openvpn-tcp
|
||||||
|
hostname: openvpn-tcp
|
||||||
|
image: kylemanna/openvpn:2.4
|
||||||
|
command: ovpn_run --proto tcp
|
||||||
|
volumes:
|
||||||
|
- ./data/openvpn:/etc/openvpn
|
||||||
|
networks:
|
||||||
|
- docker-traefik_front_network
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik_front_network"
|
||||||
|
- "traefik.tcp.services.openvpn-tcp.loadBalancer.server.port=1194"
|
||||||
|
# openvpn does not not support SNI, we provide wildcard
|
||||||
|
- "traefik.tcp.routers.openvpn-tcp.rule=HostSNI(`*`)"
|
||||||
|
- "traefik.tcp.routers.openvpn-tcp.entrypoints=websecure"
|
||||||
|
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik_front_network"
|
||||||
|
# HTTP
|
||||||
|
- "traefik.http.routers.gitea-http.rule=Host(`gitea.traefik.me`)"
|
||||||
|
|
||||||
|
- "traefik.http.routers.gitea-http.entrypoints=http"
|
||||||
|
# HTTPS
|
||||||
|
- "traefik.http.routers.gitea-https.rule=Host(`gitea.traefik.me`)"
|
||||||
|
- "traefik.http.routers.gitea-https.entrypoints=https"
|
||||||
|
- "traefik.http.routers.gitea-https.tls=true"
|
||||||
|
- "traefik.http.routers.gitea.service=gitea-service"
|
||||||
|
# SSH
|
||||||
|
- "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
|
||||||
|
- "traefik.tcp.routers.gitea-ssh.entrypoints=ssh"
|
||||||
|
- "traefik.tcp.routers.gitea-ssh.service=gitea-ssh-service"
|
||||||
|
# Middleware
|
||||||
|
# Service
|
||||||
|
- "traefik.http.services.gitea-service.loadbalancer.server.port=3000"
|
||||||
|
- "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.port=22"
|
||||||
|
|
||||||
|
### openvpn-udp
|
||||||
|
openvpn-udp:
|
||||||
|
container_name: openvpn-udp
|
||||||
|
hostname: openvpn-udp
|
||||||
|
image: kylemanna/openvpn:2.4
|
||||||
|
command: ovpn_run --proto udp
|
||||||
|
volumes:
|
||||||
|
- ./data/openvpn:/etc/openvpn
|
||||||
|
networks:
|
||||||
|
- docker-traefik_front_network
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik_front_network"
|
||||||
|
- "traefik.udp.services.openvpn-udp.loadBalancer.server.port=1194"
|
||||||
|
- "traefik.udp.routers.openvpn-udp.service=openvpn-udp"
|
||||||
|
- "traefik.udp.routers.openvpn-udp.entrypoints=openvpn"
|
@ -50,6 +50,8 @@ entryPoints:
|
|||||||
address: ":993"
|
address: ":993"
|
||||||
pop3-ssl:
|
pop3-ssl:
|
||||||
address: ":995"
|
address: ":995"
|
||||||
|
openvpn:
|
||||||
|
address: ":1194/udp"
|
||||||
mysql:
|
mysql:
|
||||||
address: ":3306"
|
address: ":3306"
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user