| Crates.io | sirang |
| lib.rs | sirang |
| version | 0.1.5 |
| created_at | 2024-12-22 16:47:45.351045+00 |
| updated_at | 2025-01-22 06:15:05.657601+00 |
| description | A forward and reverse TCP tunnel over QUIC |
| homepage | https://github.com/icelain/sirang |
| repository | https://github.com/icelain/sirang |
| max_upload_size | |
| id | 1492113 |
| size | 90,400 |
Install through cargo with cargo install sirang
Install prebuilt binaries from the Github Releases page
Clone the repo and compile with cargo build --release
sirang forward [GENERAL_OPTIONS] remote [OPTIONS] --key <PATH> --cert <PATH> --forwardaddr <ADDRESS>
Here, --key and --cert and your tls key and tls certificate respectively.
--forwardaddr is the remote tcp_address you're forwarding your traffic to.
By default, the remote quic server starts on address 0.0.0.0:4433.
To change this, you can specify the optional argument --quicaddr to start the quic server on your preferred address.
sirang forward [GENERAL_OPTIONS] local [OPTIONS] --cert <PATH> --remoteaddr <ADDRESS>
Here, --cert is the tls certificate of the remote server and --remoteaddr is the address of the remote quic server created with sirang forward remote.
By default, the local tcp server starts on 127.0.0.1:8080.
To change this, you can specify the optional argument --localaddr to start the tcp server on your preferred address.
sirang reverse [GENERAL_OPTIONS] remote [OPTIONS] --key <PATH> --cert <PATH>
Here, --key and --cert and your tls key and tls certificate respectively.
By default, the remote quic server starts on address 0.0.0.0:4433 and the default tcp server starts on address 0.0.0.0:5000.
To change this, you can respectively specify the optional arguments --quicaddr and --tcpaddr to start the quic and tcp servers on your preferred addresses.
sirang reverse [GENERAL_OPTIONS] local --cert <PATH> --localaddr <ADDRESS> --remoteaddr <ADDRESS>
Here, --cert is the tls certificate of the remote server and --remoteaddr is the address of the remote quic server created with sirang reverse remote.
The argument --localaddr specifies the local tcp server you want to tunnel to.
To turn on debug logging, use --debug before either command.
To set the buffer size(in bytes), use --buffersize before either command. The default buffer size is 32KB.