All Projects → davlxd → Nepackettunnelvpndemo

davlxd / Nepackettunnelvpndemo

Licence: mit
iOS VPN client implementation demo based on iOS9 NetworkExtension NETunnelProvider APIs

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Nepackettunnelvpndemo

Simple Vpn Demo
A Simple Point-to-Point tunnelling implementation in C
Stars: ✭ 59 (-62.89%)
Mutual labels:  demo, tunnel
Name That Color Intellij Plugin
This plugin lets you insert a name for a color you copy-paste or type in an android resource file.
Stars: ✭ 157 (-1.26%)
Mutual labels:  demo
Uitextviewdiyemojiexample
Example of insert custom emoji image in to UITextView. And get the represent string back after editing.
Stars: ✭ 148 (-6.92%)
Mutual labels:  demo
Sshmon
Manage and monitor SSH connections.
Stars: ✭ 152 (-4.4%)
Mutual labels:  tunnel
Doc Scripts
React Document Build Tool Scripts , Like react-scripts of create react app
Stars: ✭ 149 (-6.29%)
Mutual labels:  demo
Genealogy
Laravel 8 and Vue family tree and genealogy data processing website.
Stars: ✭ 153 (-3.77%)
Mutual labels:  demo
Pushvendor
Ruby on Rails POS (Point of Sale)
Stars: ✭ 147 (-7.55%)
Mutual labels:  demo
Pingcrm React
⚛️ Ping CRM React - A demo app to illustrate how Inertia.js works with Laravel and React (hosted on a heroku free dyno).
Stars: ✭ 158 (-0.63%)
Mutual labels:  demo
Electron Navigation
A Node.js module that adds a navigation interface to Electron which allows you to browse the internet or view local HTML files with tabs and webviews.
Stars: ✭ 156 (-1.89%)
Mutual labels:  demo
Code
This repository contains curated code written in Red and its dialects.
Stars: ✭ 151 (-5.03%)
Mutual labels:  demo
React Express Blog Demo
🔥 React full stack+Express+Mongo implementation blog website tutorial 🌚
Stars: ✭ 1,857 (+1067.92%)
Mutual labels:  demo
Mmtexturechat
AsyncDisplayKit(Texture) Smooth Scroll Chat Simulation for Whatsapp and iMessage
Stars: ✭ 149 (-6.29%)
Mutual labels:  demo
Flutter Unity Arkit Demo
This demo uses flutter unity view widget to show AR KIT with Unity3D
Stars: ✭ 155 (-2.52%)
Mutual labels:  demo
Cocos Creator Joystick
🕹 Cocos Creator Joystick Demo 虚拟摇杆
Stars: ✭ 148 (-6.92%)
Mutual labels:  demo
Kendryte Standalone Demo
Demo of kendryte k210 standalone SDK
Stars: ✭ 157 (-1.26%)
Mutual labels:  demo
React Native Demo
React Native Voximplant Demo
Stars: ✭ 148 (-6.92%)
Mutual labels:  demo
Interactivelandscape
An exploration of an animated interactive landscape built with three.js.
Stars: ✭ 150 (-5.66%)
Mutual labels:  demo
Ng2 Pdfjs Viewer
An angular 8 component for PDFJS and ViewerJS (Supports angular 2/4/5/6/7)
Stars: ✭ 150 (-5.66%)
Mutual labels:  demo
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (+0%)
Mutual labels:  demo
Oss In Browser
Play with OSS, right in browser!
Stars: ✭ 158 (-0.63%)
Mutual labels:  demo

Apple released a new version of Network Extension since iOS9, which allows us to implement our own VPN protocol. This repo provides a simple demo using Network Extension with Swift 3.

Server side demo is here.

This demo and server side demo are extremely simplified and only for demonstration purposes, a lot of stuff are hard coded. Further design and elaboration are required if you want apply this demo to your app.

Inspired by ShadowVPN-iOS.

Prerequisites to build

  1. First, you need to request NetworkExtension entitlement for your Apple ID from Apple by filling the form here: https://developer.apple.com/contact/network-extension. From my experience, it gonna take 2-6 weeks for Apple to process your request. 2017-12-16 Update: This is no longer needed.

  2. Then you need an iPhone. Network Extension App cannot run in iOS Simulators, you need a real iPhone to debug.

  3. Login Apple developer portal, register 2 new App IDs, one for App target and another for NetworkExtension tunnel target. And make sure App Groups and Network Extensions are checked in App Services section.

  4. Register an App Group in developer portal as well

  5. Then, again in App IDs section of developer portal, edit the 2 App IDs you created at 3rd step, configure App Groups to the app group you created at 4th step.

  6. Also in developer portal, generate 2 iOS App Development provision profiles for the 2 App IDs created before, make sure Network Extension entitlement is selected on 'Do you need additional entitlements?' page (2017-12-27 Update: This is probably not needed as well). Then download them and save them to disk.

  7. Open this xcodeproj with XCode, select NEPacketTunnelVPNDemo target, in General > Identity section, change Bundle Identifier to App ID you created. Then import profiles you generated in General > Signing (Debug) section and General > Signing (Release) section.

  8. Do the same thing for NEPacketTunnelVPNDemoTunnel target.

  9. Find a Linux machine, build and run simple-vpn-demo, fill its IP address to ViewController.swift.

Run

  1. After build & run simple-vpn-demo, your terminal should be like this.

  2. After build & run NEPacketTunnelVPNDemo on your iPhone, Xcode log window should look like this, iPhone screen should look like this.

  3. The Connect at the center of iPhone screen is a BUTTON, after you click it, your iPhone screen should look like this, and Xcode log window should look like this. simple-vpn-demo terminal window should look like this, which means VPN server is now receiving traffic.

  4. Your IP address displaying on http://whatismyipaddress.com/ on your iPhone should be different before and after click the Connect button. thus Q.E.D.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].