Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions enterprise/firewall/firewall.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package enterprise.firewall;
message FirewallConfig {
FirewallPolicy default_policy = 2;
repeated FirewallRule rules = 3;
repeated SnatBinding snat_bindings = 4;
}

enum IpVersion {
Expand All @@ -28,6 +29,13 @@ message FirewallRule {
IpVersion ip_version = 8;
}

message SnatBinding {
int64 id = 1;
repeated IpAddress source_addrs = 2;
string public_ip = 3;
optional string comment = 4;
}

// IPv4 or IPv6 address
// expected type is determined by a given FirewallRule
message IpAddress {
Expand Down