ssh_guard 0.0.1 → 0.0.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3
@@ -6,7 +6,7 @@ module SshGuard
6
6
  end
7
7
  def block_host(host)
8
8
  unless blocked?(host)
9
- `ipfw add deny tcp from #{host} to me ssh`
9
+ `ipfw add 100 deny tcp from #{host} to me ssh`
10
10
  @logger.warn("Blocking host #{host}!")
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ describe SshGuard::FirewallAdapters::IPFWAdapter do
6
6
  end
7
7
  it "should call ipfw" do
8
8
  @firewall.stub(:blocked?).and_return(false)
9
- @firewall.should_receive(:`).with("ipfw add deny tcp from 192.168.1.1 to me ssh")
9
+ @firewall.should_receive(:`).with("ipfw add 100 deny tcp from 192.168.1.1 to me ssh")
10
10
  @firewall.block_host('192.168.1.1')
11
11
  end
12
12
  it "should not block a host when it is already blocked" do
@@ -16,4 +16,4 @@ describe SshGuard::FirewallAdapters::IPFWAdapter do
16
16
  @firewall.block_host('192.168.1.1')
17
17
  end
18
18
 
19
- end
19
+ end
data/ssh_guard.gemspec ADDED
@@ -0,0 +1,81 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ssh_guard}
8
+ s.version = "0.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jelle Helsen"]
12
+ s.date = %q{2010-12-02}
13
+ s.default_executable = %q{ssh_guard}
14
+ s.description = %q{It protects your server from ssh password guessing bots.}
15
+ s.email = %q{jelle.helsen@hcode.be}
16
+ s.executables = ["ssh_guard"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "autotest/discover.rb",
31
+ "bin/ssh_guard",
32
+ "lib/ssh_guard.rb",
33
+ "lib/ssh_guard/database.rb",
34
+ "lib/ssh_guard/firewall_adapters.rb",
35
+ "spec/database_spec.rb",
36
+ "spec/ipfw_adapter_spec.rb",
37
+ "spec/spec_helper.rb",
38
+ "spec/ssh_guard_spec.rb",
39
+ "ssh_guard.gemspec"
40
+ ]
41
+ s.homepage = %q{http://github.com/jellehelsen/ssh_guard}
42
+ s.licenses = ["MIT"]
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = %q{1.3.7}
45
+ s.summary = %q{guardian angel for ssh}
46
+ s.test_files = [
47
+ "spec/database_spec.rb",
48
+ "spec/ipfw_adapter_spec.rb",
49
+ "spec/spec_helper.rb",
50
+ "spec/ssh_guard_spec.rb"
51
+ ]
52
+
53
+ if s.respond_to? :specification_version then
54
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
55
+ s.specification_version = 3
56
+
57
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
+ s.add_runtime_dependency(%q<sequel>, [">= 0"])
59
+ s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 0"])
60
+ s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
61
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
63
+ s.add_development_dependency(%q<rcov>, [">= 0"])
64
+ else
65
+ s.add_dependency(%q<sequel>, [">= 0"])
66
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
67
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
68
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
69
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
70
+ s.add_dependency(%q<rcov>, [">= 0"])
71
+ end
72
+ else
73
+ s.add_dependency(%q<sequel>, [">= 0"])
74
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
75
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
76
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
77
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
78
+ s.add_dependency(%q<rcov>, [">= 0"])
79
+ end
80
+ end
81
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh_guard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jelle Helsen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-30 00:00:00 +01:00
18
+ date: 2010-12-02 00:00:00 +01:00
19
19
  default_executable: ssh_guard
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -135,6 +135,7 @@ files:
135
135
  - spec/ipfw_adapter_spec.rb
136
136
  - spec/spec_helper.rb
137
137
  - spec/ssh_guard_spec.rb
138
+ - ssh_guard.gemspec
138
139
  has_rdoc: true
139
140
  homepage: http://github.com/jellehelsen/ssh_guard
140
141
  licenses: