Comments (7)
Hello @SingletC
Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name.
Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.
from frp.
Hello @SingletC
Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name.
Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.
I much appreciate your help; I did not test the above code. But I assume it will work.
It will be easy to let the client query the IP address of a domain instead of caching it. You can close the thread if this feature seems unnecessary.
from frp.
@SingletC I am having issues sharing the code here give me some time I will post it here.
from frp.
@SingletC Here you go a link to downlod my batch script.
https://www.zippyshare.day/ZnzuZ715lWYguC5/file
from frp.
let me know if this works for you. @SingletC
from frp.
我有一台frps(arm64)公网ip被运营商更新时,动态域名更新可能不及时,我的另外2台frpc(一台arm,一台arm64),通常会断线几分钟到十几分钟,然后自动重新连上,并不需要重启。
from frp.
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
from frp.
Related Issues (20)
- 代理配置文件里增加 “transport.useEncryption = true” 这条报错 HOT 2
- Which stun server implement is suitable for frp xtcp? HOT 3
- [Feature Request] 服务器可以主动断开某个客户端或者某个代理和服务器的链接吗 HOT 5
- 如何强制HTTPS请求的端口转发 HOT 11
- 服务端如何优雅地控制客户端的连接 HOT 17
- plugin_socks5 不可用 HOT 1
- [Feature Request] HOT 1
- win7系统启动客户端 HOT 2
- FRP BUG!!! HOT 3
- 无法连接到 frps-panel 插件面板 HOT 10
- Please note that the lastest version of FRP is reported as malicious by Google Chrome and Windows Defender. HOT 1
- 能否实现一条命令生成https的端口转发链接
- log中报错:Accept new mux stream error: tls: client offered only unsupported versions: [302 301]
- connection write timeout HOT 1
- 关于FRP-0.59.0版本当前依赖库存在的安全漏洞 HOT 2
- Why does force type=http require a domain?
- [Feature Request] Live Reload HOT 4
- [Feature Request] I found that when the type is UDP, the default is UDP6 HOT 1
- [Feature Request] Support UDP in socks5 proxy plugin HOT 1
- GitHub Docker repository is not link to this GitHub repository HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frp.