Skip to content

Instantly share code, notes, and snippets.

View MadeinDave's full-sized avatar

MadeinDave MadeinDave

View GitHub Profile
@MadeinDave
MadeinDave / host_docker_internal_linux.md
Last active October 8, 2023 18:06
host.docker.internal on Linux

host.docker.internal on Linux

On Linux, we can't automatically resolve host.docker.internal, we need to provide some arguments to the docker run command

--add-host=host.docker.internal:host-gateway

Where host-gateway is the IP address of the docker daemon.

To find out what's the ip address of our docker daemon, we have to check out the interface associated to it, via ifconfig -a (that should be named docker0 as well)

#!/usr/bin/env bash
# Simple Linux Intrusion Detection System for Home Networks
# Detection-only version - monitors and reports network changes
# Original article: https://linuxconfig.org/how-to-make-a-basic-intrusion-detection-system-with-bash
set -euo pipefail
# Configuration
SCAN_INTERVAL=${SCAN_INTERVAL:-30}