|
1 년 전 | |
---|---|---|
client | 1 년 전 | |
cmd | 1 년 전 | |
keystore | 1 년 전 | |
server | 1 년 전 | |
util | 1 년 전 | |
.gitignore | 1 년 전 | |
LICENSE | 1 년 전 | |
Makefile | 1 년 전 | |
README.md | 1 년 전 | |
go.mod | 1 년 전 | |
go.sum | 1 년 전 |
Generic DTLS wrapper for UDP sessions. Suitable for wrapping Wireguard or UDP OpenVPN or any other connection-oriented UDP sessions.
"Client" receives plaintest UDP traffic and forwards it to "Server" via encrypted DTLS connection. "Server" listens UDP port and accepts encrypted DTLS sessions, forwarding messages from each session as a separate UDP connection to plaintext UDP port.
Pre-built binaries are available here.
Alternatively, you may install dtlspipe from source. Run the following command within the source directory:
make install
$ dtlspipe -h
Usage:
dtlspipe [OPTION]... server <BIND ADDRESS> <REMOTE ADDRESS>
dtlspipe [OPTION]... client <BIND ADDRESS> <REMOTE ADDRESS>
dtlspipe [OPTION]... genpsk
dtlspipe version
Options:
-cpuprofile string
write cpu profile to file
-identity string
client identity sent to server
-idle-time duration
max idle time for UDP session (default 1m30s)
-key-length uint
generate key with specified length (default 16)
-mtu int
MTU used for DTLS fragments (default 1400)
-psk string
hex-encoded pre-shared key. Can be generated with genpsk subcommand
-timeout duration
network operation timeout (default 10s)