infrataster-plugin-firewall 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 36a35d83702e05bc1eb186299fd7007e1f9fa27d
4
+ data.tar.gz: cdb6310a44878446dd3d72e2888f6eb37f6fb7de
5
+ SHA512:
6
+ metadata.gz: 536be10b3c0f5b31b36731083402785f3371cc6a5b09ce07053a6545dbc1edf5cbcd350bfa83fafbf9e4574d6655229e6833bb85fb8e80f68f187fb241ca1e05
7
+ data.tar.gz: 5c45ad6042cd4429bf2ba4766587f9a56c36edd978e9455ad08264e8fad8e89fce07e5262ba4a3e1da360ba149397547980bf07d81b3b642a02261b727b415d0
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor/
11
+ .vagrant/
12
+ *.bundle
13
+ *.so
14
+ *.o
15
+ *.a
16
+ mkmf.log
data/.rubocop.yml ADDED
@@ -0,0 +1,19 @@
1
+ # Avoid methods longer than 10 lines of code
2
+ MethodLength:
3
+ Enabled: false
4
+
5
+ # Avoid classes longer than 100 lines of code
6
+ ClassLength:
7
+ Enabled: false
8
+
9
+ # allow is_a? or have_* method_name
10
+ Style/PredicateName:
11
+ Enabled: false
12
+
13
+ # allow lib/infrataster-plugin-dns.rb
14
+ Style/FileName:
15
+ Enabled: false
16
+
17
+ # allow 5 digit not separated
18
+ NumericLiterals:
19
+ MinDigits: 6
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+
5
+ rvm:
6
+ - 1.9.3
7
+ - 2.0.0
8
+ - 2.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in infrataster-plugin-firewall.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Hiroshi Ota
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Infrataster::Plugin::Firewall
2
+ [![Gem Version](https://badge.fury.io/rb/infrataster-plugin-firewall.svg)](http://badge.fury.io/rb/infrataster-plugin-firewall)
3
+ [![Build Status](https://travis-ci.org/otahi/infrataster-plugin-firewall.svg)](https://travis-ci.org/otahi/infrataster-plugin-firewall)
4
+ [![Coverage Status](https://coveralls.io/repos/otahi/infrataster-plugin-firewall/badge.png)](https://coveralls.io/r/otahi/infrataster-plugin-firewall)
5
+
6
+ Firewall plugin for Infrataster.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'infrataster-plugin-firewall'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install infrataster-plugin-firewall
23
+
24
+ ## Usage
25
+
26
+ The usage is as same as [Infrataster](https://github.com/ryotarai/infrataster).
27
+
28
+ ```ruby
29
+ require 'infrataster-plugin-firewall'
30
+
31
+ describe server(:src) do
32
+ describe firewall(server(:dst)) do
33
+ it { is_expected.to be_reachable } #ICMP ping
34
+ it { is_expected.to be_reachable.dest_port(80) } #TCP:80
35
+ it { is_expected.to be_reachable.tcp.dest_port(80) }
36
+ it { is_expected.to be_reachable.udp.dest_port(53) }
37
+ it { is_expected.to be_reachable.tcp.dest_port(80).source_port(30123) }
38
+ end
39
+ end
40
+ ```
41
+
42
+ You can get following result:
43
+
44
+ ```
45
+ $ bundle exec rspec
46
+
47
+ server 'src'
48
+ via firewall
49
+ should reach to server 'dst'
50
+ should reach to server 'dst' dest_port: 80
51
+ should reach to server 'dst' tcp dest_port: 80
52
+ should reach to server 'dst' udp dest_port: 53
53
+ should reach to server 'dst' tcp dest_port: 80 source_port: 30123
54
+
55
+ Finished in 15.87 seconds (files took 0.58711 seconds to load)
56
+ 5 examples, 0 failures
57
+ $
58
+ ```
59
+
60
+
61
+ ## Contributing
62
+
63
+ 1. Fork it ( https://github.com/otahi/infrataster-plugin-firewall/fork )
64
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
65
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
66
+ 4. Push to the branch (`git push origin my-new-feature`)
67
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,58 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'open-uri'
4
+ require 'coveralls/rake/task'
5
+ require 'rubocop/rake_task'
6
+
7
+ task :default => ['spec:unit', :quality]
8
+
9
+ def yellow(str)
10
+ "\e[33m#{str}\e[m"
11
+ end
12
+
13
+ ENV['VAGRANT_CWD'] = File.expand_path('spec/integration/vm')
14
+
15
+ desc 'Run unit and integration tests'
16
+ task :spec => ['spec:unit', 'spec:integration']
17
+
18
+ namespace :spec do
19
+ RSpec::Core::RakeTask.new('unit') do |task|
20
+ task.pattern = './spec/unit{,/*/**}/*_spec.rb'
21
+ end
22
+
23
+ RSpec::Core::RakeTask.new('integration') do |task|
24
+ task.pattern = './spec/integration{,/*/**}/*_spec.rb'
25
+ end
26
+
27
+ namespace :integration do
28
+ integration_dir = 'spec/integration'
29
+
30
+ desc 'Clean'
31
+ task :clean => ['destroy_vm'] do
32
+ end
33
+
34
+ desc 'Prepare'
35
+ task :prepare => ['start_vm'] do
36
+ end
37
+
38
+ task :start_vm do
39
+ puts yellow('Starting VM...')
40
+ system 'vagrant reload --provision | grep "not created" && vagrant up'
41
+ end
42
+
43
+ task :destroy_vm do
44
+ puts yellow('Destroying VM...')
45
+ system 'vagrant', 'destroy', '-f'
46
+ end
47
+ end
48
+ end
49
+
50
+
51
+ RuboCop::RakeTask.new(:rubocop) do |task|
52
+ task.patterns = %w(lib/**/*.rb spec/unit/**/*.rb)
53
+ end
54
+
55
+ task :quality => :rubocop do
56
+ Coveralls::RakeTask.new
57
+ end
58
+
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'infrataster/plugin/firewall/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'infrataster-plugin-firewall'
8
+ spec.version = Infrataster::Plugin::Firewall::VERSION
9
+ spec.authors = ['Hiroshi Ota']
10
+ spec.email = ['otahi.pub@gmail.com']
11
+ spec.summary = 'Firewall plugin for Infrataster.'
12
+ spec.description = 'Firewall plugin for Infrataster.'
13
+ spec.homepage = 'https://github.com/otahi/infrataster-plugin-firewall'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_runtime_dependency 'infrataster', '~> 0.2.0'
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.7'
24
+ spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rspec', '~> 3.0'
26
+ spec.add_development_dependency 'rubocop', '0.28.0'
27
+ spec.add_development_dependency 'coveralls', '~> 0.7'
28
+ spec.add_development_dependency 'byebug' if RUBY_VERSION >= '2.0'
29
+ end
@@ -0,0 +1,10 @@
1
+ require 'infrataster'
2
+
3
+ require 'infrataster/plugin/firewall/version'
4
+ require 'infrataster/plugin/firewall/util'
5
+ require 'infrataster/plugin/firewall/capture'
6
+ require 'infrataster/plugin/firewall/transfer'
7
+
8
+ require 'infrataster/resources/firewall_resource'
9
+ require 'infrataster/helpers/firewall_resource_helper'
10
+ require 'infrataster/contexts/firewall_context'
@@ -0,0 +1,71 @@
1
+ require 'infrataster'
2
+ require 'infrataster-plugin-firewall'
3
+
4
+ module Infrataster
5
+ module Contexts
6
+ # Infrataster Firewall context
7
+ class FirewallContext < BaseContext
8
+ extend RSpec::Matchers::DSL
9
+
10
+ matcher(:be_reachable) do
11
+ match do
12
+ @options ||= {}
13
+ transfer =
14
+ Plugin::Firewall::Transfer.new(resource.src_node,
15
+ resource.dest_node,
16
+ @options)
17
+ transfer.reachable?
18
+ end
19
+
20
+ chain :icmp do
21
+ @options ||= {}
22
+ @options.merge!(protocol: :ICMP) unless @options[:protocol]
23
+ end
24
+
25
+ chain :tcp do
26
+ @options ||= {}
27
+ @options.merge!(protocol: :TCP) unless @options[:protocol]
28
+ @chain_string ||= ''
29
+ @chain_string += ' tcp'
30
+ end
31
+
32
+ chain :udp do
33
+ @options ||= {}
34
+ @options.merge!(protocol: :UDP) unless @options[:protocol]
35
+ @chain_string ||= ''
36
+ @chain_string += ' udp'
37
+ end
38
+
39
+ chain :dest_port do |port|
40
+ @options ||= {}
41
+ @options.merge!(dest_port: port)
42
+ @options.merge!(protocol: :TCP) unless @options[:protocol]
43
+ @chain_string ||= ''
44
+ @chain_string += " dest_port: #{port}"
45
+ end
46
+
47
+ chain :source_port do |port|
48
+ @options ||= {}
49
+ @options.merge!(source_port: port)
50
+ @options.merge!(protocol: :TCP) unless @options[:protocol]
51
+ @chain_string ||= ''
52
+ @chain_string += " source_port: #{port}"
53
+ end
54
+
55
+ failure_message do
56
+ s = "expected to reach to #{resource.dest_node}"
57
+ s + "#{@chain_string}, but did not."
58
+ end
59
+
60
+ failure_message_when_negated do
61
+ s = "expected not to reach to #{resource.dest_node}"
62
+ s + "#{@chain_string}, but did."
63
+ end
64
+
65
+ description do
66
+ "reach to #{resource.dest_node}#{@chain_string}"
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,13 @@
1
+ require 'rspec'
2
+ require 'infrataster/resources'
3
+
4
+ module Infrataster
5
+ module Helpers
6
+ # Firewall resouce helper
7
+ module ResourceHelper
8
+ def firewall(*args)
9
+ Resources::FirewallResource.new(described_class, *args)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ require 'infrataster/plugin/firewall/version'
2
+
3
+ module Infrataster
4
+ module Plugin
5
+ # Infrataster plugin for firewall
6
+ module Firewall
7
+ # Your code goes here...
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,102 @@
1
+ module Infrataster
2
+ module Plugin
3
+ # Infrataster plugin for firewall
4
+ module Firewall
5
+ # Reqresent capture
6
+ class Capture
7
+ attr_reader :result, :output
8
+
9
+ def initialize(node, bpf = nil, term_sec = nil)
10
+ @node = node.respond_to?(:server) ? node.server :
11
+ Net::SSH.start(node, config: true)
12
+ @bpf = bpf ? bpf : ''
13
+ @connected = false
14
+ @term_sec = term_sec ? term_sec : 5
15
+ @thread = nil
16
+ @ssh = nil
17
+ @result = false
18
+ @output = ''
19
+ end
20
+
21
+ def open(&block)
22
+ open_node
23
+ wait_connected
24
+ return unless block
25
+
26
+ block.call
27
+ close
28
+ end
29
+
30
+ def close
31
+ sleep 0.5 until capture_done?
32
+ @thread.kill
33
+ @ssh.close unless @ssh.closed?
34
+ end
35
+
36
+ def self.bpf(options = {})
37
+ is_first = true
38
+ filter = ''
39
+
40
+ options.each do |k, v|
41
+ filter << ' and ' unless is_first
42
+ filter << "#{k} #{v}"
43
+ is_first = false
44
+ end
45
+ filter
46
+ end
47
+
48
+ private
49
+
50
+ def open_node
51
+ @thread = Thread.new do
52
+ @node.ssh do |ssh|
53
+ @ssh = ssh
54
+ ssh.open_channel do |channel|
55
+ output = run_check(channel)
56
+ @output << output.to_s
57
+ end
58
+ end
59
+ end
60
+ end
61
+
62
+ def wait_connected
63
+ sleep 0.5 until @connected
64
+ sleep 1 # after connected wait for tcpdump ready
65
+ end
66
+
67
+ def run_check(channel)
68
+ channel.request_pty do |chan, success|
69
+ fail 'Could not obtain pty' unless success
70
+ exec_capture(chan)
71
+ end
72
+ end
73
+
74
+ def exec_capture(channel)
75
+ @start_sec = Time.now.to_i + 1
76
+ channel.exec(capture_command) do |ch, _stream, _data|
77
+ receive_data(ch)
78
+ break if capture_done?
79
+ end
80
+ end
81
+
82
+ def receive_data(channel)
83
+ data = ''
84
+ channel.on_data do |_c, d|
85
+ @connected = true
86
+ data << d
87
+ @result = data.include?('RECEIVED')
88
+ end
89
+ end
90
+
91
+ def capture_done?
92
+ now_sec = Time.now.to_i
93
+ (@term_sec > 0 && now_sec - @start_sec > @term_sec) ? true : @result
94
+ end
95
+
96
+ def capture_command
97
+ "sudo tcpdump -c1 -nnn -i any #{@bpf} > /dev/null && echo RECEIVED"
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,52 @@
1
+ module Infrataster
2
+ module Plugin
3
+ # Infrataster plugin for firewall
4
+ module Firewall
5
+ # Represent transfer
6
+ class Transfer
7
+ def initialize(src_node, dest_node, options = {})
8
+ @src_node = src_node
9
+ @dest_node = dest_node
10
+ @protocol = options[:protocol] ? options[:protocol] : :ICMP
11
+ @dest_port = options[:dest_port] ? options[:dest_port] : 80
12
+ @source_port = options[:source_port] ? options[:source_port] : nil
13
+ end
14
+
15
+ def reachable?
16
+ case @protocol
17
+ when :ICMP
18
+ icmp_reachable?
19
+ when :TCP, :UDP
20
+ transport_reachable?
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def icmp_reachable?
27
+ dest_addr = Util.address(@dest_node)
28
+ @src_node.server
29
+ .ssh_exec("ping -c1 -W3 #{dest_addr} && echo PING_OK")
30
+ .include?('PING_OK')
31
+ end
32
+
33
+ def transport_reachable?
34
+ dest_addr = Util.address(@dest_node)
35
+ bpf_options = { :'dst host' => dest_addr,
36
+ :'dst port' => @dest_port,
37
+ @protocol.downcase => nil }
38
+ bpf_options.merge!(:'src port' => @source_port) if @source_port
39
+ bpf = Capture.bpf(bpf_options)
40
+ capture = Capture.new(@dest_node, bpf)
41
+ capture.open do
42
+ nc_option = @protocol == :UDP ? '-u' : '-t'
43
+ nc_option += @source_port ? " -p #{@source_port}" : ''
44
+ @src_node.server
45
+ .ssh_exec("echo test|nc #{dest_addr} #{@dest_port} #{nc_option}")
46
+ end
47
+ capture.result
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,17 @@
1
+ module Infrataster
2
+ module Plugin
3
+ # Infrataster plugin for firewall
4
+ module Firewall
5
+ # Util
6
+ class Util
7
+ def self.address(node)
8
+ if node.respond_to?(:server)
9
+ node.server.address
10
+ else
11
+ node.to_s
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ module Infrataster
2
+ module Plugin
3
+ # Infrataster plugin for firewall
4
+ module Firewall
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,22 @@
1
+ require 'infrataster'
2
+
3
+ module Infrataster
4
+ module Resources
5
+ # Infrataster Firewall resource
6
+ class FirewallResource < BaseResource
7
+ Error = Class.new(StandardError)
8
+
9
+ attr_reader :src_node
10
+ attr_reader :dest_node
11
+
12
+ def initialize(src_node, dest_node)
13
+ @src_node = src_node
14
+ @dest_node = dest_node
15
+ end
16
+
17
+ def to_s
18
+ 'via firewall'
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe server(:src) do
4
+ describe firewall(server(:dst)) do
5
+ it { is_expected.to be_reachable }
6
+ it { is_expected.to be_reachable.dest_port(80) }
7
+ it { is_expected.to be_reachable.tcp.dest_port(80) }
8
+ it { is_expected.to be_reachable.udp.dest_port(53) }
9
+ it { is_expected.to be_reachable.tcp.dest_port(80).source_port(30123) }
10
+ end
11
+ end
@@ -0,0 +1,18 @@
1
+ # Vagrantfile
2
+ Vagrant.configure('2') do |config|
3
+ config.vm.box = 'hfm4/centos7'
4
+
5
+ config.vm.define :src do |c|
6
+ c.vm.network 'private_network', ip: '192.168.33.10'
7
+ c.vm.synced_folder '.', '/vagrant', disabled: true
8
+ end
9
+ config.vm.define :dst do |c|
10
+ c.vm.network 'private_network', ip: '192.168.33.11'
11
+ c.vm.synced_folder '.', '/vagrant', disabled: true
12
+ end
13
+ config.vm.provider 'virtualbox' do |v|
14
+ v.customize ['modifyvm', :id, '--memory', '256']
15
+ end
16
+
17
+ config.vm.provision :shell, inline: 'yum install tcpdump nc -y'
18
+ end
@@ -0,0 +1,11 @@
1
+ require 'infrataster/rspec'
2
+ require 'infrataster-plugin-firewall'
3
+
4
+ Infrataster::Server.define(:src) do |server|
5
+ server.address = '192.168.33.10/32'
6
+ server.vagrant = true
7
+ end
8
+ Infrataster::Server.define(:dst) do |server|
9
+ server.address = '192.168.33.11/32'
10
+ server.vagrant = true
11
+ end
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: infrataster-plugin-firewall
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hiroshi Ota
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: infrataster
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.28.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.28.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.7'
97
+ - !ruby/object:Gem::Dependency
98
+ name: byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Firewall plugin for Infrataster.
112
+ email:
113
+ - otahi.pub@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rubocop.yml"
120
+ - ".travis.yml"
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - infrataster-plugin-firewall.gemspec
126
+ - lib/infrataster-plugin-firewall.rb
127
+ - lib/infrataster/contexts/firewall_context.rb
128
+ - lib/infrataster/helpers/firewall_resource_helper.rb
129
+ - lib/infrataster/plugin/firewall.rb
130
+ - lib/infrataster/plugin/firewall/capture.rb
131
+ - lib/infrataster/plugin/firewall/transfer.rb
132
+ - lib/infrataster/plugin/firewall/util.rb
133
+ - lib/infrataster/plugin/firewall/version.rb
134
+ - lib/infrataster/resources/firewall_resource.rb
135
+ - spec/integration/firewall_spec.rb
136
+ - spec/integration/vm/Vagrantfile
137
+ - spec/spec_helper.rb
138
+ homepage: https://github.com/otahi/infrataster-plugin-firewall
139
+ licenses:
140
+ - MIT
141
+ metadata: {}
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubyforge_project:
158
+ rubygems_version: 2.2.2
159
+ signing_key:
160
+ specification_version: 4
161
+ summary: Firewall plugin for Infrataster.
162
+ test_files:
163
+ - spec/integration/firewall_spec.rb
164
+ - spec/integration/vm/Vagrantfile
165
+ - spec/spec_helper.rb