Skip to content

Commit

Permalink
Add Support for Firewall Protocol GRE & ESP (#331)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling authored Jun 17, 2021
1 parent d582dd8 commit 08da869
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/golang/mock v1.5.0
github.com/google/go-cmp v0.5.2 // indirect
github.com/guptarohit/asciigraph v0.5.1
github.com/hetznercloud/hcloud-go v1.26.1
github.com/hetznercloud/hcloud-go v1.27.0
github.com/pelletier/go-toml v1.8.1
github.com/rjeczalik/interfaces v0.1.1
github.com/spf13/cobra v1.1.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hetznercloud/hcloud-go v1.26.1 h1:9d9yMmq0e1ePZ8r/CkASGFSHcpnV/aY/FK0XtD101Cw=
github.com/hetznercloud/hcloud-go v1.26.1/go.mod h1:2C5uMtBiMoFr3m7lBFPf7wXTdh33CevmZpQIIDPGYJI=
github.com/hetznercloud/hcloud-go v1.27.0 h1:dQ0k3VGHL2rKicOfWHQvKw//B9pXcVTgFGvLqjy8Ujw=
github.com/hetznercloud/hcloud-go v1.27.0/go.mod h1:2C5uMtBiMoFr3m7lBFPf7wXTdh33CevmZpQIIDPGYJI=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/firewall/add_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func newAddRuleCommand(cli *state.State) *cobra.Command {
cmd.RegisterFlagCompletionFunc("direction", cmpl.SuggestCandidates("in", "out"))
cmd.MarkFlagRequired("direction")

cmd.Flags().String("protocol", "", "Protocol (icmp, udp or tcp) (required)")
cmd.RegisterFlagCompletionFunc("protocol", cmpl.SuggestCandidates("icmp", "udp", "tcp"))
cmd.Flags().String("protocol", "", "Protocol (icmp, esp, gre, udp or tcp) (required)")
cmd.RegisterFlagCompletionFunc("protocol", cmpl.SuggestCandidates("icmp", "udp", "tcp", "esp", "gre"))
cmd.MarkFlagRequired("protocol")

cmd.Flags().StringArray("source-ips", []string{}, "Source IPs (CIDR Notation) (required when direction is in)")
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/firewall/delete_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func newDeleteRuleCommand(cli *state.State) *cobra.Command {
cmd.RegisterFlagCompletionFunc("direction", cmpl.SuggestCandidates("in", "out"))
cmd.MarkFlagRequired("direction")

cmd.Flags().String("protocol", "", "Protocol (icmp, udp or tcp) (required)")
cmd.RegisterFlagCompletionFunc("protocol", cmpl.SuggestCandidates("icmp", "udp", "tcp"))
cmd.Flags().String("protocol", "", "Protocol (icmp, esp, gre, udp or tcp) (required)")
cmd.RegisterFlagCompletionFunc("protocol", cmpl.SuggestCandidates("icmp", "udp", "tcp", "esp", "gre"))
cmd.MarkFlagRequired("protocol")

cmd.Flags().StringArray("source-ips", []string{}, "Source IPs (CIDR Notation) (required when direction is in)")
Expand Down

0 comments on commit 08da869

Please sign in to comment.