I’m getting mad in this situation so I decided to write here in the forum.
I’m developing a simple application with .NET Core that connect a socket to a server (industrial protocol Modbus TCP) (port 502). I’ve made some tests with different configuration but more or less the result is always the same:
I’ve used extensively Docker since a year but always with containers that host a service not connecting TO a service and on Proxmox everything is simple and straightforward. I tried to run the container with various parameters, exposing or translating ports from host to container, I also tried “host mode” but I fall always in the same situation. There are some thread around regarding Kestrel or Heroku, I tried also to pass the port as environment variable, but the feeling I have is that I missing something , for sure for inexperience, “higher” to nat the addresses or do some iptables policy or what… Help highly appreciated!
Proxmox is amazing, keep on the hard and good work!
Thank you
Andrea
I’m developing a simple application with .NET Core that connect a socket to a server (industrial protocol Modbus TCP) (port 502). I’ve made some tests with different configuration but more or less the result is always the same:
- First test: I made a LXC Unprivileged instance of Debian 10 (nesting ON) (Proxmox VE is installed on a HP Microserver and everything seems to work like a charm, really impressed, since months), I installed Docker as the user Jabber suggested here, so using the upstream and not Debian version: directly from the Debian instance I get “Access denied (13)” when the program tries to open the connection, from the container same result
- Second test: I made a LXC Privileged container instance od Debian 10 (nesting ON), I installed Docker as the user Jabber suggested here, so using the upstream and not Debian version: directly from the Debian instance I can connect to a server on my development laptop, from the container I get a “fun” experience: if I point to the correct service port (502 or even others I tested) where the server is listening to I get “Access denied (13)”, if I point to a random port I get “Connection refused (111)” and so the conclusion to me is that the program somehow can detect what’s on the other side
I’ve used extensively Docker since a year but always with containers that host a service not connecting TO a service and on Proxmox everything is simple and straightforward. I tried to run the container with various parameters, exposing or translating ports from host to container, I also tried “host mode” but I fall always in the same situation. There are some thread around regarding Kestrel or Heroku, I tried also to pass the port as environment variable, but the feeling I have is that I missing something , for sure for inexperience, “higher” to nat the addresses or do some iptables policy or what… Help highly appreciated!
Proxmox is amazing, keep on the hard and good work!
Thank you
Andrea