Skip to content

Instantly share code, notes, and snippets.

View helloimalemur's full-sized avatar
🦊

helloimalemur helloimalemur

🦊
View GitHub Profile
@helloimalemur
helloimalemur / openssl_commands.md
Created April 22, 2024 16:57 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@helloimalemur
helloimalemur / archlinux-kvm.md
Last active May 26, 2024 22:58 — forked from tatumroaquin/archlinux-qemu-kvm.md
KVM Installation for Arch Linux

Arch Linux KVM

install all necessary packages

pacman -S virt-manager virt-viewer qemu

enable libvirt daemon

systemctl enable libvirtd.service
@helloimalemur
helloimalemur / haproxy-log-request-body.md
Last active May 29, 2024 16:50 — forked from lazywithclass/blog-post.md
Logging request body in HAProxy

Logging request body in HAProxy

add the following to the frontend section of your haproxy configuration

## ------ LOG REQ BODY ----------
option http-buffer-request
declare capture request len 40000000
http-request capture req.body id 0
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r %[capture.req.hdr(0)]"
## --------------------
----------------------------------------------------------------------------------------------------
tcpdump -s 0 #capture entire etherner header and IP packet
tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets
tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB)
tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet
tcpdump -X -vvv -n -i eth0