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

Commit

Permalink
Minor updates:
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dan-v committed Apr 7, 2018
1 parent ebe16f4 commit 0839158
Show file tree
Hide file tree
Showing 134 changed files with 15,984 additions and 12,040 deletions.
20 changes: 10 additions & 10 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
version = "1.1.1"

[[constraint]]
branch = "master"
name = "github.com/spf13/cobra"
version = "0.0.2"

[[constraint]]
branch = "master"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* Dual stack IPv4/IPv6 enabled.

## Web Installer (OSX)
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>
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>
2. Open the app and run through the web based installation wizard to setup a new VPN.

## CLI Usage (OSX)
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>
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>
2. Make the binary executable
```sh
chmod +x dosxvpn
Expand Down
20 changes: 14 additions & 6 deletions services/coreos/coreos.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ write_files:
-A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl --name SSH -j DROP
-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
-A INPUT -d 1.1.1.1 -p udp -j ACCEPT
-A INPUT -d 1.1.1.1 -p tcp -j ACCEPT
-A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
-A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp-port-unreachable
-A INPUT -d 1.1.1.2 -p udp -j ACCEPT
-A INPUT -d 1.1.1.2 -p tcp -j ACCEPT
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m conntrack --ctstate NEW -s 192.168.99.0/24 -m policy --pol ipsec --dir in -j ACCEPT
COMMIT
Expand Down Expand Up @@ -74,6 +77,9 @@ write_files:
-A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl --name SSH -j DROP
-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
-A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
-A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp6-port-unreachable
-A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp6-port-unreachable
-A INPUT -d fd9d:bc11:4020::/48 -p udp -j ACCEPT
-A INPUT -d fd9d:bc11:4020::/48 -p tcp -j ACCEPT
-A FORWARD -j ICMPV6-CHECK
Expand All @@ -94,8 +100,6 @@ coreos:
window-start: 10:00
window-length: 1h
units:
- name: etcd2.service
command: start
- name: iptables-restore.service
enable: true
command: start
Expand All @@ -104,6 +108,7 @@ coreos:
command: start
- name: dummy-interface.service
command: start
enable: true
content: |
[Unit]
Description=Creates a dummy local interface
Expand All @@ -114,7 +119,10 @@ coreos:
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"
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add fd9d:bc11:4020::/48"
ExecStartPre=-/bin/sh -c "ifconfig dummy0 1.1.1.2/32"
ExecStartPre=-/bin/sh -c "ifconfig dummy0 inet6 add fd9d:bc11:4020::/48"
ExecStartPre=-/bin/sh -c "ifconfig dummy0 1.1.1.2/32"
ExecStart=/bin/sh -c "echo"
`
}
2 changes: 1 addition & 1 deletion services/dosxvpn/dosxvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s Service) UserData() string {
ExecStartPre=-/usr/bin/docker kill dosxvpn
ExecStartPre=-/usr/bin/docker rm dosxvpn
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
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
ExecStop=/usr/bin/docker stop dosxvpn
`
}
4 changes: 2 additions & 2 deletions services/pihole/pihole.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (s Service) UserData() string {
[Service]
User=root
Type=oneshot
ExecStart=/bin/sh -c "echo 1.1.1.1 pi.hole >> /etc/hosts"
ExecStart=/bin/sh -c "echo 1.1.1.2 pi.hole >> /etc/hosts"
- name: pihole.service
command: start
content: |
Expand All @@ -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 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
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
ExecStop=/usr/bin/docker stop pihole`
}
11 changes: 11 additions & 0 deletions vendor/github.com/digitalocean/godo/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 24 additions & 12 deletions vendor/github.com/digitalocean/godo/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/digitalocean/godo/domains.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions vendor/github.com/digitalocean/godo/domains_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/digitalocean/godo/godo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/digitalocean/godo/storage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0839158

Please sign in to comment.