We currently are trying to publish Server 2012 r2 rdweb through TMG. We get to the point of launching an app, and get the message stating that your computer cannot connect to the remote computer, because the remote desktop gateway is temporarily unavailable. The solution works fine internally, so we suspect it has something to do with TMG. We get 3 denials when logging traffic:
1)
Log type: Web Proxy (Reverse)
Status: 12302 The server denied the specified Uniform Resource Locator (URL). Contact the server administrator.
Source: 111.111.111.111:63206
Destination: 222.222.222.222:443
Request: RDG_OUT_DATA http://url.domain.com/remoteDesktopGateway/
Filter information: Req ID: 0dcaf420; Compression: client=No, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=no, valid=no, updated=no, logged off=no, client type=unknown, user activity=yes
Protocol: https
User: anonymous
2)
Log type: Web Proxy (Reverse)
Status: 12302 The server denied the specified Uniform Resource Locator (URL). Contact the server administrator.
Source: 111.111.111.111:63206
Destination: 222.222.222.222:443
Request: RPC_IN_DATA http://url.domain.com/rpc/rpcproxy.dll?localhost:3388
Filter information: Req ID: 0dcaf423; Compression: client=No, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=no, valid=no, updated=no, logged off=no, client type=unknown, user activity=yes
Protocol: https
User: anonymous
3)
Log type: Web Proxy (Reverse)
Status: 12302 The server denied the specified Uniform Resource Locator (URL). Contact the server administrator.
Source: 111.111.111.111:63206
Destination: 222.222.222.222:443
Request: RPC_OUT_DATA http://url.domain.com/rpc/rpcproxy.dll?localhost:3388
Filter information: Req ID: 0dcaf427; Compression: client=No, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=no, valid=no, updated=no, logged off=no, client type=unknown, user activity=yes
Protocol: https
User: anonymous
We also have a 2008 R2 server published (using different URL's, Listerners, rules, etc...) which works perfectly fine.