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

[Feature Request] Mac 客户端安装包开启frpc和使用docker开启 注意事项 #4376

Open
1 of 11 tasks
gexin1 opened this issue Aug 10, 2024 · 3 comments
Open
1 of 11 tasks

Comments

@gexin1
Copy link

gexin1 commented Aug 10, 2024

Describe the feature request

Mac 客户端开启frpc注意事项

  1. 首先要开启ssh登录
    截屏2024-08-11 01 11 01
  2. 然后按照官网配置就可以了
    https://gofrp.org/zh-cn/docs/examples/ssh

Mac使用docker安装客户端注意

  1. 个人使用的是snowdreamtech/frps 由于Mac 不支持
 --network host

所以我们无法在和宿主机器网络互通
要手动打开端口

services:
  frpc:
    image: snowdreamtech/frpc:0.59
    container_name: frpc
    restart: always
    # network_mode: host #不支持
    ports:
      - "8080: 8080"
    volumes:
      - /path/to/frpc.toml:/etc/frp/frpc.toml

2.ssh服务22端口被占用 我们使用host.docker.internal来访问宿主机器
注意web地址服务要设置为0.0.0.0来接受所有地址的请求

webServer.addr = "0.0.0.0"
webServer.port = 8080
webServer.user = ""
webServer.password = ""

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "host.docker.internal"
localPort = 22
remotePort = 7000

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@fatedier fatedier added the doc label Aug 12, 2024
@wuai1024
Copy link

wuai1024 commented Aug 12, 2024

不推荐这样使用,在mac中使用 frpc 请使用 brew ,这个是原生直接运行的,没必要用docker走一层虚拟机。

brew install frpc

@gexin1
Copy link
Author

gexin1 commented Aug 12, 2024

不推荐这样使用,在mac中使用 frpc 请使用 brew ,这个是原生直接运行的,没必要用docker走一层虚拟机。

brew install frpc

确实是使用brew 方便一点,还可以使用 brew services 来守护进程

@CharlesCCC
Copy link

不推荐这样使用,在mac中使用 frpc 请使用 brew ,这个是原生直接运行的,没必要用docker走一层虚拟机。

brew install frpc

确实是使用brew 方便一点,还可以使用 brew services 来守护进程

国内brew感觉特别慢. 有什么提速的方法吗?

@fatedier fatedier removed the doc label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@fatedier @CharlesCCC @wuai1024 @gexin1 and others