Use Traffic Steering to Forward Internet-Bound Traffic to
Use traffic steering and default routing to steer internet-bound traffic to specific service connections.
Prisma Access allows you to create traffic steering rules to specify targets for internet-bound traffic from mobile users and remote network connections. You can specify the traffic to be redirected to a service connection before sending to the internet, or you can specify the traffic to directly egress to the internet. This functionality is known as
Alternatively, you can configure Prisma Access to accept a default route from your CPE to Prisma Access so that Prisma Access forwards internet-bound mobile user traffic to the best service connection in your deployment.
The following sections provide an overview of default routes and traffic steering, as well as the steps you take to configure it.
Use Prisma Access’ default route capability to accept default routes being advertised from your CPE to service connections. You can use BGP or static routes to advertise the default route. Prisma Access uses BGP to advertise these routes over multiple service connections, which allows Prisma Access to route mobile user traffic through the best service connection for a given mobile user location. To enable service connections to accept default routes, specify
Accept Default Route over Service Connectionswhen you configure global settings for service connections.
After you enable default routes, your internet-bound traffic will be steered to service connections instead of egressing from the mobile user locations. This functionality can be useful if you want to redirect internet-bound traffic to the data center; for example, if you have a third-party security stack in your data center and you want the stack to perform additional screening or inspection.
Use the following guidelines when implementing default routes:
- Default routes apply to mobile user deployments only; remote network connections operate normally with no change when you enable default routes.
- You do not need to specify target service connections or traffic steering rules when you allow default routes, although they are supported for use with default routes. See Traffic Steering Examples for examples of using default routes with traffic steering.
- When you specify theAccept Default Route over Service Connectionssetting, all Prisma Access service connections, with the exception of dedicated service connections, accept default routes and will use the routes in traffic steering decisions.
- Before you enable this setting, make sure that your data centers are sending default routes; otherwise, routing through service connections will fail.
- Palo Alto Networks recommends that all data centers advertise a default route; when Prisma Access receives the routes, it can then select the best service connection to use for the remote network location.
- When you create service connections, use either static routes only or BGP only for the connections. Palo Alto Networks does not recommend mixing service connections that use BGP and static routes when using default routes.
- Prisma Access does not forward Clientless VPN, portal, or gateway SAML authentication traffic to a public identity provider (IdP) using the default route.
For more information and examples of implementing default routes with traffic steering, see Traffic Steering Examples.
In standard Prisma Access deployments, a service connection provides access to internal network resources, such as authentication services and private apps in your headquarters or data center. Service connections process internal traffic, where no internet access is required. In some cases, you might want to redirect internet-bound traffic to the data center. Traffic steering allows you to redirect mobile user or remote network traffic to a service connection before being sent to the internet.
You can use traffic steering with mobile user deployments, remote network deployments, or a combination of both. Use traffic steering to direct internet-bound network traffic based on many criteria including IP addresses, Custom URL categories, service type (HTTP or HTTPS), User-ID, Dynamic Address Groups (DAGs) and IP-based External Dynamic Lists (EDLs).
There are two action types supported with traffic steering:
- Forward to the target—Use the criteria in traffic steering rules to forward internet-bound traffic through a target you create that uses one or more service connections.
- Forward to the internet—Use the criteria in traffic steering rules to directly forward traffic from its source (mobile user location or remote network connection) to the internet, without being forwarded to a service connection.
If you forward to a target, you can choose to create two types of target groups: dedicated and non-dedicated.
- A service connection that is used only for traffic steering-related traffic is adedicated service connection. To set a service connection to be used as a dedicated service connection, selectDedicated for Traffic Steering Onlywhen you configure traffic steering in Panorama.You might want to configure a dedicated service connection if you use a third-party security stack that is outside of your organization’s internal network to process traffic before it is sent to a public SaaS application or the internet. Because the security stack is not a part of your organization’s network, you don’t want this service connection to process any internal network traffic.
- A service connection that is used for traffic steering and for standard service connection-related traffic (such as traffic going to an authentication server in the data center) is anon-dedicated service connection.
Setting a service connection as a dedicated service connection causes the following changes to your deployment:
- Service connections that are configured as dedicated service connections do not participate in BGP routing, either internally or externally.
- If your dedicated service connection uses BGP, the BGP status shows asNot Enabledwhen you open the status page (), select a region, then select the Status tab. To check the BGP status of a service connection, check the service connections configuration page (PanoramaCloud ServiceStatusMonitorService Connection).PanoramaCloud ServicesConfigurationService Connection
- By default, the service connections apply source NAT to the forwarded traffic. The source IP address is theUser-ID Agent Addressof the service connection (), which is taken from the Infrastructure Subnet (PanoramaCloud ServicesStatusNetwork DetailsService ConnectionUser-ID Agent Address).PanoramaCloud ServicesStatusNetwork DetailsService InfrastructureYou can disable source NAT and use your organization’s source IP addresses for the dedicated service connection; to do so, selectDisable Source NAT for Dedicated SCwhen youAdda target in theTarget Service Connections for Traffic Steeringarea.
Traffic Steering Requirements
Before you implement traffic steering in your Prisma Access deployment, make sure that your network environment has the following infrastructure requirements:
- Prisma Access must be able to connect to the IPSec-capable CPE (such as a router or SD-WAN device) that your organization uses to terminate the service connection, and the IP address for the device must be reachable from Prisma Access.You create a service connection using standard IPSec and IKE cryptographic profiles between the stack location and Prisma Access. You can use static routes, BGP, or a combination or both when you create a service connection and use traffic steering. If you use default routes with traffic steering, Palo Alto Networks recommends that you use either BGP only or static routes only. If you use static routing, specify the public IP address used by the organization’s CPE as thePeer Addresswhen you create an IKE gateway.
- Prisma Access might not match the first few packets of a URL from a URL category in a traffic steering rule, which means that the first few packets of a network session (for example, a TCP handshake) might not match the rule. Palo Alto Networks recommends that, for URLs you use in traffic steering rules, you create a security policy rule to allow them through the Untrust zone so that the handshake can complete when a new session begins.
- If you are using this configuration with a security stack, the stack location must be reachable from the service connection by a standard IPSec tunnel configuration.
Use the following guidelines when configuring traffic steering:
- Prisma Access prepends an asterisk to URLs in custom URL categories, if you use this category in a traffic steering rule. If you use the same URL category policies for both traffic steering and other security policy rules, these changes apply to both the traffic steering rules and other security policy rules.If you have custom URL categories that are not used in traffic steering rules, Prisma Access does not change the URLs in those categories.
- Use all lower-case URLs when you enter URLs in a custom URL category.
- You can configure a maximum of 100 traffic steering rules.
- If you have primary and backup tunnels configured, traffic steering using traffic steering rules will not work after a failover from the primary (active) to the backup tunnel. Default routing works in a failover scenario with primary and backup tunnels.
Traffic Steering Examples
The following sections describes different types of traffic steering deployments.
Default Route Example
The following example shows a sample Prisma Access deployment the following components:
- Two Prisma Access mobile user locations; one in the United States (US) and one in Europe (EU).
- Two Prisma Access service connections; one in the US and one in the EU, with both data centers sending default routes to the service connections (Accept Default Route over Service Connectionsis enabled).
- Two data centers; one in the US and one in the EU.Each data center has a 3rd-party security stack; for this reason, you want all internet-bound traffic to go through the data center before egressing to the internet.
When a mobile user sends data center traffic, Prisma Access checks its routing tables, determines the closest service connection, and forwards the traffic to that service connection. In the following example, Prisma Access sends data center traffic from the mobile users in the US to Service Connection and traffic from the mobile users in the EU to Service Connection 2.
Use non-dedicated service connections with default routes; dedicated service connections do not participate in BGP routing, so they cannot receive BGP advertisements from the HQ or data center.
To enable default routes, select
Accept Default Route over Service Connectionswhen you configure traffic steering settings. After you configure this setting and commit and push your changes, Prisma Access sends internet-bound traffic over the service connections.
Default Routes with Traffic Steering Direct to Internet Example
The following example shows you using more granular control for external SaaS application-bound traffic. In this case, you want to send Office 365 traffic to egress to the internet directly from the mobile user location, instead of sending it to the data center for further processing. Use traffic steering along with default routes for this configuration.
To allow Prisma Access to route Office 365 traffic directly to the internet, perform the following actions:
This configuration sends Office 365 traffic directly to the internet, while other internet-bound traffic is sent to the data center for further processing before egressing to the internet.
Default Routes with Traffic Steering and Dedicated Service
In this example, in addition to the previous configuration, you have a third-party internet security service, and you want to send traffic from box.com to be processed by the security service before egressing to the internet. You do not want to send any other internet-bound traffic to the security service; for this reason, you create a dedicated service connection for the box.com traffic. After your configuration is complete, Prisma Access sends *.box.com destination traffic to the stack.
To enable this deployment, you perform the following actions in the Traffic Steering tab:
- Create a Target Service Connection group that assigns one or more service connections to the target and selectDedicated for Traffic Steering Only, which makes the target service connection or connections dedicated.If you create a target with more than one service connection, Prisma Access chooses the best service connection to forward the internet-bound traffic.
- Create a traffic steering rule that forwards traffic to the URL. The following screenshot shows the traffic destination being assigned a custom URL category that contains the URL *.box.com.
- Create anActionin the traffic steering rule ofForward to the targetand specify the target group name you created (dedicatedin this case).
Traffic Steering Rule Guidelines
Traffic steering can process a wide variety of possible configurations; however, it is important to understand how Prisma Access processes rules, so you can create rules are easy to maintain and manage. To help you create the rules that work best for your deployment, follow these guidelines:
- Prisma Access evaluates rules in the order that you create them (from top to bottom). Specify more specific rules at the top and more general rules at the bottom.
- Palo Alto Networks recommends that you create multiple rules with fewer matching criteria, instead of creating fewer rules with multiple types of criteria. Creating simpler rules both speeds up rule creation and makes it easier to modify a rule.
- Since you cannot move a rule up or down in a list after you create it, carefully plan your rule order before you create the rules.
- Rules that specifyAnysource address and User,Anysource destination and URL Category, andAnyservice are not supported. Use more specific rules; for example, specify a rule withAnysource or destination traffic and a service ofservice-httpandservice-https.
- If you are going to specify rules for users in theSource Userfield, make sure that Prisma Access can distinguish between users if the same username is shared between users who authenticate locally and users who authenticate using LDAP by authenticating LDAP users in the format ofdomain/usernameand authenticating local users in the format ofusername(without the domain name).
- If you have configured an on-premises next-generation firewall as a master device, you can auto-populate user and group information for mobile user device groups in traffic steering and security policy rules by selecting, clicking the gear icon to edit the Settings, and selecting thePanoramaCloud ServicesConfigurationMobile UsersMaster Devicein the Device Group area. While this populates the master device in every device group, it only populates the user and group information for mobile users in security policy rules.
- If an EDL (type IP List) is used in a Traffic Steering Rule, and the EDL source URL of the EDL is updated to a URL that is not accessible, Prisma Access may continue to use the cached IP list from the previous URL.
- Prisma Access bypasses Traffic Steering for rules with a service type of HTTP or HTTPS if you use an application override policy for TCP ports 80 and 443.In addition, traffic steering does not work for URLs from URL categories referenced in the traffic steering rule if you have configured an application override policy for TCP ports 80 or 443.
- You can specify destination IP addresses and URL categories in the same rule. If you do, Prisma Access uses a logical OR to process the destination criteria in the rule, but processes the URLs and URL category traffic based on TCP ports 80 and 8080 for HTTP and TCP port 443 for HTTPS.For a rule with IP addresses and URL categories, traffic matches the rule if either the IP address or the URL category matches, but processes the URL category traffic based on ports 80, 443, and 8080 only. Palo Alto Networks does not recommend creating a rule of this type; instead, create simpler rules.
For example, you want to enforce the following rules for your network traffic:
- You have an internal HTTP server with an IP address of 10.1.1.1 in the data center, and you want to direct internal HTTP and HTTPS traffic to this server. The IP address of the server is 10.1.1.1.Traffic to this server should not go to the internet and should be processed internally; therefore, choose a non-dedicated target for this traffic, because this type of target processes both internal and internet-bound traffic.
- You want office365.com traffic to be routed directly to the internet.
- You want traffic from *.example.com or any traffic defined in a custom URL category ofcustom-social-networkingto be routed to a dedicated connection.
- You want any other HTTP and HTTPS traffic to use the same non-dedicated service connection target as that used for the internal HTTP server.
For this example, create the rules from the most specific to the least specific, as shown in the following screenshot. Do not add the rule that allows all HTTP and HTTPS traffic first, or Prisma Access would direct all HTTP and HTTPS traffic to the non-dedicated connection without evaluating any of the other rules.
Zone Mapping and Security Policies for Dedicated Connections
If you create a target that uses a dedicated service connection, the zone for the dedicated service connection changes from
Untrust(non-dedicated service connection targets do not change their zones). Since you cannot create zones or configure zone mapping for service connections, you make zone mapping and security policy changes for dedicated service connections to the mobile users and device groups instead. Complete the following steps to configure zone mapping for dedicated connections.
These steps show a sample configuration; you can tailor this example to suit your deployment.
- Select the correctTemplatefrom the drop-down list (eitherMobile_User_Templatefor mobile users orRemote_Network_Templatefor remote networks).If you have a mobile user and a remote network deployment, you need to perform these steps twice; once in theMobile_User_Templateand once in theRemote_Network_Template.
- Addtwo zones for your trusted and untrusted zones.This example creates two zones calledTrustandUntrust.
- Create default policies for the zones you created.
- Select.PoliciesSecurityPost Rules
- Select the correctDevice Groupfrom the drop-down list (eitherMobile_User_Device_Groupfor remote networks orRemote_Network_Device_Groupfor mobile users).If you have a mobile user and remote network deployment, you need to perform these steps twice; once in theMobile_User_Device_Groupand once in theRemote_Network_Device_Group.
- Adda default policy to use for Trust zone-to-Trust zone traffic.This policy allowsAnytraffic to pass for allSource,User,Destination,Application, andService/URL Categorytraffic.
- Adda default policy to use for Trust zone-to-Untrust zone traffic, using the same parameters you used for the Trust-to-Trust policy.When complete, you have two security policies, one for Trust-to-Trust traffic and one for Trust-to-Untrust traffic.
- Define Zone Mapping for the remote networks, mobile users, or both, as required for your deployment.
- Set the zone mapping for the remote networks, mobile users, or both.
- For mobile users, select.PanoramaCloud ServicesConfigurationMobile Users
- For remote networks, select.PanoramaCloud ServicesConfigurationRemote Networks
- Click the gear icon next toZone Mappingto edit the settings.
- Set theZone Mappingfor your deployment, moving the zone for trusted traffic to theTrusted Zonesand the zone for untrusted traffic to theUntrusted Zones; then, clickOK.
Configure Traffic Steering
Configure traffic steering for your deployment by completing the following steps.
- Select.PanoramaCloud ServicesConfigurationTraffic Steering
- (Optional, mobile user deployments only) Allow Prisma Access to accept and install the default route advertised over one or more service connections from the CPE by clicking the gear icon to open the Settings and selectingAccept Default Route over Service Connections.Default routes have specific guidelines that you must follow when using them; for example, default routes are supported for mobile user deployments only and have no effect on remote network deployments. Be sure to review these guidelines before implementing default routes with traffic steering.
- (Optional) Create a target group and assign a service connection to it.
- In theTarget Service Connections for Traffic Steeringarea,Adda group and give it aGroup Name.
- AddaTargetfor the traffic, specifying theService Connectionto use with the target; then, clickOK.Palo Alto Networks does not recommend using multiple service connections (whether dedicated or non-dedicated) in a target service connection group that is referenced in a traffic steering rule. In addition, a given service connection can only exist in one target and you cannot add a single service connection to two different targets.
- Choose whether to make the service connections associated with this target a dedicated service connection.
- You can use a dedicated service connection to steer traffic to a third-party security stack or cloud that is not on your premises and does not need to participate in routing. To set a service connection to be used as a dedicated service connection, selectDedicated for Traffic Steering Only.
- DeselectDedicated for Traffic Steering Onlyif you will send both normal service connection-related and traffic steering traffic through the service connection; with this choice, the zone for the service connection remains as Trust.
- Choose whether to enable or disable source NAT.To disable source NAT for Dedicated service connections, selectDisable Source NAT for Dedicated SC. Source NAT is enabled by default (the check box is deselected).If you disable source NAT, Prisma Access uses your organization’s source IP addresses for the dedicated service connection. If you enable source NAT, Prisma Access uses theEBGP Routeraddress of the service connection () as the source IP address, even after the traffic egresses from the dedicated service connection.PanoramaCloud ServicesStatusNetwork DetailsService ConnectionEBGP Router
- Create rules for the target you created and apply them to the target.
- In theTraffic Steering Rulesarea,Adda traffic steering rule.
- in theGeneraltab,Namethe traffic steering rule.
- In theSourcetab, specify rules for source traffic.
If you use address objects, DAGs, EDLs, users, or user groups, specify them asSharedto share them with all device groups in Prisma Access. In addition, do not enter 0.0.0.0/0 in address objects, DAGs, or EDLs; instead, enter 0.0.0.0/0 directly in the rule.Prisma Access automatically populates users from the mobile users device group only.
- In theSource Addressfield, specify one or more of the following objects, or selectAnyto have traffic from any source go to this target:
- In theSource Userfield, specify rules for source user traffic. You can specify the following user information:
- UsersEnter users in either thedomain/useror theuser@domainformat.
- User groupsUse full distinguished names (DNs) when entering user groups.
- Users configured on Panorama ()DeviceLocal User DatabaseUsers
- User groups configured on Panorama ()DeviceLocal User DatabaseUser Groups
- In theDestinationtab, specify the following values:
Use the following guidelines when configuring destination options:
- In theDestinationarea, specify one of the following criteria, or selectAnyto have traffic processed by the rules in theURL Categoryfield:Do not enter 0.0.0.0/0 in address objects, DAGs, or EDLs; instead, enter 0.0.0.0/0 directly in the rule.LeaveAnyselected to pass all traffic to be processed by the rules in theURL Categoryarea. If you specify rules in theDestination, andURL Categoryareas, Prisma Access processes the rules in theDestinationcategory first.
- In theURL Categoryfield, enter a custom URL category () When you create a custom URL category, enter URLs in all lower case. Traffic steering supports custom URL and predefined URL categories.ObjectsCustom ObjectsURL CategoryYou can use wildcards with the URLs in URL categories. The following wildcard formats are supported:
The following formats are not supported:
URLs in custom URL categories use the same URL pattern matching as that used by next-generation firewalls.
- example.com/ (trailing slashes in URLs are not supported in URL categories that are used with Traffic Steering)
- example.com/path(only domain names are supported)
- If you specify a URL category, Prisma Access only matches HTTP and HTTPS traffic, even when service is set to Any.
- Do not create a custom URL category with a type ofCategory Match.
- Do not create a custom URL category with the nameCustom_URL_Category_TFRbecause, for deployments that are migrated from Prisma Access 1.7 to 2.0, URLs entered in the URL area from 1.7 are moved to a custom URL category namedCustom_URL_Category_TFRnumber, wherenumberis a number appended to the custom URL category.
- In theServicetab, specify a service type.Specifyservice-httpto forward HTTP traffic and specifyservice-httpsto specify HTTPS traffic. SelectAnyto forward traffic of any service type.
- In theActiontab, select theTarget Group Namethat you want to apply to the traffic steering rule.
- Forward traffic to the specified service connection target, or send the traffic directly to the internet without going through the service connection.
- To have Prisma Access forward traffic to a service connection target, selectForward to the target; then select theTarget Group Name.
- To have Prisma Access forward traffic directly to the internet without first sending it to a service connection, selectForward to the internet.
- ClickOKto save your changes.
- OptionalSpecify additional traffic steering rules.Prisma Access processes multiple rules in the order that you create them (from top to bottom).
- Commit and push your changes to make them active in Prisma Access.
- SelectandCommitCommit and PushEdit Selectionsin the Push Scope.
- SelectPrisma Access, then selectService Setup,Remote Networks, andMobile Users.
- ClickOKto save your changes to the Push Scope.
- CommitandPushyour changes.
Recommended For You
Recommended videos not found.