NI Linux Real-Time Discussions

Showing results for 
Search instead for 
Did you mean: 
Reply

Proxy set up on cRio 9064 and cRio 9076

Solved!
Go to Solution
Highlighted

Proxy set up on cRio 9064 and cRio 9076

[ Edited ]

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 (678 Views)
Reply
0 Kudos

Re: Proxy set up on cRio 9064 and cRio 9076

[ Edited ]

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 (606 Views)
Reply
0 Kudos

Re: Proxy set up on cRio 9064 and cRio 9076

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 (588 Views)
Reply
0 Kudos
Solution
Accepted by topic author FaustDantes
‎02-21-2017 01:30 PM

Re: Proxy set up on cRio 9064 and cRio 9076

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 (569 Views)
Reply
0 Kudos

Re: Proxy set up on cRio 9064 and cRio 9076

Thank you for your answer Smiley Happy 

 

I will try VPN 

0 Kudos
Message 5 of 5 (504 Views)
Reply
0 Kudos