connected via cloudflare #351
laikitleung
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SERVER:
wstunnel server
wss://[::]:12345
--websocket-ping-frequency-sec 30
--dns-resolver dns://8.8.8.8
--log-lvl OFF
--restrict-http-upgrade-path-prefix XXXXXXXXXXXXXXXXX
--tls-certificate /.../download_from_cloudflare.pem
--tls-private-key /.../download_from_cloudflare.key
CLIENT:
wstunnel client
wss://yourdomain.com
--local-to-remote socks5://0.0.0.0:1080
--tls-sni-override yourdomain.com
--http-upgrade-path-prefix XXXXXXXXXXXXXXXXX
--http-headers host:yourdomain.com
--websocket-ping-frequency-sec 30
--log-lvl OFF"
yourdomain.com proxied by cloudflare
Rules
->Configuration Rules->yourdomain.com and uri-path contains "XXXXXXXXXXXXXXXXX" then SSL/TLS=FULL
->Origin Rules ->yourdomain.com and uri-path contains "XXXXXXXXXXXXXXXXX" than rewrite to 12345
Done
Beta Was this translation helpful? Give feedback.
All reactions