devopsext / esni-rev-proxy Goto Github PK
View Code? Open in Web Editor NEWGolang reverse proxy with ESNI support on top of TLS 1.3
Golang reverse proxy with ESNI support on top of TLS 1.3
when I type go build
after I have everything done, I got this message:
.GOROOT/src/net/http/response.go:169:29: too many arguments to conversion to badStringError: badStringError("malformed HTTP response", line)
.GOROOT/src/net/http/response.go:179:29: too many arguments to conversion to badStringError: badStringError("malformed HTTP status code", statusCode)
.GOROOT/src/net/http/response.go:183:29: too many arguments to conversion to badStringError: badStringError("malformed HTTP status code", statusCode)
.GOROOT/src/net/http/response.go:187:29: too many arguments to conversion to badStringError: badStringError("malformed HTTP version", resp.Proto)
.GOROOT/src/net/http/transfer.go:313:26: too many arguments to conversion to badStringError: badStringError("invalid Trailer key", k)
.GOROOT/src/net/http/transfer.go:780:26: too many arguments to conversion to badStringError: badStringError("bad trailer key", key)
.GOROOT/src/net/http/transfer.go:1044:27: too many arguments to conversion to badStringError: badStringError("bad Content-Length", cl)
.GOROOT/src/net/http/transport.go:538:29: too many arguments to conversion to badStringError: badStringError("unsupported protocol scheme", scheme)
It seems like a problem, how can I deal with it?
Hey,
I was trying to enable ESNI on my Apache web server and wanted to use this repository to get closer to my goal. However, when I try to run the prepareGoRoot.sh script it gives an error:
cp: target './.GOROOT/src/' is not a directory
I can't figure out the error and would be grateful if you could look into it. @i-prudnikov
Cheers
Hey, @i-prudnikov
I am trying to run this proxy in front of an Apache2 webserver. My server is listening on port 443 since my test website has HTTPS enabled, in order to test ESNI. Now the reverse proxy gives this error while trying to start it
sudo ./esni-rev-proxy -b 0.0.0.0:443 -esni-keys ~/test/test2/esnitool/esni.pub -esni-private ~/test/test2/esnitool/esni -cert "test.siegelucent.tech:/etc/apache2/testsiegelucenttech.key:/etc/apache2/testsiegelucenttech.crt" -upstream https://test.siegelucent.tech -showaccesslog
2021/04/15 08:07:03 Default esniRevProxy cert/key pair would be sourced from test.siegelucent.tech:/etc/apache2/testsiegelucenttech.key:/etc/apache2/testsiegelucenttech.crt
2021/04/15 08:07:03 Starting esni reverse proxy...
2021/04/15 08:07:03 ListenAndServeTLS(): listen tcp 0.0.0.0:443: bind: address already in use
I believe that this error is coming up since Apache2 is also running on the same port. However if I stop the webserver to free up the port, the website won't load even if the reverse-proxy works
Do you have any idea what might be a fix for this issue?
Also, I must mention that it seems that my golang installation has been botched up somehow in my Linux VM and reinstalling it did not help. So, I compiled the binaries inside the docker container and copied them to the host (my VM) and ran the reverse-proxy from there, since my Apache2 webserver is set up in the VM.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.