Skip to content
Snippets Groups Projects
Unverified Commit 484bc416 authored by Mohamed S. Mahmoud's avatar Mohamed S. Mahmoud Committed by GitHub
Browse files

flow filtering default settings for cidr and action (#357)

parent 8a6d8ce0
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ type Config struct { ...@@ -186,7 +186,7 @@ type Config struct {
FilterDirection string `env:"FILTER_DIRECTION"` FilterDirection string `env:"FILTER_DIRECTION"`
// FilterIPCIDR is the IP CIDR to filter flows. // FilterIPCIDR is the IP CIDR to filter flows.
// Example: 10.10.10.0/24 or 100:100:100:100::/64 // Example: 10.10.10.0/24 or 100:100:100:100::/64
FilterIPCIDR string `env:"FILTER_IP_CIDR"` FilterIPCIDR string `env:"FILTER_IP_CIDR" envDefault:"0.0.0.0/0"`
// FilterProtocol is the protocol to filter flows. // FilterProtocol is the protocol to filter flows.
// Example: TCP, UDP, SCTP, ICMP, ICMPv6 // Example: TCP, UDP, SCTP, ICMP, ICMPv6
FilterProtocol string `env:"FILTER_PROTOCOL"` FilterProtocol string `env:"FILTER_PROTOCOL"`
...@@ -214,7 +214,7 @@ type Config struct { ...@@ -214,7 +214,7 @@ type Config struct {
FilterPeerIP string `env:"FILTER_PEER_IP"` FilterPeerIP string `env:"FILTER_PEER_IP"`
// FilterAction is the action to filter flows. // FilterAction is the action to filter flows.
// Possible values are "Accept" or "Reject". // Possible values are "Accept" or "Reject".
FilterAction string `env:"FILTER_ACTION"` FilterAction string `env:"FILTER_ACTION" envDefault:"Accept"`
/* Deprecated configs are listed below this line /* Deprecated configs are listed below this line
* See manageDeprecatedConfigs function for details * See manageDeprecatedConfigs function for details
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment