SOLVED

Local Media Optimization for Direct Routing _ firewall\transport relay question

%3CLINGO-SUB%20id%3D%22lingo-sub-1481183%22%20slang%3D%22en-US%22%3ELocal%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1481183%22%20slang%3D%22en-US%22%3E%3CP%3ELocal%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FP%3E%3CP%3EWhen%20a%20user%20is%20%22external%22%20ie%20not%20on%20the%20corporate%20network%3C%2FP%3E%3CP%3EDoes%20media%20always%20flow%20via%20the%20public%20IP%20of%20the%20SBC%3F%3C%2FP%3E%3CP%3EOR%20as%20per%20media%20bypass%20with%20Direct%20Routing%20_%20is%20it%20supported%20to%20route%20traffic%20via%20the%20transport%20relay%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reason%20for%20asking%20is%20looking%20at%20the%20firewall%20rules%20and%20talking%20to%20the%20digital%20security%20team%3C%2FP%3E%3CUL%3E%3CLI%3EAllowing%20traffic%20to%20the%20SBC%20just%20from%20MS%20is%20one%20thing%3C%2FLI%3E%3CLI%3EAllowing%20traffic%20to%20the%20SBC%20from%20any%20external%20is%20more%20interesting!%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIs%20there%20an%20example%20firewall%20rule%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20advice%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1481183%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1481487%22%20slang%3D%22en-US%22%3ERe%3A%20Local%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1481487%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F61235%22%20target%3D%22_blank%22%3E%40Alistair%20Keay%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20confuse%20Media%20Bypass%20with%20Local%20Media%20Optimization...%20The%20two%20items%20are%20technically%20separate%20and%20independent%20technologies%2C%20although%20they%20are%20complimentary%20in%20certain%20forms.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EDirect%20Routing%20with%20Media%20Bypass%20(No%20Upstream%20Firewall)%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20outside%20of%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%3C%2FLI%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20inside%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%3CUL%3E%3CLI%3EIn%20this%20flow%20scenario%20the%20SBC%20sees%20RTP%20traffic%20coming%20from%20your%26nbsp%3B%3CEM%3Eclient's%20NAT'd%26nbsp%3B%3C%2FEM%3Epublic%20IP%20address.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EDirect%20Routing%20with%20Media%20Bypass%20(Upstream%20Firewall%20Restricted%20to%20MSFT%20IPs)%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20outside%20of%20the%20corporate%20network%20would%20%3CSTRONG%3Enot%26nbsp%3B%3C%2FSTRONG%3Ebe%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%20Since%20the%20RTP%20flows%20are%20blocked%20the%20client%20must%20establish%20traffic%20to%20the%20MSFT%20Transport%20Relays%2C%20which%20then%20communicate%20with%20the%20SBC%20IP%20address.%3C%2FLI%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20inside%20the%20corporate%20network%20would%20%3CSTRONG%3Enot%26nbsp%3B%3C%2FSTRONG%3Ebe%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%20Since%20the%20RTP%20flows%20are%20blocked%20the%20client%20must%20establish%20traffic%20to%20the%20MSFT%20Transport%20Relays%2C%20which%20then%20communicate%20with%20the%20SBC%20IP%20address.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EDirect%20Routing%20with%20Media%20Bypass%20(Upstream%20Firewall%20but%20No%20Restrictions)%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20outside%20of%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%3C%2FLI%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20inside%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20directly%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%20public%20IP%20address.%3CUL%3E%3CLI%3EIn%20this%20flow%20scenario%20the%20SBC%20sees%20RTP%20traffic%20coming%20from%20your%26nbsp%3B%3CEM%3Eclient's%20NAT'd%26nbsp%3B%3C%2FEM%3Epublic%20IP%20address.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EDirect%20Routing%20with%20Local%20Media%20Optimization%20(No%20Firewall)%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20inside%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%26nbsp%3B%3CEM%3Einternal%3C%2FEM%3E%20IP%20address.%3CUL%3E%3CLI%3EIn%20this%20flow%20scenario%20the%20SBC%20sees%20traffic%20coming%20from%20your%26nbsp%3B%3CEM%3Eclient's%20internal%26nbsp%3B%3C%2FEM%3EIP%20address%20(likely%20RFC%201918).%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIn%20this%20scenario%20a%20Teams%20user%20that%20is%20outside%20of%20the%20corporate%20network%20would%20be%20able%20to%20send%2Freceive%20RTP%20packets%20to%20the%20IP%20address%20associated%20with%20the%20SBC%2C%20specially%20the%26nbsp%3Bpublic%26nbsp%3BIP%20address.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3ELMO%20removes%20the%20restriction%20of%26nbsp%3B%3CEM%3Einternal%26nbsp%3B%3C%2FEM%3Eusers%20having%20to%20send%20RTP%20streams%26nbsp%3B%3CEM%3Eexternally%3C%2FEM%3E%2C%20which%20was%20a%20requirement%20in%20a%20%22normal%22%20Direct%20Routing%20with%20Media%20Bypass%20configurations.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESBCs%20are%20voice-specific%20firewalls%20and%20when%20configured%20appropriately%2C%20exposing%20the%20SBC%20to%20the%20public%20Internet%20as%20a%20whole%20is%20not%20an%20issue.%20I%20generally%20don't%20recommend%20any%20level%20of%20firewall%20insertion%20or%20restrictions%20for%20Direct%20Routing%20unless%20there%20are%20extreme%20circumstances%20that%20require.%20The%20addition%20of%20the%20firewall%20not%20only%20could%20complicate%20troubleshooting%2C%20but%20adds%20a%20layer%20of%20complexity%20and%20potential%20latency%20if%20the%20firewall%20is%20wrongly%20configured%20for%20deep-packet%20inspection.%20Use%20the%20firewall%20ACLs%20on%20the%20SBCs%20themselves%2C%20if%20need%20be.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1481854%22%20slang%3D%22en-US%22%3ERe%3A%20Local%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1481854%22%20slang%3D%22en-US%22%3E%3CP%3Ethank%20you%20for%20the%20long%20reply.%3C%2FP%3E%3CP%3EHowever%20to%20be%20clear.%3CBR%20%2F%3E1.Are%20you%20saying%20that%20the%20only%20media%20path%20with%20lmo%2C%20for%20an%20external%20client%20is%20to%20the%20public%20ip%20of%20the%20sbc%3F%26nbsp%3B%3CBR%20%2F%3E2.%20Relay%20via%20the%20Teams%20transport%20relay%20is%20not%20supported%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EYour%20comments%20about%20exposing%20the%20sbc%20to%20the%20internet%20seem%20to%20be%20bold%2C%20but%20really%20I%20am%20only%20after%20clarification%20on%20the%20points%20above.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1481980%22%20slang%3D%22en-US%22%3ERe%3A%20Local%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1481980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F61235%22%20target%3D%22_blank%22%3E%40Alistair%20Keay%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELMO%20and%20media%20bypass%20are%26nbsp%3Bnot%20the%20same%20thing.%26nbsp%3BLMO%20only%20impacts%26nbsp%3B%3CEM%3Einternal%26nbsp%3B%3C%2FEM%3Eclients%20and%20is%20only%20applicable%20when%20the%20Direct%20Routing%20components%20%26amp%3B%20SBC%20are%20configured%20to%20support%20LMO.%20The%20addition%20of%20LMO%20does%20not%20change%20any%20RTP%20flows%20for%20external%20clients%20since%20it%20is%20not%20applicable%20to%20that%20topology.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegardless%20of%20media%20bypass%20configuration%2C%20LMO%20configuration%2C%20and%20client%20location%20(internal%20vs%20external)%2C%20Transport%20Relays%20are%20%3CU%3Ealways%3C%2FU%3E%20an%20available%20path%20for%20RTP%20streams%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-plan-media-bypass%23call-flow-and-firewall-planning%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-plan-media-bypass%23call-flow-and-firewall-planning%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmicrosoft-teams-online-call-flows%23call-flows-in-various-topologies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmicrosoft-teams-online-call-flows%23call-flows-in-various-topologies%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1695392%22%20slang%3D%22en-US%22%3ERe%3A%20Local%20Media%20Optimization%20for%20Direct%20Routing%20_%20firewall%5Ctransport%20relay%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1695392%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84875%22%20target%3D%22_blank%22%3E%40Trevor%20Miller%3C%2FA%3E%26nbsp%3Bdo%20you%20know%20where%20the%20Transport%20Relays%20are%20located%3F%20I'm%20trying%20to%20find%20a%20list%20from%20Microsoft%20of%20the%20TRAP%20geo%20locations%20but%20drawing%20a%20blank.%20We're%20deploying%20Teams%20DR%20in%20South%20America%20(Uruguay)%20and%20hitting%20US%20East%20%26amp%3B%20West%20Media%20Processors.%20About%20to%20enable%20bypass%2C%20but%20wanted%20to%20know%20where%20our%20calls%20could%20hit.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Local Media Optimization for Direct Routing _ firewall\transport relay question

When a user is "external" ie not on the corporate network

Does media always flow via the public IP of the SBC?

OR as per media bypass with Direct Routing _ is it supported to route traffic via the transport relay?

 

The reason for asking is looking at the firewall rules and talking to the digital security team

  • Allowing traffic to the SBC just from MS is one thing
  • Allowing traffic to the SBC from any external is more interesting!

Is there an example firewall rule for this?

 

Any advice welcome

4 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

@Alistair Keay 

Don't confuse Media Bypass with Local Media Optimization... The two items are technically separate and independent technologies, although they are complimentary in certain forms.

 

Direct Routing with Media Bypass (No Upstream Firewall)

  • In this scenario a Teams user that is outside of the corporate network would be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address.
  • In this scenario a Teams user that is inside the corporate network would be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address.
    • In this flow scenario the SBC sees RTP traffic coming from your client's NAT'd public IP address.

Direct Routing with Media Bypass (Upstream Firewall Restricted to MSFT IPs)

  • In this scenario a Teams user that is outside of the corporate network would not be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address. Since the RTP flows are blocked the client must establish traffic to the MSFT Transport Relays, which then communicate with the SBC IP address.
  • In this scenario a Teams user that is inside the corporate network would not be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address. Since the RTP flows are blocked the client must establish traffic to the MSFT Transport Relays, which then communicate with the SBC IP address.

