fog-bouncer 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2efd35d9c752f00569ed323f3daff266881c120
4
- data.tar.gz: d0b9a15c0055b4d08dd74e8dde43bdeaa7013a9f
3
+ metadata.gz: e9e24db857018b22190af28aaab187fe81af0fc3
4
+ data.tar.gz: da42c953cf250383666701bce23d928d52c3e924
5
5
  SHA512:
6
- metadata.gz: 515bb6caa2296ff0cea02c516df77772f7f0414ce38246a2867e3bd6e6bf650243cf6e9e245a007eae9ba181e23fd6d7d58dc5815dc9fa93c471c8cb44c0a543
7
- data.tar.gz: 8dac91669d76a6e591b2cc718e9f70fd63bf3fbaef056675ae8e9fb96c3510f66a3f2e2cfff461d35bdcf33a5191cf394c3a7df277318d8c6afd23e8224f18a2
6
+ metadata.gz: eada27efb172eb519b6fabfd95ea3c7a0def8ca3b99918c0808202113dd714152fb2cba9f4d6cdc1b77cd4eff61a85ee6a66f4d1ed10d1af68b17252eeafe058
7
+ data.tar.gz: adbfc1c9cc63ed1477f6cce7ff3baa61a552266ea98507a73d0d793d7bace8a5b01224b4333c3cbedbeae9be845a6a70cbf43593a9c69f104861a00570ed4ae8
@@ -72,7 +72,8 @@ module Fog
72
72
  class ICMP < Protocol
73
73
  ICMP_MAPPING = {
74
74
  all: -1,
75
- ping: 0..8
75
+ echo_reply: 0..-1,
76
+ echo_request: 8..-1
76
77
  }
77
78
 
78
79
  ICMP_TYPE_RANGE = (-1..255)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Bouncer
3
- VERSION = "0.2.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
@@ -21,7 +21,8 @@ describe Fog::Bouncer do
21
21
 
22
22
  describe "use" do
23
23
  it "should include any source definition specified" do
24
- @group.sources.find { |s| s.source == "0.0.0.0/0" && s.protocols.find { |p| p.type == "icmp" && p.from == 0 && p.to == 8 } }.wont_be_nil
24
+ @group.sources.find { |s| s.source == "0.0.0.0/0" && s.protocols.find { |p| p.type == "icmp" && p.from == 0 && p.to == -1 } }.wont_be_nil
25
+ @group.sources.find { |s| s.source == "0.0.0.0/0" && s.protocols.find { |p| p.type == "icmp" && p.from == 8 && p.to == -1 } }.wont_be_nil
25
26
  end
26
27
 
27
28
  it "should not create duplicate sources" do
@@ -2,7 +2,8 @@ Fog::Bouncer.security :private do
2
2
  account "jersey_shore", Fog::Bouncer.aws_account_id
3
3
 
4
4
  define :ping, "0.0.0.0/0" do
5
- icmp :ping
5
+ icmp :echo_request
6
+ icmp :echo_reply
6
7
  end
7
8
 
8
9
  define :ssh, ["0.0.0.0/0", "1.1.1.1/1"] do
@@ -23,7 +24,8 @@ Fog::Bouncer.security :private do
23
24
  end
24
25
 
25
26
  source "0.0.0.0/0" do
26
- icmp :ping
27
+ icmp :echo_request
28
+ icmp :echo_reply
27
29
  end
28
30
  end
29
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-bouncer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Egan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp