Veeam Backup for Office 365 through HTTP Proxies

I recently came across the case, to use Veeam Backup for Office 365 with a HTTP Proxy. Due to a corporate security policy there was no way around it.

Fortunately there is a Veeam Knowledge Base article for configuring Veeam Backup for Office 365 with a HTTP Proxy. In this article, I am going to show you how to configure it based on this KB article:

https://www.veeam.com/kb2703

Please keep in mind, that currently only non-transparent proxies without user authentication are supported.

To achieve the communication through a HTTP Proxy there are some required configuration steps to do.

Set the proxy via netsh

Before editing any configuration files, we need to correctly set the proxy on the Windows Server. Be sure to set this on all servers which have the Veeam Office 365 proxy role in your environment. Meaning, if you have remote Veeam Office 365 proxies, repeat this step for them as well.

Start an elevated cmd

Once the cmd is open set your HTTP proxy with the following commands

netsh
winhttp
set proxy my.proxy.com
netsh_set_proxy

After you have set the HTTP proxy address on all your Veeam Proxy servers, we need to proceed with some config files.

The next steps are taken on your Veeam Office 365 server. First of all, double check that no Backup or Restore Jobs are running. Once you checked this, stop the “Veeam, Backup for Microsoft Office 365” Service and the “Veeam Backup Proxy for Microsoft Office 365” Service.

stop_vbo_proxy
stop_vbo_o365

Configuration file editing

After you have stopped the services, navigate to the following directory:

%ProgramData%\Veeam\Backup365

edit_config_files

Now you will need to edit the “Config.xml” and the “Proxy.xml”. For telling Veeam to use the system proxy, you need to add the following line
under the <Veeam> and above the <Archiver> section.

<Ews UseSystemProxy=”True” />

Edited “Config.xml”

config_xml

Edited “Proxy.xml”

proxy_xml

Important:

If you have several remote Office 365 Proxies definied in your Veeam infrastructure, make sure you repeat the “editing” of the “Proxy.xml” on each Veeam Proxy Server !

After editing the .xml files we will need to edit the .exe.config files located in:

%ProgramFiles%\Veeam\Backup365

exe_configs

In fact you need to edit the “Veeam.Archiver.Service.exe.config” and the “Veeam.Archiver.Proxy.exe.config”.

Add the following lines under the </configuration> section:

<system.net>
<defaultProxy>
<proxy proxyaddress=”http://my.proxy.com:port” usesystemdefault=”true” /> </defaultProxy>
</system.net>

Edited “Veeam.Archiver.Service.exe.config

service_exe_config

Edited “Veeam.Archiver.Proxy.exe.config”

proxy_exe_config

Important:

Again, if you have several remote Office 365 Proxies definied in your Veeam infrastructure, make sure you repeat the “editing” of the “Veeam.Archiver.Proxy.exe.config” on each Veeam Proxy Server ! On a dedicated Veeam Office 365 Proxy, the “Veeam.Archiver.Proxy.exe.config” will be located in %WinDir%\Veeam\Backup365Proxy

Summary

Finally lets sum up what has to be done in order to make Veeam for Office 365 work with a HTTP proxy.

  1. Set your proxy via “netsh” and “winhttp” on all VBO infrastucture servers
  2. On your Veeam Backup for Office 365 server, edit the “Config.xml” located in %ProgramData%\Veeam\Backup365 to use the system http proxy.
  3. On all your Veeam Backup for Office 365 Proxy servers edit the “Proxy.xml” located in %ProgramData%\Veeam\Backup365 to use the system http proxy.
  4. On your Veeam Backup for Office 365 server , edit the “Veeam.Archiver.Service.exe.config” and “Veeam.Archiver.Proxy.exe.config” files located in %ProgramFiles%\Veeam\Backup365 to use your http proxy.
  5. On all your remote Veeam Backup for Office 365 Proxy servers edit the “Veeam.Archiver.Proxy.exe.config” file located in %WinDir%\Veeam\Backup365Proxy to use your http proxy.

I hope i could give you an overview on what to do for using Veeam Backup for Microsoft Office 365 through a HTTP proxy.

As always, thanks for reading and have a nice day !


About Falko Banaszak

Falko is a Consulting Field Solutions Architect for Modern Data Protection based in Germany working at Pure Storage Inc. In the last 12 years he has built a strong focus on virtualization, BCDR and has a passion for Microsoft 365 & storage systems. He's a Veeam Vanguard, a Veeam Certified Engineer, Veeam Certified Architect and a Veeam User Group founder and leader in Germany.

Check Also

VeeamON 2023 Register

VeeamON 2023

VeeamON 2023 is happening from May 22 to May 25 live in Miami or online! …

Leave a Reply

Your email address will not be published. Required fields are marked *