shadowsocks / shadowsocks/shadowsocks-rust

Feature request: lifecycle hooks for sslocal

Open
#1,275 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
10.9k
Forks
1.5k
Avg merge
4d 15h
Merged PRs (30d)
5

Description

Hey guys, may i request small feature. In a vein of openvpn or wireguard, will it be possible to have:

PreStart, PostStart, PreExit, PostExit hooks (may be others) for sslocal ?
Just arbitrary shell commands to execute before/after establishing/terminating connection to remote ssserver.

Will make routing tables setup so much simpler for local-tun feature.

Will greatly appreciate.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating sslocal's connection lifecycle and the local-tun routing setup. Define the required hook points around establishing and terminating the remote ssserver connection, then verify that the requested pre- and post-commands run at the expected stages.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.