Redirect to a different domain based on URL Filtering
Objective
Redirect to a different domain based on URL Filtering
- You wish to redirect specific website/domain to a different domain
- Expected behavior, if a customer access any news site, in this example https://abcnews.go.com it will be redirected to https://edition.cnn.com
Environment
Any PAN-OS
Procedure
1. Configure response page (html) to redirect to edition.cnn.com
| <html> <head> <meta http-equiv="refresh" content="0; url=https://edition.cnn.com/"> </head> </html> |
2. Import the response page under Device>Response Pages “URL Filtering Continue and override Page” section
3. Generate a Certificate with CN and IP (Certificate Attribute) to be the ingress IP of the firewall and assign it to a TLS profile
4. Max version supported for URL admin Override is TLSv1.2
5. Configure URL Admin override to redirect to the ingress interface
6. Enable Response Page on the Interface and assign it to the ingress interface
7. Create a Custom URL category and add the URL list for site https://edition.cnn.com
8. Configure the URL filtering profile to block/override the pre-defined category “news” and set the custom category “redirecturl” to either allow or alert (alert will generate URL filtering logs).
9. Assign the URL filtering to Policy
Result