AADSYNC e proxy issue

Are you going to install AADSYNC behind a proxy?

Well, you need to do two things:

  1. Configure your proxy server to get some office 365 URLs in anonymous (no authentication)
  2. Configure AADSYNC to use proxy server

Configure your proxy server

Configure proxy server as indicate in this URL Office 365 URLs and IP address ranges:

https://technet.microsoft.com/en-us/library/hh373144.aspx

Configure AADSYNC

You have to configure proxy settings on internet explorer for service user, you can do that in this way:
runas /user:domain\serviceuser "control.exe inetcpl.cpl"

If you continue to have problem after configure Internet Explorer then you must configure machine.config in .NET45 Framework
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Add this section to bottom of file, be aware it's case sensitive:

<system.net>

<defaultProxy>

<proxy usesystemdefault="true" proxyaddress="https://proxy-ip:80" bypassonlocal="true" />

</defaultProxy>

</system.net>