Commit Graph

162 Commits

Author SHA1 Message Date
Anders Pitman
c08671bd13 Implement setting TlsTermination on server 2020-11-27 16:01:40 -07:00
Anders Pitman
b6d01d59a9 Implement client TLS termination
Managed to reuse the same proxy function the server uses.
2020-11-27 15:36:07 -07:00
Anders Pitman
733b0439e6 Begin implementing TLS passthrough
Basically working, but still needs:

* UI for selecting TLS passthrough
* Client Let's Encrypt integration for automatically getting certs.
* More testing. The changes were pretty invasive.
2020-11-26 22:37:51 -07:00
Anders Pitman
78ca1fc1f8 Allow SSH server port to be configured at runtime 2020-11-26 20:13:50 -07:00
Anders Pitman
b824498e4c Merge remote-tracking branch 'origin/master' 2020-11-26 19:52:20 -07:00
Anders Pitman
6652b76d04 Don't intercept /api requests 2020-11-26 19:51:50 -07:00
Anders Pitman
038eb80358
Update README.md 2020-11-25 18:42:40 -07:00
Anders Pitman
7f45316928 Update todo 2020-11-24 19:21:59 -07:00
Anders Pitman
58e38d7f19 Implement HTTPS requests from client to upstreams
Can now put "https://" in front of Client Address to force it to
use TLS. It doesn't do any verification of the upstream cert. This
is intended to work similarly to the way ngrok does it:

https://ngrok.com/docs#http-local-https
2020-11-22 13:49:48 -07:00
Anders Pitman
4b4dc94222 Add android builds
Client seems to be working when run manually with adb shell from
/data/local/tmp/ on a Moto G Power. Server fails when trying to
write /.local for the certs.
2020-11-20 18:29:12 -07:00
Anders Pitman
28254816f1 Add 32-bit builds 2020-11-10 00:26:14 -07:00
Anders Pitman
0097899289 Remove old script call 2020-11-04 09:29:36 -07:00
Anders Pitman
1c40e1083c Fix logo embedding 2020-11-04 09:28:10 -07:00
Anders Pitman
07dd46047d Create Dockerfile for building releases 2020-11-04 09:05:08 -07:00
Anders Pitman
6b36c256c3 Overhaul build scripts
* Moved scripts into separate directory.
* Can now do a release build with a single command.
* Automatically create release tarball.
2020-11-04 08:37:00 -07:00
Anders Pitman
3258cd5ec7
Merge pull request #12 from boringproxy/add-license-1
Create LICENSE
2020-11-04 07:56:17 -07:00
Anders Pitman
c5e3f65ce4
Create LICENSE 2020-11-04 07:55:43 -07:00
Anders Pitman
b7579f9a4e Update todo 2020-11-03 14:09:11 -07:00
Anders Pitman
c7efb826ae Fix Jellyfin
Services like Jellyfin weren't working apparently because the upstream
requests were using chunked encoding. Reading the entire request body
and forwarding it on seems to fix it.

Also overriding the Host header for upstream requests.
2020-11-03 10:24:41 -07:00
Anders Pitman
ada81bae62
Merge pull request #1 from fbartels/docker
Use multi stage dockerfile for building
2020-10-31 20:54:54 -06:00
Felix Bartels
eacc0094aa Use multi stage dockerfile for building
This also adds a docker-compose.yml for easy running and rebuilding

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-10-31 19:11:11 -04:00
Anders Pitman
e93fc79f23 Add build and run instructions to readme 2020-10-31 15:13:09 -06:00
Anders Pitman
a7d1edcdbf Update go.sum 2020-10-31 09:52:14 -06:00
Anders Pitman
bb7e991515 Add Dockerfile 2020-10-30 19:55:33 -06:00
Anders Pitman
2c1bc2d001 Use curl to install go 2020-10-30 19:36:27 -06:00
Anders Pitman
98a6ff52fc Delete tokens when user is deleted
Also added DeleteUser to API
2020-10-30 18:50:24 -06:00
Anders Pitman
27aeb57336 Clean up api code organization 2020-10-30 18:38:57 -06:00
Anders Pitman
d0f3ab89db Output login link on first start 2020-10-29 18:49:59 -06:00
Anders Pitman
4f967ea4ef Add build script 2020-10-29 18:01:41 -06:00
Anders Pitman
6b9f9aa413 Implement creating users and tokens from REST API 2020-10-29 17:56:38 -06:00
Anders Pitman
eb9409566d Make go script executable 2020-10-29 17:40:46 -06:00
Anders Pitman
51d1bd09e0 Add script for installing golang 2020-10-29 17:40:07 -06:00
Anders Pitman
4f09c7ada1 Pass through upstream redirects 2020-10-29 13:03:35 -06:00
Anders Pitman
0f3482f836 Reorder todo 2020-10-28 12:59:40 -06:00
Anders Pitman
444ab10260 Remove config
Only admin-domain CLI parameter now required for running server.
2020-10-27 15:47:17 -06:00
Anders Pitman
4fd830167f Fix more security holes 2020-10-27 15:21:56 -06:00
Anders Pitman
3a705cf252 Fix QR codes not rendering for admin 2020-10-27 14:51:59 -06:00
Anders Pitman
51dce1876d Fix token delete security bug 2020-10-27 14:48:22 -06:00
Anders Pitman
f6fee2b8c0 Check permissions for deleting tunnels 2020-10-27 14:39:44 -06:00
Anders Pitman
b3f1636be6 Fix some security issues
* The CSS styles were leaking information about tunnels, even for
  things like the login page, which can be sent to anyone.
* Tokens could be created for any user by any user.
2020-10-26 12:18:51 -06:00
Anders Pitman
8e8045cde7 Update notes and todo 2020-10-26 11:11:14 -06:00
Anders Pitman
7f595c2b0d Start client tunnels concurrently 2020-10-24 17:00:42 -06:00
Anders Pitman
1abc141d13 Make client selection a dropdown
Also implemented adding and deleting clients through the API.
2020-10-24 16:48:53 -06:00
Anders Pitman
1607d41e5c Add button for downloading private keys
Allows users to access tunnels using standard SSH clients.
2020-10-24 14:12:18 -06:00
Anders Pitman
2ca14901fc Disable custom SSH keys for now
Not sure the feature is boring enough to keep. There are some tricky
things that still need to be solved like figuring out how to let
tunnels share the same public key, since the OpenSSH server seems to
only pick up the first instance of each key in the authorized_keys
file.

Also, what happens if someone wants to use their normal SSH key for
the server for a boringproxy tunnel. I could easily introduce a bug
that would lock someone out of their server in certain corner cases.

I think adding the ability to download the private key for each tunnel
will handle most cases for now.
2020-10-24 13:27:41 -06:00
Anders Pitman
8477391273 Implement using custom SSH keys 2020-10-23 20:56:55 -06:00
Anders Pitman
4158ea5777 Improve shadows on logo 2020-10-22 10:08:20 -06:00
Anders Pitman
0014ad5ce9 Add a couple shadows to logo 2020-10-21 15:01:57 -06:00
Anders Pitman
ed0133bc7b Add logo file 2020-10-21 10:55:28 -06:00
Anders Pitman
f9f2155ab1 Add logo for favicon 2020-10-21 10:53:51 -06:00