Handle traffic redirection PCF policy
-
This MR adds support for handling policy with traffic redirection support based on type URL.
-
Redirection is tested with single vpp upf scenario. Refer basic-vpp-pcf-redirection.yaml for more details.
oai-cn5g-fed/docker-compose$ docker exec -it gnbsim-vpp curl --interface 12.1.1.2 google.com
<!DOCTYPE html>
<html>
<!--
<?xml version="1.0" encoding="UTF-8"?><WISPAccessGatewayParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd"><Proxy><MessageType>110</MessageType><ResponseCode>200</ResponseCode><NextURL>facebook.com</NextURL></Proxy></WISPAccessGatewayParam>
-->
<head>
<title>Redirection</title>
<meta http-equiv="refresh" content="0; URL=facebook.com">
</head>
<body>
Please <a href='facebook.com'>click here</a> to continue
</body>
</html>
- How to configure redirection policy
- Set flowDescription in PCC Rule
- flowDescription: permit out ip from any to assigned
- Set traffic control description in Traffic Rules
redirection-scenario:
redirectInfo:
redirectEnabled: true
redirectAddressType: URL
redirectServerAddress: facebook.com
- We can restrict destination in flowDescription to pertucular destination (e.g. UE ---> 8.8.8.8) as below, but it will only handle packets with this destination. And we need one more low precedence PDR/FAR to handle rest of the traffic. This is out of the scope currently.
- flowDescription: permit out ip from 8.8.8.8 to assigned
Edited by Rohan