blog
Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Pb nmap Openvz
Voir :
Erreur nmap sur mon VPS OVH
apt-get install --no-install-recommends nmap
# nmap 1.2.3.4 Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-25 13:17 CEST route_dst_netlink: can't find interface "venet0"
# nmap --iflist Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-25 13:20 CEST INTERFACES: NONE FOUND(!) ROUTES: NONE FOUND(!
Solution
nmap --unprivileged 1.2.3.4
Pb nginx php-fpm page blanche après mise à jour
Merci http://stackoverflow.com/questions/15423500/nginx-showing-blank-php-pages
replace
include fastcgi_params;
with
include fastcgi.conf;
and remove fastcgi_param SCRIPT_FILENAME … in nginx.conf
Pb NFS
Err Stale File Handles
Source : https://www.baeldung.com/linux/stale-file-handles
$ stat filename File: filename Size: 583 Blocks: 8 IO Block: 4096 regular file Device: 810h/2064d Inode: 666 Links: 1 [...] $ ls -l /proc/1296/fd total 0 lrwx------ 1 user user 64 Jul 1 10:49 0 -> /dev/pts/1 lrwx------ 1 user user 64 Jul 1 10:49 1 -> /dev/pts/1 lrwx------ 1 user user 64 Jul 1 10:49 2 -> /dev/pts/1 lrwx------ 1 user user 64 Jul 1 10:50 3 -> /home/user/filename $ stat -L /proc/1296/fd/3 File: /proc/1296/fd/3 Size: 583 Blocks: 8 IO Block: 4096 regular file Device: 810h/2064d Inode: 666 Links: 1
Pb namespace nsenter - err reassociate to namespace ns net failed invalid argument
Voir :
nsenter --net=/run/user/1003457/netns/netns-6ab369e2-108b-8f4b-40a4-4bef511c1b9a bash
Erreur
nsenter: reassociate to namespace 'ns/net' failed: Invalid argument
Solution
$ docker inspect -f '{{.NetworkSettings.SandboxKey}}' 6b831cc17b30
/run/user/1003457/netns/netns-6ab369e2-108b-8f4b-40a4-4bef511c1b9a
$ docker inspect -f '{{.State.ConmonPid}}' 6b831cc17b30
51815
Avec le compte root
sudo nsenter -m -t 51815 nsenter --net=/run/user/1003457/netns/netns-6ab369e2-108b-8f4b-40a4-4bef511c1b9a bash
Ou avec Podman en mode rootless
podman unshare nsenter --net=/run/user/1003457/netns/netns-6ab369e2-108b-8f4b-40a4-4bef511c1b9a
Autres
$ podman inspect a9b6b3939b19 | grep '/run/user/.*ns'
"SandboxKey": "/run/user/1000/netns/netns-b6cd07ab-1512-c5af-419a-95b91701cfe0"
$ podman inspect a9b6b3939b19 --format "{{ .State.Pid }}"
24864
$ podman unshare nsenter --net=/run/user/1000/netns/netns-b6cd07ab-1512-c5af-419a-95b91701cfe0
Cloud AWS - CloudFormation
Voir :
Voir aussi :
wget https://s3-eu-west-1.amazonaws.com/cloudformation-templates-eu-west-1/EC2InstanceWithSecurityGroupSample.template mv EC2InstanceWithSecurityGroupSample.template single-instance.json python -c 'import sys, yaml, json; yaml.safe_dump(json.load(sys.stdin), sys.stdout, default_flow_style=False)' < single-instance.json > single-instance.yml aws cloudformation create-stack --template-body file://single-instance.yml --stack-name single-instance --parameters ParameterKey=KeyName,ParameterValue=admin@be-poc-build01 ParameterKey=InstanceType,ParameterValue=t2.micro ParameterKey=VPC,ParameterValue=vpc-0e2a03558daf2e463 ParameterKey=Subnets,ParameterValue=subnet-0d63fcd2f893bbb9b aws cloudformation delete-stack --stack-name single-instance
blog.txt · Dernière modification : de 127.0.0.1
