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

Wake On LAN #4209

Open
1 of 11 tasks
extrafein opened this issue May 9, 2024 · 5 comments
Open
1 of 11 tasks

Wake On LAN #4209

extrafein opened this issue May 9, 2024 · 5 comments

Comments

@extrafein
Copy link

Describe the feature request

It would be great to have an option to trigger a command in case of accessing a client target host. one use case would be WakeOnLAN.

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
@xqzr
Copy link

xqzr commented May 10, 2024

说不定可以,这只是一个想法

[[proxies]]
name = "wol"
type = "udp"
localIP = "255.255.255.255"
localPort = 9
remotePort = 9

Copy link

github-actions bot commented Jun 1, 2024

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

@wuai1024
Copy link

wuai1024 commented Jun 5, 2024

请问下,实验成功了吗?

@xsrong
Copy link

xsrong commented Jun 21, 2024

我试了,但是没有成功,不知道问题出在什么地方。

frps.toml
  bindPort = 7000

frpc.toml
  serverAddr = "47.109.**.**"
  serverPort = 7000

  [[proxies]]
  name = "Wake On Lan"
  type = "udp"
  localIP = "255.255.255.255"
  localPort = 9
  remotePort = 6001

服务器端和客户端能够正常启动

~ $ ./frpc -c [frpc.toml](http:https://frpc.toml/)
[2024-06-21 22](tel:2024-06-21 22):16:[07.611](tel:07.611) [I] [sub/[root.go:142](http:https://root.go:142/)] start frpc service for config file [[frpc.toml](http:https://frpc.toml/)]
[2024-06-21 22](tel:2024-06-21 22):16:[07.612](tel:07.612) [I] [client/[service.go:294](http:https://service.go:294/)] try to connect to server...
[2024-06-21 22](tel:2024-06-21 22):16:[07.656](tel:07.656) [I] [client/[service.go:286](http:https://service.go:286/)] [b[2733119](tel:2733119)e4d[13667](tel:13667)] login to server success, get run id [b[2733119](tel:2733119)e4d[13667](tel:13667)]
[2024-06-21 22](tel:2024-06-21 22):16:[07.656](tel:07.656) [I] [proxy/[proxy_manager.go:173](http:https://proxy_manager.go:173/)] [b[2733119](tel:2733119)e4d[13667](tel:13667)] proxy added: [Wake On Lan]
[2024-06-21 22](tel:2024-06-21 22):16:[07.668](tel:07.668) [I] [client/[control.go:168](http:https://control.go:168/)] [b[2733119](tel:2733119)e4d[13667](tel:13667)] [Wake On Lan] start proxy success
[2024-06-21 22](tel:2024-06-21 22):16:[08.216](tel:08.216) [I] [proxy/[udp.go:93](http:https://udp.go:93/)] [b[2733119](tel:2733119)e4d[13667](tel:13667)] [Wake On Lan] incoming a new work connection for udp proxy, [47.109.**.**:7000](http:https://47.109.**.**:7000/)

发送唤醒消息后服务器端没有任何反应。服务器端使用tcpdump监听6001端口发现能够收到唤醒消息的

[root@iZ2vcho1h20xnnnm63vknqZ ~]# tcpdump udp port 6001
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
21:01:36.375011 IP 113.248.19.78.43602 > iZ2vcho1h20xnnnm63vknqZ.6001: UDP, length 102
^C
1 packet captured
1 packet received by filter
0 packets dropped by kernel
[root@iZ2vcho1h20xnnnm63vknqZ ~]#

@xqzr
Copy link

xqzr commented Jun 22, 2024

tcpdump udp port 9

在 frpc

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

4 participants