Direct Routing with Media Bypass (Upstream Firewall but No Restrictions)

  • In this scenario a Teams user that is outside of the corporate network would be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address.
  • In this scenario a Teams user that is inside the corporate network would be able to send/receive RTP packets directly to the IP address associated with the SBC, specially the public IP address.
    • In this flow scenario the SBC sees RTP traffic coming from your client's NAT'd public IP address.

Direct Routing with Local Media Optimization (No Firewall)

  • In this scenario a Teams user that is inside the corporate network would be able to send/receive RTP packets to the IP address associated with the SBC, specially the internal IP address.
    • In this flow scenario the SBC sees traffic coming from your client's internal IP address (likely RFC 1918).
  • In this scenario a Teams user that is outside of the corporate network would be able to send/receive RTP packets to the IP address associated with the SBC, specially the public IP address.

LMO removes the restriction of internal users having to send RTP streams externally, which was a requirement in a "normal" Direct Routing with Media Bypass configurations.

 

SBCs are voice-specific firewalls and when configured appropriately, exposing the SBC to the public Internet as a whole is not an issue. I generally don't recommend any level of firewall insertion or restrictions for Direct Routing unless there are extreme circumstances that require. The addition of the firewall not only could complicate troubleshooting, but adds a layer of complexity and potential latency if the firewall is wrongly configured for deep-packet inspection. Use the firewall ACLs on the SBCs themselves, if need be.

 

Highlighted

thank you for the long reply.

However to be clear.
1.Are you saying that the only media path with lmo, for an external client is to the public ip of the sbc? 
2. Relay via the Teams transport relay is not supported?

Your comments about exposing the sbc to the internet seem to be bold, but really I am only after clarification on the points above.

 

Highlighted

@Alistair Keay 

LMO and media bypass are not the same thing. LMO only impacts internal clients and is only applicable when the Direct Routing components & SBC are configured to support LMO. The addition of LMO does not change any RTP flows for external clients since it is not applicable to that topology.

 

Regardless of media bypass configuration, LMO configuration, and client location (internal vs external), Transport Relays are always an available path for RTP streams:

 

https://docs.microsoft.com/en-us/microsoftteams/direct-routing-plan-media-bypass#call-flow-and-firew...

 

https://docs.microsoft.com/en-us/microsoftteams/microsoft-teams-online-call-flows#call-flows-in-vari...

Highlighted

@Trevor Miller do you know where the Transport Relays are located? I'm trying to find a list from Microsoft of the TRAP geo locations but drawing a blank. We're deploying Teams DR in South America (Uruguay) and hitting US East & West Media Processors. About to enable bypass, but wanted to know where our calls could hit.