Define endpoints independently of the bind address #674
ondrejnovakcvut
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Ok. We need to fix that. Cannot be hard. |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK. I am not sure I understand exactly the issue and I am quite short on time, so correct me if I am wrong |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. When I wanted to deploy freeopcua server to Docker, I encountered a problem that has been described several times (for example #232 ). The problem is that now, the endpoint description returned to the client by the discovery are modified to match clients IP range (here). In Docker, where clients are "hidden" behind a NAT, the server doesn't know client's real IP addresses so the rewrite creates non-existent endpoints in virtual docker network (e.g., 172.16.x.x).
I think if there was
a) a way to define server bind independently of endpoint IP addresses,
b) a way to manually create endpoints (by specifying IP and Security Profiles),
c) disable the automatic IP rewrite,
it would be possible to overcome this.
For example, the programmer could set the bind address to "0.0.0.0" to listen inside the Docker, then the programmer could define multiple endpoints for two IP addresses "1.2.3.4" and "5.6.7.8" with anon and sign policies. The client would then get four endpoints, two for each IP address. Only problem I can see is the client would have to select the relevant endpoint that it can connect to as not all IP address may be accessible by the client.
I think I would be able to implement this, but I would like to discuss the idea and the (possible) API first.
Beta Was this translation helpful? Give feedback.
All reactions