Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

62 total results found

RSS Feed

Bookstack Additional functionality

Setting up Logical Theme System cd /var/www/bookstack/themes/custom mkdir templates touch includes/rss.feed.php touch templates/rss.blade.php chown -R root:www-data /var/www/bookstack/themes/custom/ chmod -R 755 /var/www/bookstack/themes/custom/ Des...

Murphy's Law

Bash

#!/bin/bash funny_bunny(){ cat << EOF |---------------| | sysrq-trigger | |---------------| (\__/) || (o.0 ) || (^ ^ )o EOF } read -p "Is Murphy around? (y/n)" var && var=${var,,} if [ $var = y ]; then funny_bunny; ...

Landing page

HTML

A simple landing page <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" href="/css/styles.css?v=1.0"/> <link rel="icon" type="image/png" href="/media/fav.png"/> <title>Ho...

404 page

HTML

A simple 404 page <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" href="/css/nooo.css?v=1.0"/> <link rel="icon" type="image/png" href="/media/fav.png"/> <title>Nooooo</...

Adaptive CSS style set for the landing page

CSS

body { margin: 0; } @font-face { font-family: "neon"; src: url('https://somedomain.name/fonts/font.ttf'); } #background { background-color: black; background-size: 100% 100%; background-repeat: no-repea...

CSS Media - Screen position react rules

CSS

body { margin: 0; } @media only screen and (orientation: landscape) { .landscape { background-image: url('/media/nooo_ls.png'); background-size: 100% 100%; background-repeat: no-repeat; background-position: ...

HTTP Response Headers Parser

JavaScript

HTTP headers parser (getting a dynamic nonce value from responses to every single GET request) function respHeaders() { var getReq = new XMLHttpRequest(); getReq.open('GET', document.location, false); getReq.send(null); var respHeaders = getReq.ge...

Introduction

WAF

First of all let me answer to one of the obvious questions - why OpenSource? - Simple enough, we can take F5, Imperva, there are solutions from Fortinet, Check Point, Palo Alto to name a few. Sure we can, but not everyone has access to such technologies and be...

Setup

WAF ModSecurity

Installing the package apt install libapache2-mod-security2 Turning on module a2enmod security2 Uploading recommended config file mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf Checking the engine mode (Leaving at Dete...

Setup

WAF OWASP CRS

Uploading the rules cd /var/tmp wget https://github.com/coreruleset/coreruleset/archive/refs/tags/v4.10.0.tar.gz wget https://github.com/coreruleset/coreruleset/releases/download/v4.10.0/coreruleset-4.10.0.tar.gz.asc Checking integrity gpg --fetch-key h...

Configuration

WAF OWASP CRS

Let's have a look at the config. Although if you read it carefully, you will have no questions left nano -w /etc/crs4/crs-setup.conf Making sure that module is working in an Anomaly Scoring mode SecDefaultAction "phase:1,log,auditlog,pass" SecDefaultAction...

Debugging

WAF OWASP CRS

Going to use the following expression to filter out the logs while checking on the app behavior tail -f /var/log/apache2/modsec_audit.log | grep -iE ".*notice.*|*.warning.*|.*error.*|.*critical.*" Problem 1 Message: Rule 7faba9cd8db8 [id "951250"][file "/et...

Layer 1 - Core

IPBH Network Layer 1

Core Layer 1 represents a physical ring spanned across two data centres with the access extensions provided off the Layer 3 core switches. The backhaul connectivity is provided by two carriers.

Layer 1- Infrastructure

IPBH Network Layer 1

Infrastructure Layer 1 represents an access layer built to the server farm hosted in the private cloud

Layer 2 - Core

IPBH Network Layer 2

Core Layer 2 connectivity is provided through EVPN sub interfaces (refer to the respective chapter) where dot1q tagged frames are getting popped at the PE and then, incapsulated into Layer 2 VXLAN VNIs for further transport. The only exception from that rule ...

Layer 2 - Infrastructure

IPBH Network Layer 2

The same principle applies to the Core – Cloud trunks represented by EVPN ESI

IPBH Underlay

IPBH Network Layer 3

OSPF has been chosen as an EVPN underlay protocol as opposed to Full Mesh BGP unnumbered to minimize the complexity of the network at a cost of scalability. The Following diagram represents a single OSPF backbone area 0 spanned across two datacenters (logical...

IPBH EVPN Overlay

IPBH Network Layer 3

The Core overlay is built up on VXLAN EVPN allowing for granular network segmentation (L2/L3 VPN) not only within a single datacenter but also spanning the connectivity across the entire infrastructure. Each Datacenter is represented by its’ own autonomous sy...