Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

449 total results found

CURL SSL/TLS Failed

2025

Errors RST Reset. curl -v https://example.com * Host example.com:443 was resolved. * IPv6: (none) * Ipv4: xxx * Trying xxx:443 * schannel: disabled automatic use of client certificate * ALPN: curl offets http/1.1 * Recv failure: Connection was reset * schan...

apparmor

2025

Errors dmesg | grep -i apparmor | grep mysqld [ 1237.535694] audit: type=1400 audit(1766687118.766:257): apparmor="DENIED" operation="mknod" class="file" profile="/usr/sbin/mysqld" name="/data/error.log" pid=5153 comm="mysqld" requested_mask="c" denied_mask=...

/etc/network

Linux

/etc/network 是 Debian 体系里“老一代网络配置”的地盘,主要给 ifupdown 用的, 和 netplan / systemd-networkd 是不同年代、不同体系的东西。 Examples post-up 是静态路由,eth1 是三线接口。 # This file is generated from information provided by the datasource. Changes # to it will not persist across an instance r...

linux
networking

OpenVPN on macOS

OpenVPN

SNAT (pf.conf) pf.confscrub-anchor "com.apple/*" nat-anchor "com.apple/*" nat-anchor "kugarocks_nat" rdr-anchor "com.apple/*" dummynet-anchor "com.apple/*" anchor "com.apple/*" load anchor "com.apple" from "/etc/pf.anchors/com.apple" anchor "kugarocks_nat...

openvpn
networking

PM2 Setup

2025

Install npm install -g pm2 macOS Root User sudo -i pm2 startup cp /var/root/Library/LaunchAgents/pm2.root.plist /Library/LaunchDaemons launchctl bootstrap system /Library/LaunchDaemons/pm2.root.plist launchctl enable system/pm2.root

pm2
2025
blog

IPTables Commands

OpenVPN

SNAT iptables -t nat -A POSTROUTING -d 10.24.0.0/16 -j SNAT --to-source 10.24.1.1 iptables -t nat -A POSTROUTING \ -d 10.24.0.0/16 \ -j SNAT --to-source 10.24.1.1 DNAT iptables -t nat -A PREROUTING -p tcp --dport 30200 -j DNAT --to-destination 10.24.1....

iptables
openvpn
networking

Add lo0 Aliases

macOS

lo0-aliases.sh /usr/local/bin/lo0-aliases.sh #!/bin/bash IPS=( "10.24.1.1" "10.24.1.2" ) for ip in "${IPS[@]}"; do /sbin/ifconfig lo0 alias "$ip" netmask 255.255.255.255 echo "Added alias: $ip" done echo "All IP aliases added successfully"...

lo0
macos
operating-system

fnOS Init

fnOS

User & Group Switch to root: sudo -i Init home dir: mkdir -p /home/kuga groupadd kuga usermod -g kuga kuga chown kuga:kuga /home/kuga Change root password: passwd xxfn-tools https://us1.vvvvvv.de5.net/soft/ Installation curl -ksSL https://us1.vvvvvv.de5....

fnos
nas

Docker Deploy

Openresty

Init base_path=/data openresty_image=openresty/openresty:1.27.1.2-bookworm mkdir -p $base_path/openresty/logs mkdir -p $base_path/openresty/conf mkdir -p $base_path/openresty/conf/conf.d Pull Image docker pull $openresty_image nginx.conf docker run --rm ...

openresty
middleware

LVM Extension

2025

root@veen12603200261106010101:~# pvcreate /dev/vdb /dev/vdc /dev/vdd Physical volume "/dev/vdb" successfully created. Physical volume "/dev/vdc" successfully created. Physical volume "/dev/vdd" successfully created. root@veen12603200261106010101:~# lsbl...

Lua Snippet

Openresty

Apache Response location /ping { default_type text/html; content_by_lua_block { ngx.say("<h1>It works!</h1>") } } Print Header location / { # 设置响应头为 JSON 格式 default_type application/json; content_by_lua_block { local...

openresty
middleware

Configurations

Openresty

File Descriptor Check Max open files cat /proc/$(pidof nginx | awk '{print $1}')/limits Add below config: [Service] LimitNOFILE=65535 systemctl daemon-reload systemctl restart openresty

openresty
nginx
middleware

harbor-db

Harbor

Connect DB docker exec -it harbor-db psql -U postgres -d registry No Tag Repository SELECT r.repository_id, r.name FROM repository r WHERE NOT EXISTS ( SELECT 1 FROM tag t WHERE t.repository_id = r.repository_id );

harbor
middleware

Wrangler

Cloudflare Worker

Installation npm install -g wrangler wrangler --version ⛅️ wrangler 4.61.0