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
- The `--input` flag specifies the directory containing allowed regex pattern files. Default: `/etc/config/`
31
-
- The `--interval` flag specifies how often to check iptables rules in seconds. Default: `300`
32
-
- The `--events` flag enables Kubernetes event creation for rule violations. Default: `false`
30
+
- The `-input` flag specifies the directory containing allowed regex pattern files. Default: `/etc/config/`
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 and the bpf map in seconds. Default: `300`
33
+
- The `-events` flag enables Kubernetes event creation for rule violations. Default: `false`
34
+
- The `-ipv6` flag enables IPv6 ip6tables monitoring using the IPv6 allowlists. Default: `false`
35
+
- The `-checkMap` flag enables checking the pinned bpf map specified in mapPath for increases. Default: `false`
36
+
- The `-mapPath` flag specifies the pinned bpf map path to check. Default: `/azure-block-iptables/iptables_block_event_counter`
33
37
- The program must be in a k8s environment and `NODE_NAME` must be a set environment variable with the current node.
34
38
35
-
5. The program will set the `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).
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).
40
+
41
+
6. The program will also send out an event if the bpf map value specified increases between checks
36
42
37
43
38
44
## Pattern File Format
@@ -48,6 +54,7 @@ Each pattern file should contain one regex pattern per line:
48
54
- `nat`, `mangle`, `filter`, `raw`, `security`: Patterns specific to each iptables table
49
55
- Empty lines are ignored
50
56
- Each line should be a valid Go regex pattern
57
+
- The ipv6 config directory uses files with same names, but will match against ipv6 iptables rules
0 commit comments