Giter Club home page Giter Club logo

firestack's Introduction

Firestack

A userspace TCP/UDP firewall and DNS client for Android.

Firestack is not yet stable and the APIs are still in flux.

Firestack is built specifically for RethinkDNS. go-tun2socks provides a golang SOCKS-like interface over the tun-device. It does so by wrapping badvpn's tun2socks in cgo, which in turn relies on LwIP, a light-weight, single-threaded userspace TCP/IP stack underneath the covers.

Firestack is a hard-fork of Google's outline-go-tun2socks project.

Releases

Firestack is released as an Android Library (aar) and can be integrated into your Android builds via jitpack.io (ref).

    # add this to your project's build.gradle
    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

    # add the dep to your app's build.gradle
    dependencies {
        implementation 'com.github.celzero:firestack:Tag'
    }

API

The APIs aren't stable and hence left undocumented, but you can look at RethinkDNS (GoVpnAdapter, BraveVpnService) to see how to integrate with Firestack on Android.

Build

Firestack APIs are available only on Android builds for now. iOS and Linux support will come by fall 2021.

Prerequisites

  • macOS host and Xcode (iOS, macOS)
  • make
  • Go >= 1.14
  • A C compiler (e.g.: clang, gcc)
  • gomobile (iOS, macOS, Android)
  • xgo (Windows, Linux)
  • Docker (Windows, Linux)
  • Other common utilities (e.g.: git)

macOS Framework

As of Go 1.14, gomobile does not support building frameworks for macOS. Jigsaw engineers have patched gomobile to enable building a framework for macOS by replacing the default iOS simulator build. Until the change is upstreamed, the (Darwin) binary to enable this behavior is located at tools/gomobile and is used by the build_macos.sh build script.

Linux and Windows

Not maintained right now but you can build binaries for Linux and Windows from source without any custom integrations. xgo and Docker are required to support cross-compilation.

Build the "Intra" flavour for Android

go get -d ./...

# the only supported flavour right now
./build_android.sh intra

# other unsupported, unmaintained builds:
./build_[ios|linux|macos|windows].sh

firestack's People

Contributors

ignoramous avatar alalamav avatar dmcardle avatar peterdavehello avatar fortuna avatar seanburford 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.