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

Commit 0839158

Browse files
committed
Minor updates:
* Switch to Cloudflare for primary DNS (1.1.1.1) * Change IP address of dummy adapter * Apply iptables fix for slow page loads: https://pi-hole.net/2018/02/02/why-some-pages-load-slow-when-using-pi-hole-and-how-to-fix-it/ * Update dependencies
1 parent ebe16f4 commit 0839158

134 files changed

Lines changed: 15984 additions & 12040 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gopkg.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
version = "1.1.1"
2727

2828
[[constraint]]
29-
branch = "master"
3029
name = "github.com/spf13/cobra"
30+
version = "0.0.2"
3131

3232
[[constraint]]
3333
branch = "master"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
* Dual stack IPv4/IPv6 enabled.
1717

1818
## Web Installer (OSX)
19-
1. Download the latest pre-built app from the [GitHub Releases](https://github.com/dan-v/dosxvpn/releases) page. <b>Note: if you are on OSX version 10.11 or below - you'll need to use the legacy release version.</b>
19+
1. Download the latest pre-built app from the [GitHub Releases](https://github.com/dan-v/dosxvpn/releases) page. <b>Note: only OSX 10.12+ is supported.</b>
2020
2. Open the app and run through the web based installation wizard to setup a new VPN.
2121

2222
## CLI Usage (OSX)
23-
1. Download the latest pre-built cli from the [GitHub Releases](https://github.com/dan-v/dosxvpn/releases) page. <b>Note: if you are on OSX version 10.11 or below - you'll need to use the legacy release version.</b>
23+
1. Download the latest pre-built cli from the [GitHub Releases](https://github.com/dan-v/dosxvpn/releases) page. <b>Note: only OSX 10.12+ is supported.</b>
2424
2. Make the binary executable
2525
```sh
2626
chmod +x dosxvpn

services/coreos/coreos.go

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ write_files:
4141
-A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl --name SSH -j DROP
4242
-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
4343
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
44-
-A INPUT -d 1.1.1.1 -p udp -j ACCEPT
45-
-A INPUT -d 1.1.1.1 -p tcp -j ACCEPT
44+
-A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
45+
-A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp-port-unreachable
46+
-A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp-port-unreachable
47+
-A INPUT -d 1.1.1.2 -p udp -j ACCEPT
48+
-A INPUT -d 1.1.1.2 -p tcp -j ACCEPT
4649
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
4750
-A FORWARD -m conntrack --ctstate NEW -s 192.168.99.0/24 -m policy --pol ipsec --dir in -j ACCEPT
4851
COMMIT
@@ -74,6 +77,9 @@ write_files:
7477
-A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl --name SSH -j DROP
7578
-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
7679
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
80+
-A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
81+
-A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp6-port-unreachable
82+
-A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp6-port-unreachable
7783
-A INPUT -d fd9d:bc11:4020::/48 -p udp -j ACCEPT
7884
-A INPUT -d fd9d:bc11:4020::/48 -p tcp -j ACCEPT
7985
-A FORWARD -j ICMPV6-CHECK
@@ -94,8 +100,6 @@ coreos:
94100
window-start: 10:00
95101
window-length: 1h
96102
units:
97-
- name: etcd2.service
98-
command: start
99103
- name: iptables-restore.service
100104
enable: true
101105
command: start
@@ -104,6 +108,7 @@ coreos:
104108
command: start
105109
- name: dummy-interface.service
106110
command: start
111+
enable: true
107112
content: |
108113
[Unit]
109114
Description=Creates a dummy local interface
@@ -114,7 +119,10 @@ coreos:
114119
ExecStartPre=/bin/sh -c "modprobe dummy"
115120
ExecStartPre=-/bin/sh -c "ip link add dummy0 type dummy"
116121
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"
122+
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add fd9d:bc11:4020::/48"
123+
ExecStartPre=-/bin/sh -c "ifconfig dummy0 1.1.1.2/32"
124+
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add fd9d:bc11:4020::/48"
125+
ExecStartPre=-/bin/sh -c "ifconfig dummy0 1.1.1.2/32"
126+
ExecStart=/bin/sh -c "echo"
119127
`
120128
}

services/dosxvpn/dosxvpn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (s Service) UserData() string {
6565
ExecStartPre=-/usr/bin/docker kill dosxvpn
6666
ExecStartPre=-/usr/bin/docker rm dosxvpn
6767
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
68+
ExecStart=/usr/bin/docker run --name dosxvpn -e VPN_DNS="1.1.1.2" -e DUMMY_DEVICE="1.1.1.2/32" -e VPN_DOMAIN=$public_ipv4 --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 dosxvpn/strongswan:latest
6969
ExecStop=/usr/bin/docker stop dosxvpn
7070
`
7171
}

services/pihole/pihole.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (s Service) UserData() string {
1414
[Service]
1515
User=root
1616
Type=oneshot
17-
ExecStart=/bin/sh -c "echo 1.1.1.1 pi.hole >> /etc/hosts"
17+
ExecStart=/bin/sh -c "echo 1.1.1.2 pi.hole >> /etc/hosts"
1818
- name: pihole.service
1919
command: start
2020
content: |
@@ -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 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
34+
ExecStart=/usr/bin/docker run --name pihole --net=host -e DNS1=1.1.1.1 -e ServerIP=1.1.1.2 -e ServerIPv6=fd9d:bc11:4020:: -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
}

vendor/github.com/digitalocean/godo/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/digitalocean/godo/README.md

Lines changed: 24 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/digitalocean/godo/domains.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/digitalocean/godo/domains_test.go

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)