HTTP URL Filtering
The HTTP URL Filtering feature simplifies rule definitions used for URL detection.
The HTTP request packet can have a proxy (prefixed) URL and an actual URL. If a proxy URL is found in the HTTP request packet, the HTTP URL Filtering feature truncates this URL from the parsed information and only the actual URL is used for rule matching and Event Data Records (EDR) generation.
Configuring the HTTP URL Filtering Feature
This section describes how to configure the HTTP URL Filtering feature.
Configuring Group of Prefixed URLs
To configure the group of prefixed URLs, use the following CLI commands:
configure
active-charging service ecs_service_name
group-of-prefixed-urls prefixed_urls_group_name
end
Configuring URLs in the Group of Prefixed URLs
To configure URLs to be filtered in the group of prefixed URLs, use the following CLI commands:
configure
active-charging service ecs_service_name
group-of-prefixed-urls prefixed_urls_group_name
prefixed-url url_1
...
prefixed-url url_10
end
Enabling the Group of Prefixed URLs in Rulebase
To enable the group of prefixed URLs in rulebase for processing prefixed URLs, use the following CLI commands:
configure
active-charging service ecs_service_name
rulebase rulebase_name
url-preprocessing bypass group-of-prefixed-urls prefixed_urls_group_name_1
...
url-preprocessing bypass group-of-prefixed-urls prefixed_urls_group_name_64
end
This configuration on the control plane chassis will be pushed to the user plane with a PFD message for “group-of-prefixed-urls” and “rulebase-url-preprocessing”separately.
The group of prefixed URLs has the list of proxy URLs, which must be truncated. The rulebase contains multiple group of prefixed urls, which must be filtered. Charging ruledefs contain rules for actual URLs that must be searched after truncating URLs in the group of prefixed URLs.
Note |
|
Show Commands
show user-plane-service group-of-prefixed-urls all | name group_name
This show command can be used on the user plane to verify whether the group of prefixed URLs are pushed or not. The output of this command is as follows:
-
Name of the group of prefixed URLs
-
Prefixed URLs
-
Total number of prefixed URLs found
show user-plane-service rulebase name rbase_name
This show command can be used on the user plane to check whether the group of prefixed URLs is configured in rulebase or not. The output of this command is as follows:
-
Name of rulebase
-
Name of the groups of prefixed Urls for URL pre-processing
show user-plane-service statistics analyzer name http
The output of this command is as follows:
-
Total HTTP Sessions
-
Current HTTP Sessions
-
Total Uplink Bytes
-
Total Downlink Bytes
-
Total Uplink Pkts
-
Total Downlink Pkts
-
Uplink Bytes Retrans
-
Downlink Bytes Retrans
-
Uplink Pkts Retrans
-
Downlink Pkts Retrans
-
Total Request Succeed
-
Total Request Failed
-
GET Requests
-
POST Requests
-
CONNECT Requests
-
PUT requests
-
HEAD requests
-
Websocket Flows
-
Invalid packets
-
Wrong FSM packets
-
Unknown request method
-
Pipeline overflow requests
-
Corrupt request packets
-
Corrupt response packets
-
Unhandled request packets
-
Unhandled response packets
-
Partial HTTP Header Anomaly prevented
-
New requests on closed connection
-
Memory allocation failures
-
Packets after permanent failure
-
Prefixed Urls Bypassed
-
FastPath Statistics
-
Total FP Flows
-
Uplink (Total FP Pkts)
-
Downlink (Total FP Pkts)
-
Uplink (Total FP Bytes)
-
Downlink (Total FP Bytes)
Note | Prefixed URLs Bypassed counter has been added in http analyzer stats as a performance measurement to show the number of truncated prefixed URLs. |