02-13-2017 09:52 AM - edited 02-14-2017 05:54 AM
Hello,
I connect my NI-cRio 9064 version Linux RT (os version 4.1.15-rt17-ni-4.0.0f1) to proxy server (eg. 185.28.193.95:8080 )?
I am trying comand:
export {http,https,ftp}_proxy="http://185.28.193.95:8080"
It is not working.
Is it possible to do that from Web Configuration?
Solved! Go to Solution.
02-15-2017 09:01 AM - edited 02-15-2017 09:03 AM
Welcome FaustDantes!
What is it that you're wanting to send over the proxy? Where do you want to use this connection from? Keep in mind that the environment variables that you export will only affect processes that are launched from that shell.
And, to follow up on the other question asked, no, there's not a way to set proxy information through MAX or other UIs, you're going to need to dig into the OS a bit deeper to get the result that you want (if it becomes a more requested feature, NI would implement it).
02-16-2017 12:31 PM
Hi BrandM,
Thank you for your answer.
I have data from measurement in local network on cRio and I send them to another server which is not in this network. I would like to set proxy for safety reasons and also because the company like proxy and I should take care of it.
Do you know some solutions that will set proxy permanent after reboot or on startup?
I try many instructions from internet but nothing did work for cRio Linux RT.
02-17-2017 09:49 AM
A better solution for secure transmission of data from a NI Linux RT controller to another machine on a different subnet would be an OpenVPN configuration, but that will require a bit of setup and knowledge of Linux networking to make that work.
A simpler, smaller-scope solution would be to use an SSH tunnel to send traffic to a particular port (on the local NI Linux RT target) to a remote port on the other end of an ssh connection.
Finally, the $PROTOCOL_proxy environment variable only influences programs that understand and use the environment variable. A quick check doesn't look promising that LV on the controller would recognize this environment variable.
I'd recommend looking into either the OpenVPN or SSH tunnel approach to getting what you need.
02-21-2017 01:30 PM
Thank you for your answer 🙂
I will try VPN