I think I have a noob setup as I'm very new to this. We have a physical server which has 3 VMs on it(AD,Exchange,Lync). Now the task is to be able to login using a non domain client computer(which i have completed already) and to be able to login using phones. Both are on corporate network only(the server does not have internet access, as of now). Upon researching, to be able to have a Lync account on mobile phones I need to setup a reverse proxy. I checked if I can still add another VM for the reverse proxy but my colleague says it can't handle another VM as the physical server(which he built) does not have much resources in it. So what i did is i get a test laptop and installed windows server 2012 r2 on it. After configurations on that server laptop, I have installed IIS and used web installer to install ARR. after installation I followed everything that I've researched on how to setup reverse proxy for lync.
I tested and the account was able to login(without doing anything yet to DNS, lync server, etc.) but it is disconnecting after send a message. So this time i checked some configurations on the oother components. I have noticed that the external web service FQDN is the same as the internal web service FQDN and as well as the FQDN of the Lync server(win-lync.domain.com). So what i did is to edit the configurations on topology builder for external web service FQDN and set is as externalweblync.domain.com. I go to DNS and created A record for the external web services and resolve it first on the lync server IP address. I requested and assign a new certificate in line with the new external services FQDN and bind it to the IIS server(laptop). I deleted the old configurations on ARR and created a new one with the new external web service FQDN. I tested and it says error occured on lync.
I only have 1 interface on IIS server(laptop) so I what i did is go to DNS and resolve external web service, lyncdiscover, lyncdiscoverintenal to the ipaddress of the IIS server. Upon checking it is now giving me an unknown error occurred in lync. I checked and i can open all simple urls on my test mobile fone but having an error for lyncdiscover url. It says server error 502-web server received an invalid response while acting as a gateway or proxy server.
I'm thinking that the reason why im not able to login successfully is because i cannot open lyncdiscover url on my phone. Even on the IIS ARR server I'm not able to successfully get that downloadable file from lyncdiscover url.
I checked and remove all the rules on IIS and recreated them again. Now it is able to login and gets connected. Upon testing, it gives me an error: Failed to process the server request. It only happens when i send or receive a message. I tried doing nothing and it stayed connected without interruption. Once i tried to send and receive again it will again throw me the same error. Can you help me please. Thank you.