F5BigFwRulelist¶
Overview¶
Function¶
Declares a firewall rule list for a CNE instance, defining the ordered rules that match traffic by protocol, source, and destination, and the action to apply.
Names¶
Singular name |
Plural name |
Short name |
|---|---|---|
f5-big-fw-rulelist |
f5-big-fw-rulelists |
fwrl |
API group and version¶
k8s.f5net.com/v1
Scope¶
Namespace
Specification¶
metadata¶
Parameter |
Description |
|---|---|
|
The name of the F5BigFwRuleList. |
|
The namespace of Kubernetes in which the firewall rule list is installed. |
spec¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
List of firewall rules. |
|
No |
|
Description of the rule list. |
spec.rule[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the rule. Maximum length is 255 characters. |
|
Yes |
— |
Action to apply to matching traffic. Accepted values: |
|
No |
|
IP protocol to match. Accepted values include |
|
No |
|
Description of the rule. |
|
No |
|
Source match criteria for the rule. |
|
No |
|
Destination match criteria for the rule. |
|
No |
|
Turns on logging for the rule. Accepted values: |
|
No |
— |
Name of the service policy to apply. Maximum length is 255 characters. |
Note
When a rule specifies any VLAN zone in the source or destination, the rule can’t specify source VLANs.
spec.rule[].source¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
Source VLAN names. Each name is up to 255 characters. |
|
No |
|
Source zone names. Each name is up to 255 characters. |
|
No |
|
Source IPv4 or IPv6 addresses, CIDR ranges, or address ranges. |
|
No |
|
Source address list names. Each name is up to 255 characters. |
|
No |
|
Source ports or port ranges. Accepted values: 0 to 65535, or a range such as |
|
No |
|
Source port list names. Each name is up to 255 characters. |
|
No |
|
Source geographic location codes. Each value is up to 255 characters. |
|
No |
|
Source fully qualified domain names. Each name is up to 254 characters. |
|
No |
|
Kubernetes namespaces to match. Each name is up to 63 characters. |
spec.rule[].destination¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
|
Destination zone names. Each name is up to 255 characters. |
|
No |
|
Destination IPv4 or IPv6 addresses, CIDR ranges, or address ranges. |
|
No |
|
Destination address list names. Each name is up to 255 characters. |
|
No |
|
Destination ports or port ranges. Accepted values: 0 to 65535, or a range such as |
|
No |
|
Destination port list names. Each name is up to 255 characters. |
|
No |
|
Destination geographic location codes. Each value is up to 255 characters. |
|
No |
|
Destination fully qualified domain names. Each name is up to 254 characters. |
|
No |
|
Kubernetes namespaces to match. Each name is up to 63 characters. |
Example manifest¶
apiVersion: "k8s.f5net.com/v1"
kind: F5BigFwRulelist
metadata:
name: firewallrule
namespace: f5-bnk
spec:
rule:
- name: sc-rule-tcp-fw_rule-1
ipProtocol: tcp
source:
addresses:
- 11.19.10.10/32
addressLists:
- fw-drop-ipaddresses
logging: true
action: drop
- name: sc-rule-tcp-fw-rule-2
ipProtocol: tcp
source:
addresses:
- 11.19.10.9/32
portLists:
- drop-ports
logging: true
action: drop
Note
The firewall rule list set is declared in the metadata.annotations section of the resource. This rule list must not exceed the metadata.annotations section limit of 262144 bytes of data.
Create and apply the manifest.
Copy the sample CR into a YAML
<firewallrule.yaml>file.Apply the F5BigFwRulelist CR:
kubectl apply -f firewallrule.yaml f5bigfwrulelist.k8s.f5net.com/firewallrule created kubectl get -f firewallrule.yaml -n f5-bnk NAME READY MESSAGE AGE firewallrule True CR config sent to all grpc endpoints 7s
You must specify the firewall rule list name within the F5BigFwPolicy CR. For additional details, refer to the F5BigFwPolicy CR.