Nature landscapes

24/Marzo/2023 landscape

Landscapes / River
Landscapes / River 4032x3024
23-03-24_15-12-28.jpg
Landscapes / River
Landscapes / River 4032x3024
24-08-04_19-11-39.jpg
Landscapes / River
Landscapes / River 4032x3024
24-08-10_18-47-04.jpg
Nature landscapes

Setting up unprivileged LXC

21/Marzo/2023 lxcuidgidsecurity

Unprivileged LXC containers 1600x900 unprivileged_lxc_containers.png
Unprivileged LXC containers

Installing and configuring an unprivileged lxc container with uid/gid offset.

1
LANG=C SUITE=bookworm MIRROR=https://ftp.debian.org/debian/ lxc-create --name=unprivileged-lxc --template=debian


Let’s add additional subuids/subgids for the root user.

1
2
3
4
5
usermod --add-subuids 200000-265535 root
usermod --add-subgids 200000-265535 root
# to remove subgroups
# usermod --del-subuids 200000-265535 root
# usermod --del-subgids 200000-265535 root
Setting up unprivileged...

How to make an OpenVPN 90% as fast as a WireGuard

27/Gennaio/2023 openvpnkernelwireguard

There are a lot of articles on the Internet about improving OpenVPN speed, and often they are all focused on the settings of the server-client itself, packet sizes, encryption algorithms or disabling them. Everyone compares OpenVPN to a WireGuard. WireGuard works in kernel space and that’s what determines everything. Compared to userspace for openvpn. But that’s not quite true.

Here I must immediately clarify, that the given method of solving the problem is specific for virtual machines with small memory size, from 1Gb to 8Gb, in other cases you need to compare memory, link bandwidth and speed.

Here is a list of dynamically set values ​​relative to the system memory size:

  • sysctl net.core.rmem_default
  • sysctl net.core.rmem_max
  • sysctl net.core.wmem_default
  • sysctl net.core.wmem_max
  • sysctl net.core.somaxconn
  • sysctl net.core.netdev_max_backlog
  • sysctl net.core.optmem_max
  • sysctl net.ipv4.udp_mem
  • sysctl net.ipv4.udp_rmem_min
  • sysctl net.ipv4.udp_wmem_min
  • sysctl net.ipv4.tcp_mem
  • sysctl net.ipv4.tcp_rmem
  • sysctl net.ipv4.tcp_wmem
  • sysctl net.ipv4.tcp_synack_retries
  • sysctl net.ipv4.tcp_keepalive_time
  • sysctl net.ipv4.tcp_max_tw_buckets
How to make...

Pure-sine wave inverter Teardown

25/Gennaio/2023 edecoainverter

Pure-sine wave inverter 4878x2743 IMG_20221228_153454.jpg
Pure-sine wave inverter


Remote controller
Remote controller 4904x2758
IMG_20221228_153527.jpg
Battery connection
Battery connection 4044x2275
IMG_20221228_153544.jpg
Disassembled
Disassembled 5235x2945
IMG_20230110_135009.jpg
Pure-sine wave inverter...

Soldering station prototype on stm32 from RobotDyn

30/Novembre/2022 soldering-ironstm32

Soldering station on STM32F303 4032x3024 IMG_4591.jpg
Soldering station on STM32F303

RobotDyn Black Pill on STM32F103C8T6

Soldering station prototype...
Pagina 9 di 13