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

prefix #1328

Closed
sobhan-m94 opened this issue Apr 26, 2023 · 8 comments
Closed

prefix #1328

sobhan-m94 opened this issue Apr 26, 2023 · 8 comments
Labels
need more info We need more information in order to help or verify question

Comments

@sobhan-m94
Copy link

Whats is the prefix and How can I generate prefix ? any example ?

https://www.reddit.com/r/outlinevpn/wiki/index/prefixing/

@hklcf
Copy link

hklcf commented May 1, 2023

As of Outline Client version 1.9.0, access keys support the “prefix” option. The “prefix” is a list of bytes used as the first bytes of the salt of a Shadowsocks TCP connection. This can make the connection look like a protocol that is allowed in the network, circumventing firewalls that reject protocols they don't recognize.

image

@maddyhof maddyhof added this to Service Provider Issues in [DEPRECATED] Outline (Classic) May 1, 2023
@maddyhof maddyhof added the need more info We need more information in order to help or verify label May 1, 2023
@sobhan-m94
Copy link
Author

The “prefix” is a list of bytes

What is the meaning of list of bytes ?
Array of bytes ?

To use the prefix feature with Dynamic Access Keys (ssconf://), add a "prefix" key to the JSON object, with a JSON-encoded value representing the prefix you want_ (see examples in the table above)_. You can use escape codes (like \u00FF) to represent non-printable Unicode codepoints in the U+0 to U+FF range. For example:

{ "server": "example.com", "server_port": 8388, "password": "example", "method": "chacha20-ietf-poly1305", "prefix": "\u0005\u00DC\u005F\u00E0\u0001\u0020" }

What is "\u0005\u00DC\u005F\u00E0\u0001\u0020" ? How can I generate prefix like this ?
How would you write prefix generator function in Python?

@hklcf

@hklcf
Copy link

hklcf commented May 3, 2023

just copy & paste is ok...

image

@hklcf
Copy link

hklcf commented May 3, 2023

@sobhan-m94
Copy link
Author

I want to know how create a custom prefix ?

@sobhan-m94
Copy link
Author

I want to know how create a custom prefix ?

@bemasc

@jimfangx
Copy link

jimfangx commented May 17, 2023

@sobhan-m94
As outlined in the tutorial you provided (here). You can use the encodeURIComponent() function to generate a custom prefix

@maddyhof
Copy link

@sobhan-m94 I hope the prefix documentation has addressed your issues. If you have further questions you can post your questions on reddit for community support or contact customer support here.

[DEPRECATED] Outline (Classic) automation moved this from Service Provider Issues to Done May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info We need more information in order to help or verify question
Development

No branches or pull requests

4 participants