Documentation

Setting up a proxy on a ServiceNav Box

On the page

Do you need help?

Context

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

Access to the outside world requires going through a proxy with or without authentication.

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.

Proxy without authentication

System configuration

1 - Set the environment variables, run the following commands:

export http_proxy=http://:

export https_proxy=http://:

2 - Edit the file /etc/apt/apt.conf.d/95proxies and complete it according to your environment:

Acquire::https::proxy "http://:/";
Acquire::http::proxy "http://:/";
Acquire::ftp::proxy "ftp://:/";

3 - Edit the file /etc/environment and complete it according to your environment:
Check the domain names used in the /etc/hostsand add them if necessary in NO_PROXY and no_proxy.

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/snap/bin"
http_proxy=http://:/
https_proxy=http://:/
ftp_proxy=http://:/
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"
HTTP_PROXY=http://:/
HTTPS_PROXY=http://:/
FTP_PROXY=http://:/
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"

4 - Edit the file /etc/sysconfig/nagios and complete it according to your environment:
Check the domain names used in the /etc/hostsand add them if necessary in NO_PROXY and no_proxy. 
Under the text block already present in the file, add :

export http_proxy=http://:/
export https_proxy=http://:/
export ftp_proxy=http://:/
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"
export HTTP_PROXY=http://:/
export HTTPS_PROXY=http://:/
export FTP_PROXY=http://:/
export NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"

OpenVPN Configuration

Edit the file /etc/openvpn/client.conf.
Uncomment lines 73 and 74 and complete them according to your environment:

http-proxy-retry
http-proxy

Follow the documentation : Commissioning of a ServiceNav Box | ServiceNav (coservit.com)

Proxy with authentication

System configuration

1 - Set the environment variables, run the following commands:

export http_proxy=http://:

export https_proxy=http://:

2 - Edit the file /etc/apt/apt.conf.d/95proxies and complete it according to your environment:

Acquire::https::proxy "http://:@:/";
Acquire::http::proxy "http://:@:/";
Acquire::ftp::proxy "ftp://:@:/";

3 - Edit the file /etc/environment and complete it according to your environment:
Check the domain names used in the /etc/hostsand add them if necessary in NO_PROXY and no_proxy.  

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/snap/bin"
http_proxy=http://:@:/
https_proxy=http://:@:/
ftp_proxy=http://:@:/
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"
HTTP_PROXY=http://:@:/
HTTPS_PROXY=http://:@:/
FTP_PROXY=http://:@:/
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"

4 - Edit the file /etc/sysconfig/nagios and complete it according to your environment:
Under the text block already present in the file, add :
Check the domain names used in the /etc/hostsand add them if necessary in NO_PROXY and no_proxy.  

export http_proxy=http://:@:/
export https_proxy=http://:@:/
export ftp_proxy=http://:@:/
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"
export HTTP_PROXY=http://:@:/
export HTTPS_PROXY=http://:@:/
export FTP_PROXY=http://:@:/
export NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,.loc"

OpenVPN Configuration

1 - Set the environment variables, run the following commands:

export proxy_user=<user>

export proxy_password=

2 - Create a file that will contain the proxy connection credentials to be used by the OpenVPN client.

vim /etc/openvpn/proxy.auth

File content:

<user>
<password>

3 - From the literature: Commissioning of a ServiceNav Box | ServiceNav (coservit.com)run the script vsb_installation.pl.

4 - Edit the file /etc/openvpn/client.conf
Uncomment lines 73 and 74 and complete them according to your environment:

http-proxy-retry
http-proxy /etc/openvpn/proxy.auth basic

5 - Restart the OpenVPN service.

service openvpn restart

6 - 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

en_GB

Our next events

Our upcoming webinars

Our Previous Webinars

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
We will never sell or share your personal data with third parties. 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

We will never sell or share your personal data with third parties. You have taken note of our privacy policy.