Skip to main content

Network

wireguard

  • https://jakew.me/2020/10/19/wireguard-docker/
  • https://hub.docker.com/r/linuxserver/wireguard
  • https://goneuland.de/wireguard-ui-wireguard-webinterface-mittels--compose-und-traefik-installieren/
version: "2.1"
services:
  wireguard:
    image: lscr.io/linuxserver/wireguard:latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Vienna
      - SERVERURL=home.draab.at #optional
      - SERVERPORT=51820 #optional
      - PEERS=laptop,phone #optional
      - PEERDNS=192.168.0.254 #optional
      - INTERNAL_SUBNET=10.13.13.0 #optional
#      - ALLOWEDIPS=0.0.0.0/0 #optional
      - LOG_CONFS=true #optional
    volumes:
      - wireguard-config:/config
      - /lib/modules:/lib/modules
    ports:
      - 51820:51820/udp
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: unless-stopped
volumes:
    wireguard-config:

port scanner

https://github.com/JulienChapron/port-scanner-docker

wake on lan

  • wolweb - wake on lan web
    • https://github.com/sameerdhoot/wolweb

PiHole

install

via script (recommended)

https://github.com/pi-hole/docker-pi-hole/blob/master/docker_run.sh

  • use the script docker_run.sh in this repo
via docker-compose
version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "80:80/tcp"
    environment:
      TZ: 'Europe/Vienna'
      # WEBPASSWORD: 'set a secure password here or it will be random'
    # Volumes store your data between container upgrades
    volumes:
      - './etc-pihole/:/etc/pihole/'
      - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
    # Recommended but not required (DHCP needs NET_ADMIN)
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilitiess
    cap_add:
      - NET_ADMIN
    restart: unless-stopped
  • Run docker-compose up --detach to build and start pi-hole

add dns wildcard domains

https://brandonrozek.com/blog/wildcarddomainspihole/

  • create new file in /etc/dnsmasq.d/03-custom-dns.conf

  • and add lines for wildcard dns entry:

    address=/home.draab.at/192.168.0.251
    address=/home.local/192.168.0.251
    
    • with command via portainer shell:
      printf "address=/home.draab.at/192.168.0.251\naddress=/home.local/192.168.0.251\n">/etc/dnsmasq.d/03-custom-dns.conf
      
  • exit container shell and restart