You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-iptables-monitor/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ Follow the steps below to build and run the program:
29
29
```
30
30
- The `-input` flag specifies the directory containing allowed regex pattern files. Default: `/etc/config/`
31
31
- The `-input6` flag specifies the directory containing allowed regex pattern files for IPv6 ip6tables. Default: `/etc/config6/`
32
-
- The `-interval` flag specifies how often to check iptables rules in seconds. Default: `300`
32
+
- The `-interval` flag specifies how often to check iptables rules and the bpf map in seconds. Default: `300`
33
33
- The `-events` flag enables Kubernetes event creation for rule violations. Default: `false`
34
34
- The `-ipv6` flag enables IPv6 ip6tables monitoring using the IPv6 allowlists. Default: `false`
35
35
- The `-checkMap` flag enables checking the pinned bpf map specified in mapPath for increases. Default: `false`
36
-
- The `-mapPath` flag species the pinned bpf map path to check. Default: `/block-iptables/iptables_block_event_counter`
36
+
- The `-mapPath` flag specifies the pinned bpf map path to check. Default: `/block-iptables/iptables_block_event_counter`
37
37
- The program must be in a k8s environment and `NODE_NAME` must be a set environment variable with the current node.
38
38
39
39
5. The program will set the `kubernetes.azure.com/user-iptables-rules` label to `true` on the specified ciliumnode resource if unexpected rules are found, or `false`if all rules match expected patterns. Proper RBAC is required for patching (patch for ciliumnodes, create for events, get for nodes).
msg:=fmt.Sprintf("Number of blocked iptables rules increased from %d to %d since last check", previousBlocks, currentBlocks)
354
+
msg:=fmt.Sprintf("Number of blocked iptables rules increased from %d to %d since last check. EBPF Host Routing is enabled: aka.ms/acnsperformance", previousBlocks, currentBlocks)
0 commit comments