Skip to content

[Question] How to chain two protocol in sing-box config ? #3177

Closed
@Mohsen7s

Description

@Mohsen7s

Lets say I bought 2 different configs which ss-1 is blocked in country and cant connect to but the ss-2 is Ok.
I need to have my dedicated IP at ss-1. So I want to firstly connect to ss-2 and then connect to ss-1 through ss-2. Keep in mind I dont have access to server and can only play with local sing-box config.

    {
      "type": "shadowsocks",
      "tag": "ss-1",
      "server": "2.2.2.2",
      "server_port": 57456,
      "method": "chacha20-ietf-poly1305",
      "password": "123"
    },

    {
      "type": "shadowsocks",
      "tag": "ss-2",
      "server": "1.1.1.1",
      "server_port": 57456,
      "method": "chacha20-ietf-poly1305",
      "password": "435"
    }

I want to connect to ss-1 through ss-2. I mean first ss-2 must be established and if success then ss-1 should use ss-2 connection to establish.

Is there any option to do so ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions