ssltun is a simple secure http proxy server with automic https.
If you need IP tunnel, you could use https://github.com/epii1/dtun
Firstly, install the ssltun
go get -u -v github.com/TaylorChen/ssltun/cmd/ssltun
Secondly, register one domain name.
Suppose you have a domain named ssltun.io. Your need to add an A record.
And then create a text file named sites.txt with the following content
ssltun.io:
And then create a text file named users.txt with the following content
name:passwrd
The password need to be encrypted by bcrypt. You can use the htpasswd:
htpasswd -B -c ./users.txt foo
And then start the ssltun,
sudo ./ssltun -root /tmp -sites sites.txt -users users.txt -http2 :8080
The option of -root
is used for set static sites root dir.
All file in /tmp/ssltun.io/ will be published to the Internet.
ssltun uses https://letsencrypt.org so sign a https certificate automically.
Finally, set your system proxy or browser proxy extension using the HTTPS protocol.
We recommend to use the SwitchyOmega。
ssltun will listen on 80/443 tcp port and 443 udp port for h3.