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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs (or detailed usage help) needed #96

Open
NEK-RA opened this issue Apr 10, 2022 · 5 comments
Open

Docs (or detailed usage help) needed #96

NEK-RA opened this issue Apr 10, 2022 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@NEK-RA
Copy link

NEK-RA commented Apr 10, 2022

Hi.
Do you plan to add any docs to this package? Or at least usage details?

I don't know, may be most starred here has enough with basic example. I got ehco working too, but it's still not fully clear to me 馃槥

In example, for me next things need for clarification:

  1. For each relay config there are fields:

    • listen_type
    • transport_type
      Which values here are acceptable? From readme it looks like raw, wss and mwss but is this right or there are any other values?
  2. How does ehco manage tcp and udp? Does it listen to both on interface and port specified in listen field of relay config?

  3. If yes, does ehco forward both tcp and udp to specified remote recievers? Does tcp traffic received by ehco goes only to tcp_remotes and udp traffic goes only to udp_remotes?

  4. Do I correctly understand, that to forward only tcp traffic (for example) I need to pass empty array to udp_remotes for such relay in config? If I'm wrong then how?

  5. Does web_token required only for prometheus web monitor?

  6. What does exactly do ehco install? From ehco --help it's described as "install ehco systemd service". It sounds like ability to daemonize process, but what does it need exactly? Running ehco install --help outputs next:

    ehco install --help
    NAME:
       ehco install - install ehco systemd service
    
    USAGE:
       ehco install [command options] [arguments...]
    
    OPTIONS:
       --help, -h  show help (default: false)
    

    Does it need to be used as putting install right after ehco in ehco -c config.json? Or it will use some default location for config? Or what? If it gives ability to create multiple systemd services based on multiple configs (ehco install -c configN.json, where N for example is number from 1 to 5) then does it have any ability to give name for this service?

Finally, many questions and no answers found 馃槥

@Ehco1996 Ehco1996 pinned this issue Apr 15, 2022
@Ehco1996 Ehco1996 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 15, 2022
@Ehco1996
Copy link
Owner

@NEK-RA

i am sorry for late reply, i can understand that your are frustrated when you encounter these problmes, i will try to add some detail docs about ehco later( when i have enough time 馃ぃIf you are interested in participating in the construction of the document, I would be very grateful!)

let me answer your questions one by one

For each relay config there are fields:

first of all yes! the options for both listen_type and listen_type are and only are raw wss and mwss. i add some hits in this commit

How does ehco manage tcp and udp? Does it listen to both on interface and port specified in listen field of relay config?

no, udp will only be listened to if there is a value in udp_remotes

If yes, does ehco forward both tcp and udp to specified remote recievers? Does tcp traffic received by ehco goes only to tcp_remotes and udp traffic goes only to udp_remotes?

yes,ehco goes only to tcp_remotes and udp traffic goes only to udp_remotes?

Do I correctly understand, that to forward only tcp traffic (for example) I need to pass empty array to udp_remotes for such relay in config

yes , just pass empty array to udp_remotes or just don't pass this flag

Does web_token required only for prometheus web monitor

yes and no, if you want to keep you pprof endpoint safe, you can use this flag too

What does exactly do ehco install?

ehco install just write one systemd service file to /etc/systemd/system/ehco.service, and the template is here, if you want to add multiple systemd services, you can do this manully

@NEK-RA
Copy link
Author

NEK-RA commented Apr 15, 2022

i am sorry for late reply

It's not a problem :)

just pass empty array to udp_remotes

Then I guess there's some unnecessary output (or bug?) - in this screen as you see tcp_remotes is empty, but ehco still printing that tcp relay started

or just don't pass this flag

Does it actual for both tcp and udp remote fields?

yes and no, if you want to keep you pprof endpoint safe, you can use this flag too

Well, I guess this part need for some explanation馃槄

ehco install just write one systemd service file to /etc/systemd/system/ehco.service

So to use it I need to use it in next way: ehco install my-config.json. Right?

@Ehco1996
Copy link
Owner

Ehco1996 commented Apr 16, 2022

@NEK-RA

just pass empty array to udp_remotes

thanks, this is a bug and i fix this in a9b4ecc

Well, I guess this part need for some explanation

added some explains for this flag, but in Chinese,Given that the majority of users are Chinese, but I will soon add instructions for the English version as well

So to use it I need to use it in next way: ehco install my-config.json. Right?
no, just use ehco install , a vi editor will open for you, you just need to change the content of the file and save it

@NEK-RA
Copy link
Author

NEK-RA commented Apr 16, 2022

Thanks, will wait it :)

github-actions bot added a commit to aiastia-bak/ehco that referenced this issue Apr 16, 2022
* https://github.com/Ehco1996/ehco:
  test: add ss bench
  doc: add simple readme en
  ctl: fix some bugs Docs (or detailed usage help) needed Ehco1996#96
@github-actions github-actions bot added the Stale label Sep 10, 2022
@Ehco1996
Copy link
Owner

Ehco1996 commented Dec 8, 2023

help wanted

@Ehco1996 Ehco1996 reopened this Dec 8, 2023
@Ehco1996 Ehco1996 removed the Stale label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants