Contributions de Administrateur
De www.yakakliker.org
Un utilisateur avec 1 614 modifications. Compte créé le 9 mars 2024.
24 mai 2024
- 14:5924 mai 2024 à 14:59 diff hist +63 Haproxy : Configuration de plusieurs certificats Aucun résumé des modifications Balise : Éditeur visuel
- 14:5824 mai 2024 à 14:58 diff hist +55 Accueil →Astuces Balise : Éditeur visuel
- 14:5724 mai 2024 à 14:57 diff hist +1 Haproxy : Configuration de plusieurs certificats Aucun résumé des modifications Balise : Éditeur visuel
- 14:5624 mai 2024 à 14:56 diff hist +1 131 Haproxy : Configuration de plusieurs certificats Aucun résumé des modifications Balise : Éditeur visuel
- 14:5324 mai 2024 à 14:53 diff hist +1 087 N Haproxy : Configuration de plusieurs certificats Page créée avec « === Exemple de configuration === <syntaxhighlight lang="bash"> frontend yakakliker bind *:80 bind *:443 ssl crt /etc/haproxy/cert/www.yakakliker.org.pem name www.yakakliker.org # filter cache mycache # http-request cache-use mycache # http-response cache-store mycache mode http option httplog acl yaka_acl hdr(host) www.yakakliker.org http-request redirect scheme https code 301 unless { ssl_fc } use_backend backend1 if yak... » Balise : Éditeur visuel
- 14:4724 mai 2024 à 14:47 diff hist +123 Haproxy : Reverse Proxy https Aucun résumé des modifications Balise : Éditeur visuel
- 14:4024 mai 2024 à 14:40 diff hist +353 Haproxy : Reverse Proxy https Aucun résumé des modifications Balise : Éditeur visuel
23 mai 2024
- 09:2823 mai 2024 à 09:28 diff hist +297 N Let's Encrypt : Renouveler automatiquement les certificats Page créée avec « <syntaxhighlight lang="bash"> sudo certbot renew --force-renewal </syntaxhighlight> === Lien === https://quillevere.net/programmation/linux/creer-renouveler-ses-certificats-let-s-encrypt-automatiquement-2_60908.htm Catégorie:Let's Encrypt Catégorie:Scripts Catégorie:Certificats » Balise : Éditeur visuel
22 mai 2024
- 17:0522 mai 2024 à 17:05 diff hist +58 Accueil Aucun résumé des modifications Balise : Éditeur visuel
- 17:0422 mai 2024 à 17:04 diff hist +36 Accueil Aucun résumé des modifications Balise : Éditeur visuel
- 17:0222 mai 2024 à 17:02 diff hist +61 Haproxy : Reverse Proxy https Aucun résumé des modifications Balise : Éditeur visuel
- 17:0222 mai 2024 à 17:02 diff hist +574 N Haproxy : Unable to load SSL private key from PEM file Page créée avec « Il faut concaténer la clé Let's Encrypt fullchain.pem et privkey.pem pour créer une clé pour le site en question. <syntaxhighlight lang="bash"> cat fullchain.pem privkey.pem > example.com.pem </syntaxhighlight> Reste à l'ajouter dans la configuration Haproxy<syntaxhighlight lang="bash"> bind *:443 ssl crt /etc/letsencrypt/live/example.com/example.com.pem </syntaxhighlight> === Lien === https://stackoverflow.com/questions/27947982/haproxy-unable-to-load-s... » Balise : Éditeur visuel
- 16:5522 mai 2024 à 16:55 diff hist +660 Haproxy : Reverse Proxy https Aucun résumé des modifications Balise : Éditeur visuel
- 16:4622 mai 2024 à 16:46 diff hist +1 087 N Haproxy : Reverse Proxy https Page créée avec « === Approche 1 : https to http === Avec cette approche, la communication se fait en http avec le backend (serveur web de destination) et en https avec les clients. Les certificats sont hébergés uniquement sur HAproxy<syntaxhighlight lang="bash"> frontend yakakliker bind *:80 mode http option httplog acl yaka_acl hdr(host) www.yakakliker.org use_backend backend1 if yaka_acl frontend yakakliker_443 bind *:443 ssl crt /etc/haproxy/ce... » Balise : Éditeur visuel
- 16:3722 mai 2024 à 16:37 diff hist −4 Apache : Installation d'un certificat Let's Encrypt Aucun résumé des modifications Balise : Éditeur visuel
- 16:3722 mai 2024 à 16:37 diff hist +1 244 N Apache : Installation d'un certificat Let's Encrypt Page créée avec « === Installation de Certbot === <syntaxhighlight lang="bash"> sudo apt install certbot python3-certbot-apache </syntaxhighlight> === Vérification de la configuration Apache (Virtualhost) === <syntaxhighlight lang="bash"> sudo nano /etc/apache2/sites-available/your_domain.conf </syntaxhighlight>Vérifier la présence de ces lignes :<syntaxhighlight lang="bash"> ... ServerName your_domain ServerAlias www.your_domain ... </syntaxhighlight>Tester la configuration :... » Balise : Éditeur visuel
- 13:3422 mai 2024 à 13:34 diff hist +109 Installation d'un certificat Let's encrypt Aucun résumé des modifications Balise : Éditeur visuel
21 mai 2024
- 13:5121 mai 2024 à 13:51 diff hist +119 N Installation d'un certificat Let's encrypt Page créée avec « https://fr-wiki.ikoula.com/fr/Mise_en_place_d%E2%80%99un_certificat_Let%E2%80%99s_Encrypt_avec_Apache_sur_Debian_10 » Balise : Éditeur visuel
17 mai 2024
- 15:0317 mai 2024 à 15:03 diff hist +491 Linux : Haproxy Aucun résumé des modifications Balise : Éditeur visuel
- 14:3717 mai 2024 à 14:37 diff hist −3 Linux : Haproxy Aucun résumé des modifications Balise : Éditeur visuel
16 mai 2024
- 17:2016 mai 2024 à 17:20 diff hist +82 Linux : Haproxy Aucun résumé des modifications Balise : Éditeur visuel
- 13:0316 mai 2024 à 13:03 diff hist +75 Linux : Haproxy Aucun résumé des modifications Balise : Éditeur visuel
- 13:0216 mai 2024 à 13:02 diff hist +26 Linux : Haproxy Aucun résumé des modifications Balise : Éditeur visuel
- 13:0016 mai 2024 à 13:00 diff hist +198 N Linux : Haproxy Page créée avec « === Lien === https://www.aukfood.fr/mise-en-place-haproxy-2-8-sur-une-debian-12/ https://upcloud.com/resources/tutorials/haproxy-load-balancer-debian Catégorie:Haproxy Catégorie:Linux » Balise : Éditeur visuel
15 mai 2024
- 09:0215 mai 2024 à 09:02 diff hist +39 IVentoy Aucun résumé des modifications actuelle Balise : Éditeur visuel
- 08:5715 mai 2024 à 08:57 diff hist +149 N IVentoy Page créée avec « Serveur PXE === Lien === https://www.it-connect.fr/tuto-iventoy-serveur-pxe-windows-linux-vmware-esxi/ Catégorie:IVentoy Catégorie:PXE » Balise : Éditeur visuel
10 mai 2024
- 17:2410 mai 2024 à 17:24 diff hist +2 Script Bash : Les Variables Aucun résumé des modifications Balise : Éditeur visuel
- 17:2310 mai 2024 à 17:23 diff hist +369 N Script Bash : Les Variables Page créée avec « === Exemple === <syntaxhighlight lang="bash"> #!/bin/bash export VAR01=$1 export VAR02=$2 echo $VAR01.$VAR02 </syntaxhighlight> ==== Résultat ==== <syntaxhighlight lang="shell"> franck@VirtualBox:~/Deploiement$ sh test.sh Bonjour "Tout le monde" Bonjour.Tout le monde franck@VirtualBox:~/Deploiement$ </syntaxhighlight> Catégorie:Scripts Catégorie:Bash » Balise : Éditeur visuel
7 mai 2024
- 10:407 mai 2024 à 10:40 diff hist +521 N Python : Formatage des flottants Page créée avec « <syntaxhighlight lang="bash"> b=3.14116 print(f"b = {b}") # pas d'instruction de formatage print(f"b = {b:.3f}") # 3 chiffres après la virgule print(f"b = {b:6.2f}") # au moins 6 caractères, dont deux chiffres après la virgule, si besoin des blancs print(f"b = {b:06.2f}") # au moins 6 caractères, dont deux chiffres après la virgule, si besoin des zéros </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affich... » Balise : Éditeur visuel
- 10:367 mai 2024 à 10:36 diff hist +375 N Python : Formatage des entiers Page créée avec « <syntaxhighlight lang="bash"> a = 14 print(f"a = {a}") # pas d'instruction de formatage print(f"a = {a:4d}") # au moins 4 caractères, si besoin des blancs print(f"a = {a:04d}") # au moins 4 caractères si besoin des 0 </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affichage.html Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 10:347 mai 2024 à 10:34 diff hist +240 N Python : f-strings Page créée avec « <syntaxhighlight lang="bash"> a = 3 b = 5 print(f"La somme de {a} et {b} vaut {a+b}.") </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affichage.html Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
6 mai 2024
- 16:146 mai 2024 à 16:14 diff hist +1 Rundeck : Les variables Aucun résumé des modifications Balise : Éditeur visuel
- 16:136 mai 2024 à 16:13 diff hist +754 N Rundeck : Les variables Page créée avec « === Variable type Text === Pour une variable créé de type ''Text'' du nom de '''Var01'''<syntaxhighlight lang="bash"> #!/bin/bash filename=$RD_OPTION_VAR01 echo $RD_OPTION_VAR01 echo $filename </syntaxhighlight> ==== Pour info ==== '''Les valeurs dʼoption seront accessibles aux scripts sous ces formes:''' Prompt : <code>$RD_OPTION_VAR01</code> Arguments de la ligne de commande : <code>${option.Var01}</code> Arguments de la ligne de commande (sans guillem... » Balise : Éditeur visuel
- 12:086 mai 2024 à 12:08 diff hist +121 N Créer un java Keystore en ligne de commande Page créée avec « https://net-security.fr/securite/creer-javakeystore/ Catégorie:Linux Catégorie:SSL Catégorie:Keystore » Balise : Éditeur visuel
- 09:376 mai 2024 à 09:37 diff hist +384 N Linux : Vérifier la date de validité du certificat SSL Page créée avec « <syntaxhighlight lang="bash"> openssl s_client -connect outildechiffrage.lan.groupeherve.com:443 -servername outildechiffrage.lan.groupeherve.com | openssl x509 -noout -dates </syntaxhighlight> === Liens === https://www.developpez.net/forums/d2121910/systemes/securite/verifier-validite-periodicite-d-certificat/ Catégorie:Linux Catégorie:SSL Catégorie:Certificats » Balise : Éditeur visuel
3 mai 2024
- 14:153 mai 2024 à 14:15 diff hist +1 560 Bash : Whiptail Aucun résumé des modifications Balise : Éditeur visuel
2 mai 2024
- 15:232 mai 2024 à 15:23 diff hist +1 493 N Bash : Whiptail Page créée avec « === Msgbox === <syntaxhighlight lang="bash"> whiptail --title "Déploiement" --fb --msgbox " Avant d'aller plus loin, veillez à avoir ces différentes informations en votre possession :" 20 100 </syntaxhighlight> === --yesno === <syntaxhighlight lang="bash"> if (whiptail --title "Déploiement" --fb --yesno "Souhaitez vous continuer ?" 10 60); then echo "ok" else echo "Fin" fi </syntaxhighlight> === Choix multiples === <syntaxhighlight lang="bash"> #Fonction... » Balise : Éditeur visuel
30 avril 2024
- 14:4130 avril 2024 à 14:41 diff hist +1 042 Bash : Echo Aucun résumé des modifications Balise : Éditeur visuel
- 14:3930 avril 2024 à 14:39 diff hist −710 Bash : Echo Contenu remplacé par « Catégorie:Scripts Catégorie:Bash Catégorie:Linux » Balises : Contenu remplacé Éditeur visuel
- 14:2630 avril 2024 à 14:26 diff hist +773 N Bash : Echo Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash export red="\033[31m" export turquoise="\033[36m" export bleue="\033[34m" export jaune="\033[33m" export vert="\033[32m" export gras="\033[1m" export souligne="\033[4m" export clignotant="\033[5m" export reset="\033[0m" export rougegrasclignotant="\033[31;1;5m" export turquoisegras="\033[36;1m" export vertgras="\033[32;1m" export jaunegras="\033[33;1m" echo "${vertgras}Le serveur "$VAR05" est bien accessible.""$reset"... » Balise : Éditeur visuel
- 08:5130 avril 2024 à 08:51 diff hist +434 N Bash : Script Ping Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash IP="8.8.8.8" # Replace with the IP address you want to ping COUNT=1 # Number of ping attempts if ping -c $COUNT $IP > /dev/null 2>&1; then echo "Ping to $IP was successful." else echo "Ping to $IP failed." fi </syntaxhighlight> === Liens === https://tecadmin.net/check-network-connectivity-using-ping-in-shell-scripts/ Catégorie:Scripts Catégorie:Bash Catégorie:Linux » Balise : Éditeur visuel
29 avril 2024
- 13:3229 avril 2024 à 13:32 diff hist +1 316 N Bash : sshpass Page créée avec « === Créer un utilisateur sur un remote distant avec sshpass : === <syntaxhighlight lang="bash"> export VAR05=Adresse_IP export VAR08=Password export VAR07=Utilisateur export SSHPASS=$VAR08 sshpass -e ssh root@$VAR05 useradd -s /bin/bash -m $VAR07 </syntaxhighlight> === Copier des documents depuis le remote vers un dossier local avec sshpass : === <syntaxhighlight lang="bash"> export VAR05=Adresse_IP export VAR08=Password export SSHPASS=$VAR08 sshpass -e scp... » Balise : Éditeur visuel
- 09:4529 avril 2024 à 09:45 diff hist +257 N Zerotier : Installation du client Page créée avec « curl -s <nowiki>https://install.zerotier.com</nowiki> | sudo bash curl -o Zerotier.sh <nowiki>https://raw.githubusercontent.com/Yakakliker37/Base_info/main/Zerotier.sh</nowiki> sh Zerotier.sh Catégorie:Zerotier Catégorie:VPN Catégorie:SDWAN » Balise : Éditeur visuel
- 09:2629 avril 2024 à 09:26 diff hist +110 N Serveur Syslog OpenSource Page créée avec « https://www.tecmint.com/open-source-centralized-linux-log-management-tools/ Catégorie:Veille Techno » actuelle Balise : Éditeur visuel
26 avril 2024
- 09:0726 avril 2024 à 09:07 diff hist +323 N Bash : Boucle Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash i=1 var=00$i ls ./temp-sites/$var*.conf 2>&1 > /dev/null status=$? while [ $status -eq 0 ]; do echo $status i=$(( i + 1 )) var=00$i ls ./temp-sites/$var*.conf 2>&1 > /dev/null status=$? echo $status done echo $var </syntaxhighlight> Catégorie:Scripts Catégorie:Bash » Balise : Éditeur visuel
23 avril 2024
- 15:4323 avril 2024 à 15:43 diff hist +188 N Linux : apt-get upgrade non interactive Page créée avec « <syntaxhighlight lang="bash"> apt-get --force-yes -o Dpkg::Options::='--force-confold' --force-yes -o Dpkg::Options::='--force-confdef' -fuy upgrade </syntaxhighlight> Catégorie:Linux » Balise : Éditeur visuel
22 avril 2024
- 16:2022 avril 2024 à 16:20 diff hist −4 Apache2 : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message Aucun résumé des modifications Balise : Éditeur visuel
- 16:1922 avril 2024 à 16:19 diff hist +498 N Apache2 : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message Page créée avec « Editer le fichier : /etc/apache2/apache2.conf Ajouter la ligne suivante à la fin du fichier. as<syntaxhighlight lang="bash"> ServerName 127.0.0.1 </syntaxhighlight>Recharger Apache2<syntaxhighlight lang="bash"> systemctl restart apache2 </syntaxhighlight> === Lien : === https://www.digitalocean.com/community/tutorials/apache-configuration-error-ah00558-could-not-reliably-determine-the-server-s-fully-qualified-domain-name Catégorie:Apache2 Catégorie... » Balise : Éditeur visuel
- 10:0122 avril 2024 à 10:01 diff hist +148 N SSH : Enlever une ancienne clé SSH Page créée avec « <syntaxhighlight lang="bash"> ssh-keygen -f "/root/.ssh/known_hosts" -R "172.20.14.38" </syntaxhighlight> Catégorie:SSH Catégorie:Linux » Balise : Éditeur visuel
- 09:3822 avril 2024 à 09:38 diff hist +51 Linux : Script avec expect Aucun résumé des modifications Balise : Éditeur visuel