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

Same Server, multiple IPs/Domains #2100

Closed
mvysny opened this issue Aug 24, 2014 · 4 comments
Closed

Same Server, multiple IPs/Domains #2100

mvysny opened this issue Aug 24, 2014 · 4 comments

Comments

@mvysny
Copy link

mvysny commented Aug 24, 2014

Hi, thank you for the ownCloud software - it is a wonderful tool indeed. I would like to humbly request the following feature: please allow the client to specify multiple URLs to connect to - the client will simply find first URL it can access and will connect to it. There is no need for fail-over and reconnect round-robin to other URLs, should the network fail - the use case is described here:

http://forum.owncloud.org/viewtopic.php?f=14&t=20023

Now, this problem can be solved by three other solutions, all of them has nasty drawbacks; for details see https://doc.pfsense.org/index.php/Why_can't_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks

  1. NAT loopback - not supported on many routers (including mine, regardless of what TP-Link claims)
  2. Split DNS - requires registered DNS name of your server. You cannot simply add entry to /etc/hosts and override this setting with your home DNS, as /etc/hosts stuff is resolved first and your DNS setting is ignored.
  3. clever tricks - hardly applicable to Windows.

Sorry for such long post and thanks again,
Best regards,
Martin

@mvysny mvysny closed this as completed Aug 24, 2014
@mvysny mvysny reopened this Aug 24, 2014
@mvysny
Copy link
Author

mvysny commented Aug 24, 2014

Also, NAT Loopback is considered a security issue for some reason...

@danimo
Copy link
Contributor

danimo commented Aug 25, 2014

So you are suggesting to try to connect to first to an internal IP (e.g. 192.168.x.x) and then to the public-facing IP via its DNS name?

At least a naive implementation of this would be extremely dangerous (credential leakage).
@LukasReschke, let's discuss this later this week.

@mvysny
Copy link
Author

mvysny commented Aug 25, 2014

@danimo it is exactly as you say. I have not realized the security issues though - you are right. Perhaps this feature should not be generic (any list of URLs) but it must be limited specifically to target this particular home/public network situation - at most two, "home" and "public" IPs may be entered. Then, the client can employ a detection algorithm whether the home network is present. I have thought of two options:

  1. public IP detection - connect to "home" IP only when this network's public IP is equal to the "public" IP. This may not be secure enough in NAT-behind-NAT situations.
  2. The "home" IP (or the router) must have certain MAC address which the user must enter. This is perhaps more reliable, but also more technical. The client can however auto-detect MAC address and may point the user to documentation for details...

@guruz
Copy link
Contributor

guruz commented Aug 31, 2014

@mvysny Maybe summarize your points on #203
Then I'm closing this as duplicate.

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

3 participants