Hilscher Forum
Proxy Settings - Printable Version

+- Hilscher Forum (https://forum.hilscher.com)
+-- Forum: netPI - Industrial Raspberry Pi with/without Industrial Ethernet support (https://forum.hilscher.com/Forum-netPI-Industrial-Raspberry-Pi-with-without-Industrial-Ethernet-support)
+--- Forum: Software (https://forum.hilscher.com/Forum-Software)
+--- Thread: Proxy Settings (/Thread-Proxy-Settings--376)



Proxy Settings - Motzi - February-7th-2019

We want to use the netPI in a network that uses proxy to connect to the internet.
Unfortunately I can't see any options where I can set the proxy settings.
Is there any way to setup the proxy connection?

Kind regards
Julian


RE: Proxy Settings - Armin@netPI - February-7th-2019

Hello Julian,

the current netPI's web GUI does not offer any general proxy settings.

But please explain me a little closer what your application exactly is.

I know the proxy function normally under conditions where a routing of HTTPS, HTTP or FTP services across a proxy is necessary. Is this the same idea you have in mind?

Thx
Armin


RE: Proxy Settings - Motzi - February-7th-2019

Yes, that's pretty much what we want to do in our company network.

Regards,
Julian


RE: Proxy Settings - Armin@netPI - February-7th-2019

Well then this can be a solution for you: https://docs.docker.com/network/proxy/

Since netPI applications are coming all containerized you can hand over the parameters HTTP(S)_PROXY as enviroment variables to a container. Then applications like a web browser in a container use this proxy path to get connection to the destination device.

I don't know a working proxy server on the internet ... maybe you know one ... and I can try if this proxy mechanism works.

Thx
Armin


RE: Proxy Settings - Motzi - February-7th-2019

The problem is that we can't pull images from DockerHub without proxy settings. 
So the only way to deploy a container is to upload it manually from 'remote access'.
And I think that isn't the best solution, especially if you want to update the containers regularly.

We need the ability to establish the proxy connection within the netPI environment and not within the container.

Thanks,
Julian


RE: Proxy Settings - Armin@netPI - February-7th-2019

Hello Julian,

got your problem. Right now there is no possibility for you to configure any proxy server settings to pull images over proxies like described here: https://docs.docker.com/config/daemon/systemd/#httphttps-proxy

There are no possibilities to reconfigure those environment variables on the Linux host right now for you. I gonna discuss this topic in the next developer meeting and ask for an implementation. Right now I don't see a solution within the next months.

Thx
Armin