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:
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
set proxy my.proxy.com
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.
Configuration file editing
After you have stopped the services, navigate to the following directory:
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” />
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:
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:
<proxy proxyaddress=”http://my.proxy.com:port” usesystemdefault=”true” /> </defaultProxy>
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
Finally lets sum up what has to be done in order to make Veeam for Office 365 work with a HTTP proxy.
- Set your proxy via “netsh” and “winhttp” on all VBO infrastucture servers
- On your Veeam Backup for Office 365 server, edit the “Config.xml” located in %ProgramData%\Veeam\Backup365 to use the system http proxy.
- 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.
- 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.
- 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 !