open-menu closeme
Home
Archives
Links icon
LinkedIn Twitter
About
English
github linkedin
  • Linux VLAN interfaces

    calendar May 12, 2021 · 1 min read · bash networking vlan  ·
    Share on: twitter facebook linkedin copy

    Lets create a VLAN sub interface on a physical interface eth0 then add this new vlan subinterface eth0.10 to a new bridge br10 We might want to do this so that VM's running on this host have access to this VLAN 1ip link add link eth0 name eth0.10 type vlan id 10 2ip link set dev eth0.10 up 3brctl addbr br10 4brctl …


    Read More
  • Building an Ubuntu Vagrant box

    calendar Apr 23, 2021 · 2 min read · vagrant networking qemu  ·
    Share on: twitter facebook linkedin copy

    Within the VM run this to 'pre-configure' it, ready for booting in Vagrant 1wget --no-check-certificate \\ 2 https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub \\ 3 -O /home/vagrant/.ssh/authorized_keys 4 5sudo rm -f /etc/machine-id 6sudo dbus-uuidgen --ensure=/etc/machine-id 7sudo rm …


    Read More
  • Compress + Base64 encode a (log) file to allow copy via SSH

    calendar Apr 20, 2021 · 1 min read · ssh bash  ·
    Share on: twitter facebook linkedin copy

    Sometimes I need to move files from a server on which I have SSH access but these files are big and or have complex formatting which breaks if you just try and copy\paste the contents So, if we gzip the file then base64 encode this compressed file we now have a string thats much smaller than the original and it's in a …


    Read More
  • Named \ Bind9 example config

    calendar Apr 20, 2021 · 1 min read · named bind dns  ·
    Share on: twitter facebook linkedin copy

    I came across this nice example of a bind9 config file that handles multiple subnet\vlans\zones and treats them differently 1server:/var/named/etc/bind# cat named.conf 2acl "lan" { 3 "localhost"; 4 192.168.16.0/24; 5}; 6 7acl "guest" { 8 192.168.0.0/16; 9 10.0.0.0/8; 10}; 11 12options { 13 …


    Read More
  • Named Bind9 example config

    calendar Apr 20, 2021 · 2 min read · keycloak haproxy  ·
    Share on: twitter facebook linkedin copy

    I would have though this to be a common deployment but I had quite a significant challenge in getting this setup to run Here is my working config for Keycloak behind a reverse proxy Traffic flow Client keycloak.hawkless.id.au--->HTTPS--->HAProxy--->HTTPS--->Keycloak Container haproxy.cfg global maxconn 4000 …


    Read More
  • Manually add a ceph-mon

    calendar Dec 31, 2020 · 1 min read · ceph  ·
    Share on: twitter facebook linkedin copy

    Sometimes it's necessary to rebuild the content of a Ceph monitor's local database, E.G it becomes corrupt or you somehow loose it! This process assumes the cluster is running and the remaining mons have achieved quorum, in which case it's safe to blow away the local DB of a single mon and let it re-create from the …


    Read More
  • Running mattermost in docker

    calendar Dec 30, 2020 · 1 min read · DOCKER MATTERMOST  ·
    Share on: twitter facebook linkedin copy

    Ive set this up a few times and the permissions issues get me every time For reference this seems to be a winning recipe 1git clone https://github.com/mattermost/mattermost-docker/ 2cd mattermost-docker Edit the docker-compose.yml and change the UID and the GID to your current running user IMPORTANT! docker-compose …


    Read More
  • FreeOTP backup notes

    calendar Dec 22, 2020 · 4 min read · FREEOTP BACKUP  ·
    Share on: twitter facebook linkedin copy

    1. Enabling Developer Options & USB Debugging The following steps will require you to connect your mobile phone to a computer in order to send commands, and you’ll need to perform a few tasks before we can continue. First, enable the developer options on your mobile phone: Launch the Settings app on your phone …


    Read More
  • Handy little snippet to show Docker container ID's

    calendar Nov 23, 2020 · 1 min read · DOCKER  ·
    Share on: twitter facebook linkedin copy

    1for container in $(docker ps --all --quiet --format '{{ .Names }}'); do2echo "$(docker inspect $container --format '{{.GraphDriver.Data.MergedDir }}' | sed 's#/\\([^az]*\\)\\.*$##' )= $container"3doneOriginal link


    Read More
  • tcpdump on each interface individually

    calendar Nov 7, 2020 · 1 min read · TCPDUMP  ·
    Share on: twitter facebook linkedin copy

    Original article here 1#!/bin/bash 2#=================================================================================== 3# 4# FILE: dump.sh 5# USAGE: dump.sh [-i interface] [tcpdump-parameters] 6# DESCRIPTION: tcpdump on any interface and add the prefix [Interace:xy] in front of the dump data. 7# OPTIONS: same as …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

