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

SCTP mode supported #25

Open
liudf0716 opened this issue Jan 14, 2023 · 0 comments
Open

SCTP mode supported #25

liudf0716 opened this issue Jan 14, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@liudf0716
Copy link
Owner

liudf0716 commented Jan 14, 2023

xfrpc currently does not support STCP, and we are in need of assistance to implement it. As stated in the frp documentation, 'STCP' is described as:

Expose your service privately
Some services will be at risk if exposed directly to the public network. With STCP (secret TCP) mode, a preshared key is needed to access the service from another client.

Configure frps same as above.

Start frpc on machine B with the following config. This example is for exposing the SSH service (port 22), and note the sk field for the preshared key, and that the remote_port field is removed here:

frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000

[secret_ssh]
type = stcp
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
Start another frpc (typically on another machine C) with the following config to access the SSH service with a security key (sk field):

frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000

[secret_ssh_visitor]
type = stcp
role = visitor
server_name = secret_ssh
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 6000
On machine C, connect to SSH on machine B, using this command:
ssh -oPort=6000 127.0.0.1

@liudf0716 liudf0716 added the help wanted Extra attention is needed label Jan 14, 2023
@liudf0716 liudf0716 changed the title visitor模式的支持 SCTP mode supported Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant