SimpleTunnel: Customized Networking Using the NetworkExtension Framework
The SimpleTunnel project contains working examples of the four extension points provided by the Network Extension framework:- Packet Tunnel Provider
- App Proxy Provider
- Filter Data Provider and Filter Control Provider
The FilterDataProvider target in the SimpleTunnel project produces a sample Filter Data Provider extension. The FilterControlProvider target in the SimpleTunnel project produces a sample Filter Control Provider extension.e
All of the sample extensions are packaged into the SimpleTunnel app. The SimpleTunnel app contains code demonstrating how to configure and control the various types of Network Extension providers. The SimpleTunnel target in the SimpleTunnel project produces the SimpleTunnel app and all of the sample extensions.
The SimpleTunnel project contains both the client and server sides of a custom network tunneling protocol. The Packet Tunnel Provider and App Proxy Provider extensions implement the client side. The tunnel_server target produces a OS X command-line binary that implements the server side. The server is configured using a plist. A sample plist is included in the tunnel_erver source. To run the server, use this command:
sudo tunnel_server
Requirements
The NEProvider family of APIs require the following entitlement: Runtime
com.apple.developer.networking.networkextension packet-tunnel-provider app-proxy-provider content-filter-provider
The SimpleTunnel.app and the provider extensions will not run if they are not code signed with this entitlement.
You can request this entitlement by sending an email to networkextension@apple.com.
The SimpleTunnel iOS products require iOS 9.0 or newer. The SimpleTunnel OS X products require OS X 11.0 or newer.
Build
SimpleTunnel requires Xcode 7.0 or newer. The SimpleTunnel iOS targets require the iOS 9.0 SDK or newer. The SimpleTunnel OS X targets require the OS X 11.0 SDK or newer.
from https://github.com/cykor/Surf
https://github.com/networkextension/Surf
https://github.com/partyspy/SimpleTunnel
https://github.com/networkextension/SimpleTunnel
https://github.com/YuIosXiao/SimpleTunnelCustomizedNetworkingUsingtheNetworkExtensionFramework
https://github.com/yarshure/SimpleTunnel
https://github.com/obaby/tunnel
https://github.com/weibo3721/Tunnel
https://github.com/ios-sample-code/SimpleTunnel
https://github.com/search?q=simpletunnel