This program forwards OpenVPN tcp traffic to WSTunnel or Stunnel server.
- To build android library Run
build_android.sh
. (Require android sdk + ndk) - To build ios framework Run
build_ios.sh
(Requires xcode build tools) - To build binaries for desktop Run
build_desktop.sh
Import Library/Framework & Start proxy.
initialise(BuildConfig.DEV, logFile)
registerTunnelCallback(callback)
if (isWSTunnel) {
val remote = "wss://$ip:$port/$PROXY_TUNNEL_PROTOCOL/$PROXY_TUNNEL_ADDRESS/$WS_TUNNEL_PORT"
startProxy(":$PROXY_TUNNEL_PORT", remote, 1, mtu)
} else {
val remote = "https://$ip:$port"
startProxy(":$PROXY_TUNNEL_PORT", remote, 2, mtu)
}
-d, --dev Turns on verbose logging.
-h, --help help for root
-l, --listenAddress string Local port for proxy > :65479 (default ":65479")
-f, --logFilePath string Path to log file > file.log
-m, --mtu int 1500 (default 1500)
-r, --remoteAddress string Wstunnel > wss://$ip:$port/tcp/127.0.0.1/$WS_TUNNEL_PORT Stunnel > https://$ip:$port
-t, --tunnelType int WStunnel > 1 , Stunnel > 2 (default 1)
$ cli -l :65479 -r wss://$ip:$port/tcp/127.0.0.1/$WS_TUNNEL_PORT -t 1 -m 1500 -f file.log -d true
$ cli -l :65479 -r https://$ip:$port -t 2 -m 1500 -f file.log -d true