Swiftpack.co -  OperatorFoundation/Tun as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
OperatorFoundation/Tun
utun interface for Swift
.package(url: "https://github.com/OperatorFoundation/Tun.git", from: "0.0.9")

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/

GitHub

link
Stars: 2
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Split TransmissionLinux into its own repo
5 weeks ago

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