diff --git a/Reseaux/Openvpn/LICENSE b/Reseaux/Openvpn/LICENSE new file mode 100644 index 00000000..58a1d1b3 --- /dev/null +++ b/Reseaux/Openvpn/LICENSE @@ -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. diff --git a/Reseaux/Openvpn/README.md b/Reseaux/Openvpn/README.md new file mode 100644 index 00000000..6850b5f9 --- /dev/null +++ b/Reseaux/Openvpn/README.md @@ -0,0 +1,66 @@ +![OpenSpeedTest](./img/banniere-OpenSpeedTest.png) +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 +Buy Me a Coffee at ko-fi.com diff --git a/Reseaux/Openvpn/docker-compose-traefik.yml b/Reseaux/Openvpn/docker-compose-traefik.yml new file mode 100644 index 00000000..5d09e372 --- /dev/null +++ b/Reseaux/Openvpn/docker-compose-traefik.yml @@ -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" diff --git a/Reseaux/Traefik/configs/traefik.yml b/Reseaux/Traefik/configs/traefik.yml index 7968843c..6368a067 100644 --- a/Reseaux/Traefik/configs/traefik.yml +++ b/Reseaux/Traefik/configs/traefik.yml @@ -50,6 +50,8 @@ entryPoints: address: ":993" pop3-ssl: address: ":995" + openvpn: + address: ":1194/udp" mysql: address: ":3306" elasticsearch: