Commit Graph

10 Commits

Author SHA1 Message Date
Anders Pitman
272acb9d95 Merge branch 'master' of github.com:boringproxy/boringproxy into raw-tls-tunnels 2022-02-14 12:37:06 -07:00
Willem@105.pve1.lan
7d740b7c31 proxyRequest with ClientAddress and not localhost 2022-02-14 17:38:52 +02:00
Anders Pitman
dc2a876719 Support IPv6 for HTTPS requests 2022-02-11 12:04:54 -07:00
Anders Pitman
6bfa3e9a47 Only use X-Forwarded-For if not behind proxy
Since you can't trust it when it comes directly from clients.
2022-01-07 12:33:43 -07:00
Anders Pitman
8653583cec Add some common proxy headers
Added X-Forwarded-For and Forwarded for server TLS termination.
Haven't yet figured out a way to make this work for client TLS
termination.
2021-12-19 19:38:17 -07:00
Anders Pitman
bab13efdbf Strip connection headers
When going from HTTP/1.1 to HTTP/2
2021-02-22 23:04:43 -07:00
Anders Pitman
ddb11d00ec Switch to streaming requests
Previously we were reading the entire downstream request into
memory before making the new request to the upstream. Now we're
just passing it through. Might be some dragons here (already ran
into issues with Content-Length) but seems to be working so far.
2020-12-22 14:47:03 -07:00
Anders Pitman
45f609b8ba Move executable into separate package
Enables us to move towards being able to import as a library.
2020-12-07 21:41:45 -07:00
Anders Pitman
140c102c32 Implement specifying cert directory
Also fixed a bug where client TLS termination was failing to get
new certs I believe because the TLS listener hadn't started up
yet. I didn't notice it before because I'm running the client and
server on the same machine and the server currently gets certs on
startup even for non-server TLS tunnels
2020-11-27 21:20:38 -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