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

Commit 9549d6c

Browse files
committed
Fix IPv4/IPv6 dual stack (wasn't forwarding IPv6 traffic)
1 parent aa6db28 commit 9549d6c

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* No additional software required for OSX/iPhone - uses native VPN client.
1414
* Simple Web or CLI installation methods.
1515
* Automated OS and VPN software updates.
16+
* Dual stack IPv4/IPv6 enabled.
1617

1718
## Web Installer (OSX)
1819
1. Download the latest pre-built app from the [GitHub Releases](https://github.com/dan-v/dosxvpn/releases) page.
@@ -55,9 +56,10 @@
5556
5. <b>What is the bandwidth limit?</b> The 512MB DigitalOcean droplet has a 1TB bandwidth limit. This does not appear to be strictly enforced.
5657
6. <b>Where does dosxvpn store VPN configuration files?</b> You can find all deployed VPN configuration files in your ~/.dosxvpn directory.
5758
7. <b>How do I SSH into the deployed droplet?</b> Assuming you had public SSH keys uploaded to your DigitalOcean account when the VPN was deployed, all of those keys should be authorized for access. You can SSH using any of those keys: `ssh -i <ssh-private-key> core@<vpn-ip>`. If you had no SSH keys uploaded to your DigitalOcean account, then a temporary key was autogenerated for you and you will need to redeploy if you want SSH access.
58-
8. <b>Are you going to support other VPS providers?</b> Not right now.
59-
9. <b>Will this make me completely anonymous?</b> No, absolutely not. All of your traffic is going through a VPS which could be traced back to your account. You can also be tracked still with [browser fingerprinting](https://panopticlick.eff.org/), etc. Your [IP address may still leak](https://ipleak.net/) due to WebRTC, Flash, etc.
60-
10. <b>How do I uninstall this thing on OSX?</b> You can uninstall through the Web interface, which will also remove the running droplet in your DigitalOcean account. Alternatively go to System Preferences->Network, click on dosxvpn-* and click the '-' button in the bottom left to delete the VPN. Don't forget to also remove the droplet that is deployed in your DigitalOcean account.
59+
8. <b>What is the password to login to Pi-hole?</b> The password is `dosxvpn`.
60+
9. <b>Are you going to support other VPS providers?</b> Not right now.
61+
10. <b>Will this make me completely anonymous?</b> No, absolutely not. All of your traffic is going through a VPS which could be traced back to your account. You can also be tracked still with [browser fingerprinting](https://panopticlick.eff.org/), etc. Your [IP address may still leak](https://ipleak.net/) due to WebRTC, Flash, etc.
62+
11. <b>How do I uninstall this thing on OSX?</b> You can uninstall through the Web interface, which will also remove the running droplet in your DigitalOcean account. Alternatively go to System Preferences->Network, click on dosxvpn-* and click the '-' button in the bottom left to delete the VPN. Don't forget to also remove the droplet that is deployed in your DigitalOcean account.
6163

6264
# Powered By
6365
* [strongSwan](https://strongswan.org/) - IPsec-based VPN software
@@ -68,8 +70,8 @@
6870

6971
# Acknowledgements
7072
* [trailofbits/algo](https://github.com/trailofbits/algo) - strongSwan configuration is borrowed from this project
71-
* [jbowens/dochaincore](https://github.com/jbowens/dochaincore) - Deployment code is borrowed from this project
72-
* [vimagick/strongswan](https://github.com/vimagick/dockerfiles/tree/master/strongswan) - Using a forked version of this docker image for VPN server
73+
* [jbowens/dochaincore](https://github.com/jbowens/dochaincore) - web deployment code is borrowed from this project
74+
* [vimagick/strongswan](https://github.com/vimagick/dockerfiles/tree/master/strongswan) - using a forked version of this docker image for VPN server
7375

7476
# Building Source
7577
1. Install dependency [platypus cli](http://www.sveinbjorn.org/platypus)

services/dosxvpn/dosxvpn.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ func (s Service) UserData() string {
66
return `
77
- name: dosxvpn-sysctl.service
88
enable: true
9+
command: start
910
content: |
1011
[Unit]
1112
Description=Handles settings for sysctl
@@ -14,6 +15,8 @@ func (s Service) UserData() string {
1415
Type=oneshot
1516
User=root
1617
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.ip_forward=1
18+
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.forwarding=1
19+
ExecStartPre=/usr/sbin/sysctl -w net.ipv6.conf.all.forwarding=1
1720
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.accept_source_route=0
1821
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.default.accept_source_route=0
1922
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.accept_redirects=0
@@ -24,7 +27,10 @@ func (s Service) UserData() string {
2427
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.rp_filter=1
2528
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.default.rp_filter=1
2629
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.send_redirects=0
27-
ExecStart=-/usr/bin/echo echo 1 > /proc/sys/net/ipv4/route/flush
30+
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.conf.all.send_redirects=0
31+
ExecStartPre=/usr/bin/echo 1 > /proc/sys/net/ipv4/route/flush
32+
ExecStartPre=/usr/bin/echo 1 > /proc/sys/net/ipv6/route/flush
33+
ExecStart=/usr/bin/echo
2834
- name: dosxvpn-update.service
2935
content: |
3036
[Unit]
@@ -35,6 +41,7 @@ func (s Service) UserData() string {
3541
ExecStartPre=/usr/bin/docker pull dosxvpn/strongswan-updater
3642
ExecStart=/usr/bin/docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock dosxvpn/strongswan-updater
3743
- name: dosxvpn-update.timer
44+
enable: true
3845
command: start
3946
content: |
4047
[Unit]

services/pihole/pihole.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ func (s Service) UserData() string {
99
content: |
1010
[Unit]
1111
Description=pihole /etc/hosts entry
12+
ConditionFirstBoot=true
1213
1314
[Service]
1415
User=root

0 commit comments

Comments
 (0)