Skip to content

Instantly share code, notes, and snippets.

@devloco
devloco / pihole-macvlan-synology-docker.txt
Created January 20, 2020 01:53 — forked from xirixiz/pihole-macvlan-synology-docker.txt
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.208/28 (Details below)
## Network: 192.168.1.208/28 11000000.10101000.00000001.1101 0000 (Class C)
## HostMin: 192.168.1.209 11000000.10101000.00000001.1101 0001
## HostMax: 192.168.1.222 11000000.10101000.00000001.1101 1110
## Hosts/Net: 14 (Private Internet)
# Create a macvlan Docker network using eth0