MCPcopy
hub / github.com/netbirdio/netbird / FirewallRule

Struct FirewallRule

management/server/types/firewall_rule.go:22–43  ·  view source on GitHub ↗

FirewallRule is a rule of the firewall.

Source from the content-addressed store, hash-verified

20
21// FirewallRule is a rule of the firewall.
22type FirewallRule struct {
23 // PolicyID is the ID of the policy this rule is derived from
24 PolicyID string
25
26 // PeerIP of the peer
27 PeerIP string
28
29 // Direction of the traffic
30 Direction int
31
32 // Action of the traffic
33 Action string
34
35 // Protocol of the traffic
36 Protocol string
37
38 // Port of the traffic
39 Port string
40
41 // PortRange represents the range of ports for a firewall rule
42 PortRange RulePortRange
43}
44
45// Equal checks if two firewall rules are equal.
46func (r *FirewallRule) Equal(other *FirewallRule) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected