We would like to access Azure host(Public) through TMG.
1.Source Subnet is ok;
2.All outbound is enabled.
3.Azure host ip address is correct.
4.Installed TMG client application on laptop.
5.when we try to access the Azure host ip address, the error message is present.
6. Based on above information, i captured netmon trace on Laptop and found the clue. Is there anyone can let us know why this Connection refusedby TMG? Thanks.
1610:18:39 AM 9/3/20158.8922839mstsc.exeClientTMGTCPTCP:Flags=......S., SrcPort=56750, DstPort=1745, PayloadLen=0, Seq=2367321505, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192{TCP:5, IPv4:4}1710:18:39 AM 9/3/20158.8933019mstsc.exeTMGClientTCPTCP:Flags=...A..S., SrcPort=1745, DstPort=56750, PayloadLen=0, Seq=1323644357, Ack=2367321506, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152{TCP:5, IPv4:4}
1810:18:39 AM 9/3/20158.8935506mstsc.exeClientTMGTCPTCP:Flags=...A...., SrcPort=56750, DstPort=1745, PayloadLen=0, Seq=2367321506, Ack=1323644358, Win=257 (scale factor 0x8) = 65792{TCP:5, IPv4:4}
1910:18:39 AM 9/3/20158.9273484mstsc.exeClientTMGRWSRWS:Channel setup request (TMG compatible) for mstsc.exe as Steven_Song on PRCSGI1497L version 6.1.7601{RWS:6, TCP:5, IPv4:4}
2010:18:39 AM 9/3/20158.9285267mstsc.exeTMGClientRWSRWS:Channel setup response to mstsc.exe (TMG compatible), authentication not required; encryption not required{RWS:6, TCP:5, IPv4:4}
2110:18:39 AM 9/3/20158.9297390mstsc.exeClientTMGRWSRWS:{RWS:6, TCP:5, IPv4:4}
2210:18:39 AM 9/3/20158.9297390mstsc.exeClientTMGTCPTCP:[Continuation to #21]Flags=...AP..., SrcPort=56750, DstPort=1745, PayloadLen=399, Seq=2367322405 - 2367322804, Ack=1323644639, Win=256 (scale factor 0x8) = 65536{TCP:5, IPv4:4}
2310:18:39 AM 9/3/20158.9308009mstsc.exeTMGClientTCPTCP:Flags=...A...., SrcPort=1745, DstPort=56750, PayloadLen=0, Seq=1323644639, Ack=2367322804, Win=257 (scale factor 0x8) = 65792{TCP:5, IPv4:4}
2410:18:39 AM 9/3/20158.9308854mstsc.exeClientTMGRWSRWS:0x2 Connect v12 request from mstsc.exe to 40.113.157.119/3389; client will send from 10.158.129.2/56751{RWS:6, TCP:5, IPv4:4}
2510:18:39 AM 9/3/20158.9320289mstsc.exeTMGClientRWSRWS:0x2 Error to mstsc.exe for Connect v12(40.113.157.119); (10061); Connection refused{RWS:6, TCP:5, IPv4:4}
2710:18:39 AM 9/3/20159.1370816mstsc.exeClientTMGTCPTCP:Flags=...A...., SrcPort=56750, DstPort=1745, PayloadLen=0, Seq=2367323085, Ack=1323644920, Win=257 (scale factor 0x8) = 65792{TCP:5, IPv4:4}
Have a nice day!
Rgds
Steven