Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Pi-hole fixes
Browse files Browse the repository at this point in the history
* Fix Pi-hole IPv6 DNS blocking
* Add persistent docker volumes to Pi-hole
* Migrate to new dosxvpn/updater image that updates all containers rather than just strongswan
  • Loading branch information
dan-v committed Feb 3, 2018
1 parent b2ae1e8 commit d0396d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion services/coreos/coreos.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ coreos:
[Service]
User=root
Type=oneshot
ExecStart=/bin/sh -c "modprobe dummy; ip link set dummy0 up; ifconfig dummy0 1.1.1.1/32"
ExecStartPre=/bin/sh -c "modprobe dummy"
ExecStartPre=-/bin/sh -c "ip link add dummy0 type dummy"
ExecStartPre=/bin/sh -c "ip link set dummy0 up"
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add 2001:db8:1:1::1/64"
ExecStart=/bin/sh -c "ifconfig dummy0 1.1.1.1/32"
`
}
8 changes: 4 additions & 4 deletions services/dosxvpn/dosxvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (s Service) UserData() string {
[Service]
Type=oneshot
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan-updater
ExecStart=/usr/bin/docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock dosxvpn/strongswan-updater
ExecStartPre=/usr/bin/docker pull dosxvpn/updater:latest
ExecStart=/usr/bin/docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock dosxvpn/updater:latest
- name: dosxvpn-update.timer
enable: true
command: start
Expand All @@ -64,8 +64,8 @@ func (s Service) UserData() string {
EnvironmentFile=/etc/environment
ExecStartPre=-/usr/bin/docker kill dosxvpn
ExecStartPre=-/usr/bin/docker rm dosxvpn
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan
ExecStart=/usr/bin/docker run --name dosxvpn --privileged --net=host -v ipsec.d:/etc/ipsec.d -v strongswan.d:/etc/strongswan.d -v /lib/modules:/lib/modules -v /etc/localtime:/etc/localtime -e VPN_DOMAIN=$public_ipv4 dosxvpn/strongswan
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan:latest
ExecStart=/usr/bin/docker run --name dosxvpn --privileged --net=host -v ipsec.d:/etc/ipsec.d -v strongswan.d:/etc/strongswan.d -v /lib/modules:/lib/modules -v /etc/localtime:/etc/localtime -e VPN_DOMAIN=$public_ipv4 dosxvpn/strongswan:latest
ExecStop=/usr/bin/docker stop dosxvpn
`
}
2 changes: 1 addition & 1 deletion services/pihole/pihole.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ func (s Service) UserData() string {
ExecStartPre=-/usr/bin/docker kill pihole
ExecStartPre=-/usr/bin/docker rm pihole
ExecStartPre=/usr/bin/docker pull diginc/pi-hole:latest
ExecStart=/usr/bin/docker run --name pihole --net=host -e ServerIP=1.1.1.1 -e WEBPASSWORD=dosxvpn diginc/pi-hole:latest
ExecStart=/usr/bin/docker run --name pihole --net=host -e ServerIP=1.1.1.1 -e ServerIPv6=2001:db8:1:1::1 -e WEBPASSWORD=dosxvpn -v pihole-etc:/etc/pihole -v pihole-dnsmasq.d:/etc/dnsmasq.d diginc/pi-hole:latest
ExecStop=/usr/bin/docker stop pihole`
}

0 comments on commit d0396d9

Please sign in to comment.