Cory Hawkvelt photo

Cory Hawkvelt

Career Nerd and Open Source Cloud Architect
Read More

Recent Posts

  • RabbitMQ in HA
  • MemcacheD connection limits inside Docker
  • Use grep to view a file without comments
  • Use grep to view a file without comments
  • Scrub all local disks
  • Use grep to view a file without comments
  • tcpdump HTTP traffic
  • List all local linux disks

Tags

LINUX 31 CEPH 22 BASH 19 OPENSTACK 11 NETWORKING 10 DOCKER 7 CONFIG 6 OPENSTACK-QUEENS 5 QEMU 5 TROUBLESHOOTING 5 CENTOS7 4 MYSQL 4 SSH 4 UBUNTU 4
All Tags
ACTIVE-BACKUP1 ADB1 ANDROID1 ANSIBLE2 APT1 AUTODISCOVER1 BACKUP1 BASH19 BIND1 BLUETOOTH1 CAS1 CENTOS74 CEPH22 CEPH-NAUTILUS1 CERTIFICATES1 CINDER3 COLLECTD1 COMWARE1 CONFIG6 CRYPTOLOCK1 CRYPTOMINER2 DATABASE1 DELL-S600-ON1 DELLMD3060JBOD1 DHCP1 DISK-MGMT1 DNS1 DOCKER7 DRIVERS1 ESP826621 ESPTOOL1 FAIL2BAN1 FEDORA261 FIBRECHANNEL1 FIRMWARE1 FREEOTP1 GIT1 GNOCCHI2 HAPROXY2 HARDWARE2 HORIZON1 HP2 HP-ILO1 HPACUCLI3 HTTP1 HUGO1 HYPER-V1 INDEX1 IP2 IPTABLES1 IPV61 KEYCLOAK1 KEYGEN3 KEYSTONE1 KOLLA1 KVM2 LE1 LIBRENMS1 LINUX31 LOGO1 MAAS1 MATTERMOST1 MEGACLI1 MELLANOX1 MELTDOWN1 MEMCACHED1 MIKROTIK2 MOUSE1 MTP1 MYSQL4 NAMED1 NAT1 NETBOX1 NETBOX-IPAM1 NETWORK-MANAGER1 NETWORKING10 NEUTRON1 NOVA1 NOVNC1 NPS1 OPENNEBULA1 OPENSTACK11 OPENSTACK-QUEENS5 OPENSWITCH1 OPENVSWITCH1 OVN1 PKI1 PORT1 PRINTER1 PROXMOX1 PUTTY1 PYTHON1 QEMU5 RABBITMQ1 RADIUS1 RADOSGW2 RAID3 RBD3 ROCKY-GLANCE1 ROUTING1 SCRIPT1 SERVER1 SERVER-20121 SMTP1 SNMP1 SPECTRE1 SPEEDTEST1 SSH4 SSL1 SVG1 SWAP1 SYSCOMMANDS1 TCP1 TCP-DUMP1 TCPDUMP1 TROUBLESHOOTING5 UBUNTU4 UBUNTU-182 UBUNTU-201 UBUNTU-GNOME1 UBUNTU171 UEFI1 VAGRANT2 VIRTUAL-NETWORK1 VIRTUALISATION1 VLAN1 VM2 VPN1 VXLAN1 WINDOWS2 WINDOWS-AD1 WIRESHARK1 YOUTUBE-DL1
[A~Z][0~9]

Copyright 2022-  . All Rights Reserved

to-top