mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-11-13 03:18:48 +08:00
119 lines
5.5 KiB
Markdown
119 lines
5.5 KiB
Markdown
<br/>
|
|
|
|
<p align="center">
|
|
<img src="warpgate-web/public/assets/logo.svg" width="100" />
|
|
</p>
|
|
<br/>
|
|
<p align="center">
|
|
<a href="https://github.com/warp-tech/warpgate/releases/latest"><img alt="GitHub All Releases" src="https://img.shields.io/github/downloads/warp-tech/warpgate/total.svg?label=DOWNLOADS&logo=github&style=for-the-badge"></a> <a href="https://nightly.link/warp-tech/warpgate/workflows/build/main"><img src="https://shields.io/badge/-Nightly%20Builds-orange?logo=hackthebox&logoColor=fff&style=for-the-badge"/></a> <a href="https://twitter.com/eugeeeeny"><img alt="Twitter" src="https://shields.io/badge/Subscribe-News-blue?logo=twitter&style=for-the-badge&color=blue"></a>
|
|
</p>
|
|
|
|
|
|
<p align="center">
|
|
<a href="https://ko-fi.com/J3J8KWTF">
|
|
<img src="https://cdn.ko-fi.com/cdn/kofi3.png?v=2" width="150">
|
|
</a>
|
|
</p>
|
|
|
|
---
|
|
|
|
Warpgate is a smart SSH, HTTPS and MySQL bastion host for Linux that doesn't need special client apps.
|
|
|
|
* Set it up in your DMZ, add user accounts and easily assign them to specific hosts and URLs within the network.
|
|
* Warpgate will record every session for you to view (live) and replay later through a built-in admin web UI.
|
|
* Not a jump host - forwards your connections straight to the target instead.
|
|
* Native 2FA and SSO support (TOTP & OpenID Connect)
|
|
* Single binary with no dependencies.
|
|
* Written in 100% safe Rust.
|
|
|
|
![](docs/banner.png)
|
|
|
|
## Getting started & downloads
|
|
|
|
* See the [Getting started](https://github.com/warp-tech/warpgate/wiki/Getting-started) wiki page (or [Getting started on Docker](https://github.com/warp-tech/warpgate/wiki/Getting-started-on-Docker)).
|
|
* [Release / beta binaries](https://github.com/warp-tech/warpgate/releases)
|
|
* [Nightly builds](https://nightly.link/warp-tech/warpgate/workflows/build/main)
|
|
|
|
<center>
|
|
<img width="783" alt="image" src="https://user-images.githubusercontent.com/161476/162640762-a91a2816-48c0-44d9-8b03-5b1e2cb42d51.png">
|
|
</center>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<img width="500" alt="image" src="https://user-images.githubusercontent.com/161476/177408495-80268a91-1a21-43bf-b171-2a563a322f5f.png">
|
|
|
|
</td>
|
|
<td>
|
|
<img width="500" alt="image" src="https://user-images.githubusercontent.com/161476/177410749-cf029df7-223e-4c9c-827a-bb96dbe0a7c8.png">
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
## Project Status
|
|
|
|
The project is currently in **alpha** stage and is gathering community feedback. See the [official roadmap](https://github.com/orgs/warp-tech/projects/1/views/2) for the upcoming features.
|
|
|
|
In particular, we're working on:
|
|
|
|
* Requesting admin approvals for sessions
|
|
* Support for tunneling PostgreSQL connections,
|
|
* and much more.
|
|
|
|
## How it works
|
|
|
|
Warpgate is a service that you deploy on the bastion/DMZ host, which will accept SSH, HTTPS and MySQL connections and provide an (optional) web admin UI.
|
|
|
|
Run `warpgate setup` to interactively generate a config file, including port bindings. See [Getting started](https://github.com/warp-tech/warpgate/wiki/Getting-started) for details.
|
|
|
|
It receives connections with specifically formatted credentials, authenticates the user locally, connects to the target itself, and then connects both parties together while (optionally) recording the session.
|
|
|
|
When connecting through HTTPS, Warpgate presents a selection of available targets, and will then proxy all traffic in a session to the selected target. You can switch between targets at any time.
|
|
|
|
You manage the target and user lists and assign them to each other through a config file (default: `/etc/warpgate.yaml`), and the session history is stored in an SQLite database (default: in `/var/lib/warpgate`).
|
|
|
|
You can use the admin web interface to view the live session list, review session recordings, logs and more.
|
|
|
|
## Contributing / building from source
|
|
|
|
* You'll need Rust, NodeJS and Yarn
|
|
* Clone the repo
|
|
* [Just](https://github.com/casey/just) is used to run tasks - install it: `cargo install just`
|
|
* Install the admin UI deps: `just yarn`
|
|
* Build the frontend: `just yarn build`
|
|
* Build Warpgate: `cargo build` (optionally `--release`)
|
|
|
|
The binary is in `target/{debug|release}`.
|
|
|
|
### Tech stack
|
|
|
|
* Rust 🦀
|
|
* HTTP: `poem-web`
|
|
* Database: SQLite via `sea-orm` + `sqlx`
|
|
* SSH: `russh`
|
|
* Typescript
|
|
* Svelte
|
|
* Bootstrap
|
|
|
|
## Contributors ✨
|
|
|
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
|
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
<!-- prettier-ignore-start -->
|
|
<!-- markdownlint-disable -->
|
|
<table>
|
|
<tr>
|
|
<td align="center"><a href="https://github.com/Eugeny"><img src="https://avatars.githubusercontent.com/u/161476?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eugeny</b></sub></a><br /><a href="https://github.com/Eugeny/warpgate/commits?author=Eugeny" title="Code">💻</a></td>
|
|
<td align="center"><a href="https://the-empire.systems/"><img src="https://avatars.githubusercontent.com/u/18178614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Spencer Heywood</b></sub></a><br /><a href="https://github.com/Eugeny/warpgate/commits?author=heywoodlh" title="Code">💻</a></td>
|
|
<td align="center"><a href="https://github.com/apiening"><img src="https://avatars.githubusercontent.com/u/2064875?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andreas Piening</b></sub></a><br /><a href="https://github.com/Eugeny/warpgate/commits?author=apiening" title="Code">💻</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- markdownlint-restore -->
|
|
<!-- prettier-ignore-end -->
|
|
|
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
|
|
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|