NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy set up on cRio 9064 and cRio 9076

Solved!
Go to solution

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?

Many thanks for your help and idea.

0 Kudos
Message 1 of 5
(4,641 Views)

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).

0 Kudos
Message 2 of 5
(4,569 Views)

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.

0 Kudos
Message 3 of 5
(4,551 Views)
Solution
Accepted by topic author FaustDantes

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.

0 Kudos
Message 4 of 5
(4,532 Views)

Thank you for your answer 🙂 

 

I will try VPN 

0 Kudos
Message 5 of 5
(4,467 Views)