LSM, SELinux, Netlabel, and CIPSO

LSM, SELinux, Netlabel, and CIPSO If you are new to CIPSO and SELinux, their relationship is confusing to say the least. I wanted to shed some light for those just setting out on the topic as to how the four of these things work together. LSM Original paper describing LSM: Linux Security Module Framework. Within the context […]

Setting Up SELinux (A quickstart)

What This Tutorial Covers A quick start for installing SELinux A quick start for configuring Multi-Level Security (MLS) Configuring Users and Files for MLS A listing of helpful SELinux commands The aim of this tutorial is to get the user up and running with SELinux quickly and provide additional resources for further research. Tutorial performed on: […]

A Simple SSL Client and Server in Python

Server import socket from socket import AF_INET, SOCK_STREAM, SO_REUSEADDR, SOL_SOCKET, SHUT_RDWR import ssl KEYFILE = ‘server_key.pem’ CERTFILE = ‘server_cert.pem’ def echo_client(s): while True: data = s.recv(8192) print(data.decode(“utf-8″)) if data == b”: break s.send(b’This is a response.’) print(‘Connection closed’) s.close() def echo_server(address): s = socket.socket(AF_INET, SOCK_STREAM) s.bind(address) s.listen(1) s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) s_ssl = ssl.wrap_socket(s, keyfile=KEYFILE, certfile=CERTFILE, […]

How to: Unicode in URL with Python 3

I found this to be much more difficult than I thought it would be. The solution was simple, but finding it was a bit of a pain. Here is the solution: Extremely simple, but it caused me a fair amount of headache to figure that out. Common errors that might bring you to this post: AttributeError: […]

Connect GNS3 to ESXi

Introduction As far as I can tell, there’s no great way to make this happen. I will explain, but to give you an image up front, below is a diagram of what I did. It may seem daunting at first, but I’ll explain as we go along. Set Up Description My GNS3 server is running on […]

Receive SNMP Traps with Icinga 2 on Ubuntu/Debian

Configure Icinga2 to Receive SNMP Traps on Ubuntu/Debian Warning I’m warning you up front, making this happen is a pain if you’re new to Icinga. I did my best to account for every nuance I ran into, but you may find something else. Feel free to comment if you need help. Introduction Unfortunately, there is no […]