Forward Proxy Policies
Objective
This guide provides instructions on how to create a forward proxy policy using the guided wizards in F5® Distributed Cloud Services. The forward policies applied when the F5 gateway is used in transit.
Using the instructions provided in this document, you can create forward proxy policies with policy rules controlling the traffic to secure your network.
Prerequisites
- A valid account Account is required.
Note: If you do not have an account, see Create an Account.
- One or more cloud or edge locations with F5 Sites.
Note: Install the F5 node or cluster image in your Cloud or Edge location.
Configuration
Create Forward Proxy Policy
Forward proxy policies can be viewed and managed in multiple services: Multi-Cloud Network Connect
, Distributed Apps
, and Multi-Cloud App Connect
.
This example shows Forward Proxy Policies
setup in Multi-Cloud Network Connect
.
Step 1: Open Network Policy Configuration.
- Open
F5® Distributed Cloud Console
homepage, selectMulti-Cloud Network Connect
box.
Note: Homepage is role based, and your homepage may look different due to your role customization. Select
All Services
drop-down menu to discover all options. Customize Settings:Administration
>Personal Management
>My Account
>Edit work domain & skills
button >Advanced
box > checkWork Domain
boxes >Save changes
button.
Figure: Homepage
Note: Confirm
Namespace
feature is in correct namespace, drop-down selector located in upper-left corner. Not available in all services.
- Select
Manage
in left column menu > selectFirewall
>Forward Proxy Policies
.
Note: If options are not showing available, select
Show
link inAdvanced nav options visible
in bottom left corner. If needed, selectHide
to minimize options from Advanced nav options mode.
- Select
Add Forward Proxy Policy
button.
Figure: Forward Proxy Policies
Step 2: Create Policy and Configure Proxy.
-
Enter
Name
, enterLabels
andDescription
as needed. -
Select Forward Proxy
drop-down menu inProxy
box options:-
All Forward Proxies on Site
: All the proxies configured. -
Network Connector
>Select Network Connector
in drop-down menu to a specific network connector. -
Network Connector Label Selector
>Selector Expression
label in drop-down menu to identify label selection for network connector.
-
Figure: Create Policy and Configure Proxy
Step 3: Configure Policy Rules.
Select Policy Rules
inRules
section drop-down options:
Allow all connections
This option allows all traffic
Allowed connections: Connections to allow, everything else is denied.
-
Configure connection options:
-
TLS Domains
: Select+ Add item
> SelectEnter Domain
drop-down menu option:Exact Value
,Suffix Value
, orRegex Values of Domains
> Entervalue
in box below to match domains > SelectAdd Item
button. -
HTTP URLs
: Select+ Add item
> SelectEnter Domain
drop-down menu option:Exact Value
,Suffix Value
, orRegex Values of Domains
> Entervalue
in box below to match domains.Enter Path
drop down option, SelectAdd Item
button.
Note: If
L4 Destination List
andDefault Action
options don't appear selectShow Advanced Fields
toggle located in upper-right corner ofRules
section.-
L4 Destination List
: Select+ Add item
> EnterPrefixes
in box > Select+ Add Item
to add additional prefixes > EnterPort Ranges
> selectAdd Item
button. -
Select
Default Action
drop-down menu option:Next Policy
,Deny
, orAllow
.
-
Denied connections: Connections to deny, everything else will be allowed.
Configure connections options:
-
TLS Domains
: Select+ Add item
> SelectEnter Domain
drop-down menu option:Exact Value
,Suffix Value
, orRegex Values of Domains
> Entervalue
in box below to match domains > SelectAdd Item
button. -
HTTP URLs
: Select+ Add item
> SelectEnter Domain
drop-down menu option:Exact Value
,Suffix Value
, orRegex Values of Domains
> Entervalue
in box below to match domains.Enter Path
drop down option, SelectAdd Item
button.
Note: If
L4 Destination List
andDefault Action
options don't appear selectShow Advanced Fields
toggle located in upper-right corner ofRules
section.
-
L4 Destination List
: Select+ Add item
> enterPrefixes
in box > select+ Add Item
to add additional prefixes > enterPort Ranges
> selectAdd Item
button. -
Select
Default Action
drop-down menu option:Next Policy
,Deny
, orAllow
.
Custom Rule List: List of custom rules.
-
Select
Configure
link inCustom Rule List
box. -
In
Custom Rule List
new window configure items. -
Select
+ Add item
. -
Enter
Name
andDescription
as needed. -
Select
Action
drop-down menu option:Deny
orAllow
. -
Select Connection Source
drop-down menu inSource
box options:-
All Sources
to apply the rule to all source endpoints. -
IPv4 Prefix List
to specify IPv4 prefixes and enter the prefixes in theIPv4 Prefix List
field. You can use+ Add item
to add more than one list. -
Source Label Selector
and enter a label in theSelector Expression
field. The key-value combination of the label determines the source end points. -
IP Prefix Set
to specify a prefix set and select the prefix set from the drop-down list for theIP Prefix Set
field. You can also create a new prefix set using theCreate new ip prefix set
option in the drop-down list.
-
-
Select
Destination Choice
drop-down menu option:-
All Destinations
to apply the rule to all destination endpoints. -
TLS Domains
to specify the HTTPS domains to which the rule applies. Select+ Add item
button. Select an option from the drop-down list of theEnter Domain
field, and set a HTTPS domain in the displayed option. EnterExact Value
in box. You can specify the exact domain name or a suffix or specify regular expression to match domains. SelectAdd Item
button. -
HTTP URLs
to specify the HTTP URLs to which the rule applies. Select+ Add item
button. Select an option from the drop-down list of theEnter Domain
field, and set an URL in the displayed option. You can specify the exact URL, or a suffix or specify regular expression to match URL. SelectEnter Path
drop-down menu options, selectAdd Item
button. -
IPv4 Prefix List
to specify the IPv4 prefix to which the rule applies. SelectConfigure
link > enterList of Prefixes
>+ Add Item
if needed > selectApply
button. -
IP Prefix Set
SelectIP Prefix Set
drop-down menu options to specify the IP Prefix set to which the rule applies. You canCreate new IP prefix set
if needed and configure metadata. -
BGP ASN List
to specify the BGN ASN list to which the rule applies. SelectConfigure
link > enterAS numbers
in box,+ Add item
as needed, selectApply
button. -
Select
Add Item
to apply the custom rule list to the forward proxy policy configuration. -
Select
Apply
button to return toCustom Rule List
page.
Figure: Configure Policy Rules
- Select
Apply
button.
-
Note: You can add more rules using the
+ Add item
option.
Denied Connections Example
:
Figure: Policy Rules Configuration
Figure: TLS Domains for Deny Connections
Step 4: Complete Forward Proxy Policy creation.
-
Select
Save and Exit
button. -
Verify forward proxy policy is displayed in
Manage
>Firewall
>Forward Proxy Policy
view.
Step 5: Attach Policy to Network Firewall.
After creating the forward proxy policy, you can attach it to the network firewall.
-
Select
Manage
>Firewall
>Network Firewalls
. -
Select
...
>Manage Configuration
for your firewall from the displayed list. -
Select
Edit Configuration
. -
Go to
Forward Proxy Policy
section, selectActive Forward Proxy Policies
in theSelect Forward Proxy Policy Configuration
drop-down menu. -
Select the created forward proxy policy from the
List of Forward proxy policy
drop-down menu in theForward Proxy Policy
section.
Figure: Attach Policy to Network Firewall
Note: You can add multiple policies using the
+ Add Item
option.
- Select
Save and Exit
button.
Step 6: Verify Forward Proxy Policy Operation.
-
Select
Manage
>Firewall
>Forward Proxy Policies
. -
Check the
Hits
field for the displayed list of forward proxy policies. This indicates how many times network policy is applied to the traffic. -
Select the value of
Hits
to display the which rules are applied and how many times they are applied.
Note: You can obtain the policy or rule hits over a specific time interval using the time interval selector option.