Swiftpack.co - OperatorFoundation/Tun as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by OperatorFoundation.
OperatorFoundation/Tun 0.1.0
utun interface for Swift
⭐️ 3
🕓 2 years ago
macOS linux
.package(url: "https://github.com/OperatorFoundation/Tun.git", from: "0.1.0")

Tun

WARNING: This library is currently not for use in production environments

##Tun Tun is a Swift an experimental library providing methods for creating Tun interfaces and setting routing, nat and forwarding to enable a VPN on Linux

##TunTesterCli TunTesterCli is a basic VPN implementation which forwards IP packets between a client and server over a TCP connection. Currently only supports a single client.

Usage:

##Tested on:
Ubuntu 18.04.5 LTS (bionic) with Swift 5.2.4

##Notes:

###Best known IDE on Linux:
https://www.raywenderlich.com/9363-using-clion-as-an-ide-for-server-side-swift-apps-on-linux

###Running swift tests on Linux:
https://stackoverflow.com/questions/63302334/xctestmanifests-in-generated-swift-package
https://forums.swift.org/t/pitch-enable-test-discovery-by-default/36619

###Further reading on how VPNs work using Tun devices:
Book:
Computer & Internet Security by Wenliang Du 2nd Edition - ISBN 978-1733003933

VPN Lab (Bypassing Firewalls using a VPN) for book including C source code:
https://seedsecuritylabs.org/Labs_16.04/Networking/Firewall_VPN/

Online video course:
https://www.udemy.com/course/du-internet-security/

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics