Giter VIP home page Giter VIP logo

purplehaze's Introduction

Purple Haze

A DNS tunnel client for iOS based on Iodine. A paid Apple Developer account is required to build because of the entitlements needed for Network Extensions.

Build

  1. Make sure you cloned the submodules: git submodule init && git submodule update
  2. Copy CodeSigning.xcconfig.sample to CodeSigning.xcconfig and fill in DEVELOPMENT_TEAM with your Team ID (found here) and choose a unique PRODUCT_BUNDLE_PREFIX.
  3. Open PurpleHaze.xcodeproj and build it.

Usage

Read iodine's documentations for instructions on setting up a server. Once you have iodined running on your computer and the nameserver pointed to your IP, you can tunnel into the private subnet created by iodined from Purple Haze. Note that without additional configuration, you cannot use the tunnel to browse the web (or connect to WAN). You can then setup a SSH tunnel (by connecting to 10.0.0.1 or whatever your iodine server IP is set to) or a HTTP(S) proxy and configuring Purple Haze to use that proxy in the advanced settings.

If you are running iodined on a Linux machine/VM, then you can do the following to forward the TAP traffic to the internet.

# sysctl -e net.ipv4.ip_forward=1
# iptables -t nat -A POSTROUTING -s 10.0.0.0/255.255.224.0 -o eth0 -j MASQUERADE

(Where 10.0.0.0/255.255.224.0 is the IP/subnet of your iodined TAP interface and eth0 is the Ethernet interface.) Note this could pose a security issue as Iodine's authentication is pretty weak.

Troubleshooting Tips

  • Make sure you built and are running the same release of iodine server from GitHub as the client in Purple Haze.
  • Iodine server seems more stable on Linux than macOS. If you are having trouble connecting to iodined, try running it from a Linux VM.
  • Try running iodine client on your computer on the same network to debug connection issues.
  • DNS tunneling to bypass paid WiFi is a well known trick and likely won't work on any modern network.

About

What's with the name?

  • "Purple Haze" is a great Jimi Hendrix song.
  • Iodine, the DNS tunnel this project is based off (itself named after the atomic number 53 which is also the port number for DNS), is a purple gas at room temperature.
  • Purple was the codename for the original iPhone.

purplehaze's People

Contributors

osy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.