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

Commit d0396d9

Browse files
committed
Pi-hole fixes
* 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
1 parent b2ae1e8 commit d0396d9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

services/coreos/coreos.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ coreos:
111111
[Service]
112112
User=root
113113
Type=oneshot
114-
ExecStart=/bin/sh -c "modprobe dummy; ip link set dummy0 up; ifconfig dummy0 1.1.1.1/32"
114+
ExecStartPre=/bin/sh -c "modprobe dummy"
115+
ExecStartPre=-/bin/sh -c "ip link add dummy0 type dummy"
116+
ExecStartPre=/bin/sh -c "ip link set dummy0 up"
117+
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add 2001:db8:1:1::1/64"
118+
ExecStart=/bin/sh -c "ifconfig dummy0 1.1.1.1/32"
115119
`
116120
}

services/dosxvpn/dosxvpn.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ func (s Service) UserData() string {
3838
3939
[Service]
4040
Type=oneshot
41-
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan-updater
42-
ExecStart=/usr/bin/docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock dosxvpn/strongswan-updater
41+
ExecStartPre=/usr/bin/docker pull dosxvpn/updater:latest
42+
ExecStart=/usr/bin/docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock dosxvpn/updater:latest
4343
- name: dosxvpn-update.timer
4444
enable: true
4545
command: start
@@ -64,8 +64,8 @@ func (s Service) UserData() string {
6464
EnvironmentFile=/etc/environment
6565
ExecStartPre=-/usr/bin/docker kill dosxvpn
6666
ExecStartPre=-/usr/bin/docker rm dosxvpn
67-
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan
68-
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
67+
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan:latest
68+
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
6969
ExecStop=/usr/bin/docker stop dosxvpn
7070
`
7171
}

services/pihole/pihole.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ func (s Service) UserData() string {
3131
ExecStartPre=-/usr/bin/docker kill pihole
3232
ExecStartPre=-/usr/bin/docker rm pihole
3333
ExecStartPre=/usr/bin/docker pull diginc/pi-hole:latest
34-
ExecStart=/usr/bin/docker run --name pihole --net=host -e ServerIP=1.1.1.1 -e WEBPASSWORD=dosxvpn diginc/pi-hole:latest
34+
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
3535
ExecStop=/usr/bin/docker stop pihole`
3636
}

0 commit comments

Comments
 (0)