Comments (5)
version: "3.8"
services:
unbound:
image: "klutchell/unbound"
container_name: unbound
restart: unless-stopped
hostname: "unbound"
ports:
- "5053:5053/udp"
networks:
wg-network:
ipv4_address: 10.8.1.10
pihole:
depends_on: [unbound]
container_name: pihole
hostname: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8080:80/tcp"
environment:
TZ: 'Europe/Berlin'
PIHOLE_DNS_: '10.8.1.10#5053;10.8.1.10#5053' #have to put it in twice :D
WEBPASSWORD: 'password'
volumes:
- ./pihole/etc-pihole:/etc/pihole
- ./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-capabilities
cap_add:
- NET_ADMIN
networks:
wg-network:
ipv4_address: 10.8.1.20
restart: unless-stopped
wg-easy:
depends_on: [unbound, pihole]
environment:
# ⚠️ Required:
- WG_HOST=wg.mydomain.tld
- PASSWORD=more secret password
- WG_PORT=51820
#- WG_DEFAULT_ADDRESS=10.8.0.x
- WG_DEFAULT_DNS=10.8.1.20, 10.8.1.20
- WG_ALLOWED_IPS= 0.0.0.0/1, 10.8.0.0/24, 10.8.1.0/24, 128.0.0.0/2, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.168.1.0/24, 192.168.2.0/23, 192.168.4.0/22, 192.168.8.0/21, 192.168.16.0/20, 192.168.32.0/19, 192.168.64.0/18, 192.168.128.0/17, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 224.0.0.0/3
# figure out what you want to allow and what to block
# https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/
image: weejewel/wg-easy
container_name: wg-easy
volumes:
- ./wg-easy:/etc/wireguard
ports:
- "51820:51820/udp"
- "8081:51821/tcp" # webinterface
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
networks:
wg-network:
ipv4_address: 10.8.1.30
networks:
wg-network:
ipam:
driver: default
config:
- subnet: 10.8.1.0/24
This should get you started
from wirehole.
I would second that. There are many nice implementations, subspace, wg-access-server, wg-gen-web and wg-ui. It would be great and very useful for all people especially beginners to have that as part of wirehole.
from wirehole.
version: "3.8" services: unbound: image: "klutchell/unbound" container_name: unbound restart: unless-stopped hostname: "unbound" ports: - "5053:5053/udp" networks: wg-network: ipv4_address: 10.8.1.10 pihole: depends_on: [unbound] container_name: pihole hostname: pihole image: pihole/pihole:latest ports: - "53:53/tcp" - "53:53/udp" - "67:67/udp" - "8080:80/tcp" environment: TZ: 'Europe/Berlin' PIHOLE_DNS_: '10.8.1.10#5053;10.8.1.10#5053' #have to put it in twice :D WEBPASSWORD: 'password' volumes: - ./pihole/etc-pihole:/etc/pihole - ./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-capabilities cap_add: - NET_ADMIN networks: wg-network: ipv4_address: 10.8.1.20 restart: unless-stopped wg-easy: depends_on: [unbound, pihole] environment: # ⚠️ Required: - WG_HOST=wg.mydomain.tld - PASSWORD=more secret password - WG_PORT=51820 #- WG_DEFAULT_ADDRESS=10.8.0.x - WG_DEFAULT_DNS=10.8.1.20, 10.8.1.20 - WG_ALLOWED_IPS= 0.0.0.0/1, 10.8.0.0/24, 10.8.1.0/24, 128.0.0.0/2, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.168.1.0/24, 192.168.2.0/23, 192.168.4.0/22, 192.168.8.0/21, 192.168.16.0/20, 192.168.32.0/19, 192.168.64.0/18, 192.168.128.0/17, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 224.0.0.0/3 # figure out what you want to allow and what to block # https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/ image: weejewel/wg-easy container_name: wg-easy volumes: - ./wg-easy:/etc/wireguard ports: - "51820:51820/udp" - "8081:51821/tcp" # webinterface restart: unless-stopped cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.ip_forward=1 - net.ipv4.conf.all.src_valid_mark=1 networks: wg-network: ipv4_address: 10.8.1.30 networks: wg-network: ipam: driver: default config: - subnet: 10.8.1.0/24
This should get you started
Thanks for your instructions!
from wirehole.
@ma-karai Can you help me with Pihole's facility that takes too much time to respond?
from wirehole.
You mean the dns requests are too slow ?
from wirehole.
Related Issues (20)
- chown: cannot access / so-rcvbuf 1048576 HOT 5
- unable to install script on fresh install HOT 3
- fresh install and old installs with fresh updates becomes not working HOT 5
- script: command not found HOT 2
- Unbound Broken HOT 6
- Update Gravity appears "DNS resolution is currently unavailable", please advise
- how to configure Pi-hole to recognize each peer as a separate client? HOT 1
- License to be OSI-compatible HOT 1
- Breaking change in Wireguard image HOT 3
- Recent changes don't work HOT 6
- No Wireguard folders and files HOT 2
- Failed to Register Layer
- Vpn2
- What is the Apply Config
- Add features; Warp as client and wirehole as server
- Can't connect with anything after spinning up new version of Wirehole HOT 2
- [Question] is it ready to use "out of the box" ? HOT 1
- Wireguard UI unreachable when used with network_mode: service:wireguard HOT 2
- Add git version tags for reproducable git clones
- Cannot create a working peer and a peer with large subnet.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wirehole.