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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# azure-iptables-monitor
2
2
3
-
`azure-iptables-monitor` is a utility for monitoring iptables rules on Kubernetes nodes and labeling nodes based on whether they contain user-defined iptables rules.
3
+
`azure-iptables-monitor` is a utility for monitoring iptables rules on Kubernetes nodes and labeling a ciliumnode resource based on whether the corresponding node contains user-defined iptables rules.
4
4
5
5
## Description
6
6
7
-
The goal of this program is to periodically scan iptables rules across all tables (nat, mangle, filter, raw, security) and determine if any rules exist that don't match expected patterns. When unexpected rules are found, the node is labeled to indicate the presence of user-defined iptables rules.
7
+
The goal of this program is to periodically scan iptables rules across all tables (nat, mangle, filter, raw, security) and determine if any rules exist that don't match expected patterns. When unexpected rules are found, the ciliumnode resource is labeled to indicate the presence of user-defined iptables rules.
8
8
9
9
## Usage
10
10
@@ -25,14 +25,14 @@ Follow the steps below to build and run the program:
- 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: `600`
31
+
- The `--interval` flag specifies how often to check iptables rules in seconds. Default: `300`
32
32
- The `--events` flag enables Kubernetes event creation for rule violations. Default: `false`
33
-
- The program must be in a k8 environment and `NODE_NAME` must be a set environment variable with the current node.
33
+
- The program must be in a k8s environment and `NODE_NAME` must be a set environment variable with the current node.
34
34
35
-
5. The program will set the `user-iptables-rules` label on the current node to `true`if unexpected rules are found, or `false`if all rules match expected patterns. Proper RBAC is required for patching the node.
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).
0 commit comments