{"id":20808112,"url":"https://github.com/flickersoul/ss_proxy","last_synced_at":"2025-03-12T03:47:45.205Z","repository":{"id":115673870,"uuid":"364562149","full_name":"FlickerSoul/ss_proxy","owner":"FlickerSoul","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-16T18:43:22.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T02:48:58.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlickerSoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-05T12:01:41.000Z","updated_at":"2024-07-16T18:43:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbdc93cb-7a97-45e7-adba-1b9a0cb5762f","html_url":"https://github.com/FlickerSoul/ss_proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlickerSoul%2Fss_proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlickerSoul%2Fss_proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlickerSoul%2Fss_proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlickerSoul%2Fss_proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlickerSoul","download_url":"https://codeload.github.com/FlickerSoul/ss_proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243152868,"owners_count":20244657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T19:45:15.922Z","updated_at":"2025-03-12T03:47:45.180Z","avatar_url":"https://github.com/FlickerSoul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\nThe code works with python3.7+ I think \n\nThe proxy works in the following way \n\n```text\nclient application ≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁≁\u003e target server\n    |               redirected connection       ∧ \n    |                                           |\n    |   socks5 protocol                         |\n    |                   normal tcp data stream  |\n    |                                           |\n    ∨                                           |\nproxy client -----------------------------\u003e proxy server\n              |addr_type|addr|port|data|\n```\n\n## Usage\n\nbasic usage: \n```bash\npython3 main.py [-h] [--config CONFIG] [--level {info,debug,warn,error}] [--version] {server,client}\n```\n\nExample: \n\n```bash\npython3 main.py server --config configs.ServerConfig -l debug  # open a server\n```\n\n```bash\npython3 main.py server --config configs.LocalClientConfig -l debug  # open a local client \n```\n\nThe configurations for proxy server and proxy client are located `configs.py`. There are three default configurations: `ServerConfig`, `LocalClientConfig`, and `RemoteClientConfig`. \n\nThe proxy server config tells the server to open a socket at `local_port  ` to accept proxy client requests. The `address` and `port` in the proxy client config tells the client to connect to proxy server at `address:prot` and open a socket at `local_port` to receive socks5 requests from applications clients. \n\nYou can create your own configuration class by inheriting the `BaseConfig` in `configs.py` file. \n\nYou can specify the config class by using `--config module_path.class_name`.\n\nThe `--level` or `-l` flag specifies the log output level. \n\nTo use socks5 to connect to client: \n\n```bash\nexport all_proxy=socks5://127.0.0.1:\u003clocal_port\u003e\n```\n\nExample:\n```bash\nexport all_proxy=socks5://127.0.0.1:7690  # for the LocalServer configuration\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflickersoul%2Fss_proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflickersoul%2Fss_proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflickersoul%2Fss_proxy/lists"}