xtaci / kcptun

A Quantum-Safe Secure Tunnel based on QPP, KCP, FEC, and N:M multiplexing.
MIT License
13.81k stars 2.53k forks source link

help, how to use it? #921

Open lootoos opened 1 year ago

lootoos commented 1 year ago

./client_linux_amd64 -r "193.164.16.243:4000" -l ":8388" -key "123" -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46 ./server_linux_amd64 -t "127.0.0.1:8388" -l "193.164.16.243:4000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46 -key "123" How to open port 22\25565 on a home machine using "kcptun"?

omaidb commented 1 year ago

服务端配置

# Provide kcp service for local port 22
./server_linux_amd64 -t "127.0.0.1:22" -l "193.164.16.243:4000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46 -key "123"

客户端配置

# The client is exposed to 25565. At this time, if you access the local 25565, it is equivalent to accessing the server's port 22.
./client_linux_amd64 -r "193.164.16.243:4000" -l ":25565" -key "123" -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46