-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
nathole need a ip filter for zerotiler-like virtual network[Feature Request] #3717
Comments
I don't understand why you would want to use both zerotier and frp at the same time. Zerotier already supports peer-to-peer (p2p) connections, so I don't see the need to introduce more configuration complexity by using frp. |
@fatedier zerotier rubost and easy to use for a group of people to connect each others. I use it for ssh. but it is not stable, and slow due to the reason that we all know. And it cannot make nat hole in my network(but frp can). So,when we need to debug or transfer files or deploy service from Lan to web site, we will use frp. I need them all😂😂😂 |
I tend to put it aside first and wait for more feedback on this scenario. |
Can I make PR for this? |
It will not accepted until we have clear and meaningful problem scenarios that are helpful to most people, especially when new configuration items need to be added. The scenario you described, from my personal perspective, does not seem worth adding new configuration options to solve the problem. However, I am unsure if this is a common requirement for disabling internal addresses in AssistedAddrs(something like |
ok, I think most users can't notice this. This (wrong nathole) will disappear in lots of circumstances. I think it more like a performance bug (but it's a feature). I will fork this for my own usage, pin me if you need a PR. |
@yangyaofei BTW, I think you can consider whether there is a possibility of optimization without introducing new configuration items. I prefer not to expose complexity to users as it may increase their understanding cost. Many users may also misuse it, resulting in various issues being created, which will ultimately lead to high maintenance costs for the project. Not just this one feature, I mean various kinds of requirements. Some features may only be used by a few people in the end, but in order to ensure the correctness of each refactoring/iteration, it is necessary for developers to invest in long-term maintenance costs. |
I understand this philosophy but not fully agree. I think smart optimization may lead some unknown issues and hard to find and resolve. Maybe add a config like |
…ow quality connections. For issues: fatedier#3717
…ow quality connections. For issues: fatedier#3717
Describe the feature request
Like this issue: #3457, the zerotier ip has a low TTL.
So , the nathole will use zerotier for transmission. But the zerotier can be very slow.
I think add a config
nat_address_filter
like192.168.0.0/24
which will remove these ips from nathole.To test that thought, I add several code in https://github.com/fatedier/frp/blob/dev/client/visitor/xtcp.go#L278:
I test the code above, it will make frp go direct not through zerotier.
Describe alternatives you've considered
The things I don't know is that if this is a good implement or not. Totally newbie for go.
So if this is good and this config make sense, I will make a PR for this.
Affected area
The text was updated successfully, but these errors were encountered: