target$ java -jar nydus-1.0-SNAPSHOT.jar --type=server --targetHostPort=localhost:22 --pipeListenerPort=8443
target$ java -jar nydus-1.0-SNAPSHOT.jar --type=client --pipeUrl=wss://10.230.18.8:8443/pipe --proxyHostPort=localhost:6666 --proxyUserPwd=user:pwd --forwarderPort=8888
-
keytool -genkey -v -alias jetty -keyalg RSA -keysize 2048 -keystore keystore.jks -validity 3650 -providername SUN
-
put keystore on classpath or
src/main/resources
during build
target$ java -jar nydus-1.0-SNAPSHOT.jar --type=server --targetHostPort=localhost:2222 --pipeListenerPort=8443
target$ java -jar nydus-1.0-SNAPSHOT.jar --type=client --pipeUrl=wss://10.230.18.8:8443/pipe --forwarderPort=8888
netcat -lp 2222
netcat localhost 8888
-
mvn clean package -Pdocker
-
docker run -d --name nydus --rm -p 443:8443 p4km9y/nydus --targetHostPort=10.132.0.2:22 --pipeListenerPort=8443
docker run --rm -p 8888:8888 p4km9y/nydus --type=client --pipeUrl=wss://10.132.0.2:443/pipe