Sha256: 4e2cbbfc74286f609310e253fac80513e9b7958c16caa6d2ad126d01fac7c4a6

Contents?: true

Size: 409 Bytes

Versions: 40

Compression:

Stored size: 409 Bytes

Contents

require 'cloud66_agent/utils/server'

module Cloud66
	module Commands
		class Fail2ban
			def self.perform(is_banned, ip_address, attack, port)
				data = {
					is_banned: is_banned,
					ip_address: ip_address,
					attack: attack,
					port: port
				}
				Utils::Server.send_fail2ban(data)
			rescue => exc
				$logger.error "Command \"fail2ban\" failed: #{exc.message}"
				exit -1
			end
		end
	end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
cloud66_agent-1.4.5 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.4.4 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.4.3 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.4.2 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.4.1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.4.0 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.3.1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.3.0 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.8 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.7 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.6 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.5 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.5.beta2 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.5.beta1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.4 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.4.beta1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.3 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.2 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.2.1.beta1 lib/cloud66_agent/commands/fail2ban.rb