trok

Accessing your local service should be simple

wakatime home GitHub repo size GitHub commit activity

## Table of Contents - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Selfhost](#selfhost) ## Features - [x] TCP Tunneling - [ ] UDP Tunneling - [x] HTTP Tunneling - [ ] HTTPS Tunneling ## Installation ```sh curl -fsSL https://trok.cloud/install.sh | sh ``` #### Nix ```nix # If you want to quickly test trok nix run github:tuxdotrs/trok ``` #### Flake ```nix # Add to your flake inputs trok = { url = "github:tuxdotrs/trok"; inputs.nixpkgs.follows = "nixpkgs"; }; # Add this in your nixos config environment.systemPackages = [ inputs.trok.packages.${system}.default ]; ``` ## Usage ```sh trok tcp PORT_NUMBER ``` ## Selfhost ```nix # Add to your flake inputs trok = { url = "github:tuxdotrs/trok"; inputs.nixpkgs.follows = "nixpkgs"; }; # Add this in your nixos config {inputs, ...}: { imports = [ inputs.trok.nixosModules.default ]; tux.services.trok = { enable = true; host = "0.0.0.0"; port = 1337; openFirewall = true; user = "trok"; group = "trok"; }; } ```