Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update openvpn3 library for pt cloak transport support #103

Closed
wants to merge 1 commit into from

Conversation

outspace
Copy link
Collaborator

@outspace outspace commented Aug 29, 2022

This PR adds support for a "Cloak PT transport" into the android OpenVPN library.

PT transport is disabled by default. You need to enable PT transport by setUsePluggableTransports call and export environment CLOAK_CONFIG with Cloak config. CLOAK_CONFIG is base64 encoded.
setUsePluggableTransports function in swig output.

Example:

qputenv("CLOAK_CONFIG", "ewogICAgIkJyb3dzZXJTaWciOiAiY2hyb21lIiwKICAgICJFbmNyeXB0aW9uTWV0aG9kIjogImFlcy1nY20iLAogICAgIk51bUNvbm4iOiAxLAogICAgIlByb3h5TWV0aG9kIjogIm9wZW52cG4iLAogICAgIlB1YmxpY0tleSI6ICIyNVJzbmkrTmo3U01KVTl0TE04ejRhYXNZWHdpUCtDMkVkS0xyS21MbndjPSIsCiAgICAiU2VydmVyTmFtZSI6ICJ0aWxlLm9wZW5zdHJlZXRtYXAub3JnIiwKICAgICJTdHJlYW1UaW1lb3V0IjogMzAwLAogICAgIlRyYW5zcG9ydCI6ICJkaXJlY3QiLAogICAgIlVJRCI6ICJueEMxSVRaeDhpZXg1bUVjeDlTbkZnPT0iLAogICAgIlJlbW90ZVBvcnQiOiAiNDQzIiwKICAgICJSZW1vdGVIb3N0IjogIjE5Mi4xNjguMS4xMDQiCn0=");

Note:

  1. NumConn in the config should be 1
  2. remote port and IP sets by variable RemotePort and RemoteHost
  3. OpenVPN must be configured for TCP transport.

tested with master branch

This build support cloak pt transport. You need to enable PT transport by setUsePluggableTransports call and export environment CLOAK_CONFIG with Cloak config.
@outspace
Copy link
Collaborator Author

Duplicate #157

@outspace outspace closed this Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant