Setting up a proxy on a ServiceNav Box

On the page

Do you need help?


The ServiceNav Box is installed on your network and does not have access to the SaaS platform directly.

Access to the outside world requires a proxy.

It is therefore necessary to go through this proxy in order to retrieve the configuration of the box and establish the VPN link with the platform.


Before run the script

Set the environment variables for the proxy to be used when retrieving certificates

export http_proxy=http://serveur:port

export https_proxy=http://serveur:port

If the proxy requires authentication, add the following variables by entering the user/password

export proxy_user=user

export proxy_password=password

Configure the openvpn client to use the proxy.

Edit the file /etc/openvpn/client.conf.

Change the following lines:

;http-proxy-retry # retry on connection failures

http-proxy [proxy server] [proxy port #]

In order to keep the configuration when rebooting the box, you must keep the environment variables in the /etc/environment









Check the domain names used in the /etc/hostsand add them if necessary in NO_PROXY and no_proxy.  

Some commands like apt-get, ability will not use the environment variables. So you will have to complete the 95proxies metrics in /etc/apt/apt.conf.d/

Acquire::http::proxy "";

Acquire::ftp::proxy "";

Acquire::https::proxy "";    

Restart the ServiceNav Box

You may also be interested in

Replace a ServiceNav Box Ubuntu 16.04 with a ServiceNav Box 4.17 Ubuntu 20.04


Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.