open-menu closeme
Home
Archives
Links icon
LinkedIn Twitter
About
English
github linkedin
  • Use grep to view a file without comments

    calendar Sep 6, 2022 · 1 min read · iptables linux  ·
    Share on: twitter facebook linkedin copy

    I came a cross this neat little script to lock down IPtables to allow ONLY SSH in, block everything else 1#!/bin/bash 2# Flushing all rules 3iptables -F 4iptables -X 5# Setting default filter policy 6iptables -P INPUT DROP 7iptables -P OUTPUT ACCEPT 8iptables -P FORWARD DROP 9# Allow unlimited traffic on loopback …


    Read More
  • Use grep to view a file without comments

    calendar Aug 26, 2022 · 1 min read · ssl linux  ·
    Share on: twitter facebook linkedin copy

    Get info about a web server cert openssl s_client -showcerts -connect registry.nexgen-poc.lan:5010 </dev/null Validate a crt against a CA crt openssl verify -CAfile rootCA.crt registry.nexgen-poc.lan.crt


    Read More
  • Scrub all local disks

    calendar Aug 15, 2022 · 1 min read · bash linux  ·
    Share on: twitter facebook linkedin copy

    I was writing a script to scrub a server prior to decommissioning, something simple that would just make the disks unusbale enough that someone couldnt boot the OS or easily read the data. This is by no stretch a comprehensive disk wipe, if someone is lookign to recover data from these disks what were are doing here is …


    Read More
  • Use grep to view a file without comments

    calendar Aug 6, 2022 · 1 min read · bash linux  ·
    Share on: twitter facebook linkedin copy

    To view the contetns of a fiule but remove comments and new lines you can use this excellent little command. It will remove all lines that start with # or a new line, this is particulaly useful for viewing a config file that has 99% comments and a handful of actual values(E.G OpenStack config files) grep -v -e …


    Read More
  • tcpdump HTTP traffic

    calendar Aug 3, 2022 · 1 min read · bash linux  ·
    Share on: twitter facebook linkedin copy

    If you want to diagnose HTTP traffic it's sometime usefull to use tcpfump to dump the packets either on the console or to a tile Here is a nice litte command I found to run a dump of all http traffic on a defined port tcpdump -A -s 0 'src 10.10.110.254 and tcp port 5000 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - …


    Read More
  • List all local linux disks

    calendar Aug 1, 2022 · 1 min read · bash linux  ·
    Share on: twitter facebook linkedin copy

    I was writing a script to interact with all local disks and i needed a simplied list of local disks, not partitions and not the loopback mounts..This is what I came up with lsblk -d | cut -f 1 -d" " | tail -n +2 | grep -v loop Which will give you a nice parseable output something like this 1sda 2sdb 3nvme0n1 …


    Read More
  • MaaS CLI

    calendar Jul 13, 2022 · 1 min read · maas linux  ·
    Share on: twitter facebook linkedin copy

    The MaaS CLI documentation is a bit trash Login to MaaS maas login admin http://10.10.110.250:5240/MAAS/api/2.0/ 5HvxATpW5487XmkSjZ:CXfC3McdvV9U9aefbp:wB9jGT8AJ4DUYArJ8dDqeRVczBwJEXMk Set the IPMI Cipher Suite ID to 'freeipmi-tools default' maas admin machine update bfyq3e power_parameters_cipher_suite_id='' Commission …


    Read More
  • Network monitoring tools

    calendar Oct 21, 2020 · 1 min read · linux networking  ·
    Share on: twitter facebook linkedin copy

    bmon Nethogs Glances Warning dependency heavy


    Read More
  • Moutning a CephFS share using ceph-fuse

    calendar May 16, 2020 · 1 min read · linux ceph  ·
    Share on: twitter facebook linkedin copy

    I always forget how to mount the subfolder of a CephFS filesystem sudo ceph-fuse -m 192.168.2.9:6789 -r /subfolder /folder/on/my/machine Note: The proceeding / after the -r is important Some great info here on restricting access to specific folders and more notes on mounting …


    Read More
  • Notes on using nmap

    calendar Apr 29, 2020 · 1 min read · linux networking  ·
    Share on: twitter facebook linkedin copy

    Nmap Scan subnet for PTR's When you need to scan an entire subnet for 'research purposes' and check for any associated PTR's we can use Nmap   nmap -R -sL 103.112.200.0/22 > results.txt


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

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