Logo

CloudBlog

server
  • DNS cache with dnsmasq

    I’ve noticed in my dns logs that a specific host is very talkative. Even if my DNS server is able to hande the load I wanted to avoid sending several hundred thousand queries per day to it. To avoid that all of those queries are sent to my DNS server I decided to use dnsmasq…

    January 30, 2024
  • How to extend a LVM-disk in Linux

    Extending a disk in a non-graphical interface in Linux is a bit tricky if you’re not used to it. A lot can go wrong, so make sure you have backups of the content. I’m choosing to focus on LVM-disks as that’s what I tend to use the most, and they are easy to work with…

    November 21, 2023
  • Static IPv4/IPv6 in Linux

    Assigning a static IP in Linux could be a bit tricky. This is how I do it on Ubuntu and Rocky Linux. Ubuntu 22.04 using netplan.# vi /etc/netplan/00-installer-config.yaml # netplan apply Rocky Linux 8/9 using NetworkManager (nmtui)# nmtui OK -> Back -> QuitRestart the network:

    November 19, 2023
  • Nginx – Cache

    Using caching with Nginx could be a handfull but make a huge difference when it comes to performance on a webpage. This one included.The method I use is fastcgi. If you only have one site to cache on your server, you put the following four lines in the very top of the vhost config-file. If…

    September 21, 2022
  • MariaDB – tuning

    Some MySQL/MariaDB tuning that I use with modification in all of my database installations. [mysqld]  # * Fine Tuning  #  key_buffer              = 256M  max_allowed_packet      = 256M  thread_stack            = 192K  thread_cache_size       = 128  join_buffer_size        = 2M # 1M for 1GB, 2M for 2GB, 4M for 4GB  tmp_table_size          = 512M  max_heap_table_size     = 256M  # This replaces the…

    March 31, 2022
  • Oxidized – Ubiquiti

    How to backup your Ubiquiti devices using Oxidized. I run Oxidized in a docker environment where I backup the configuration of Cisco, Dell, Ubiquiti and pfSense devices. This is what the config looks like and yes, these are not my actual credentials. —username: adminpassword: password123model: iosresolve_dns: trueinterval: 3600use_syslog: falselog: /root/.config/oxidized/logs/logdebug: falsethreads: 10timeout: 20retries: 0prompt: !ruby/regexp…

    March 31, 2022

CloudBlog

    • Privacy Policy

Proudly powered by WordPress