ipChecker

package
v0.0.0-...-0a1b01c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2014 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Riversist - Monitor and firewall network traffic based on DNSBLs

Copyright 2014 Dolf Schimmel, Freeaqingme.

This Source Code Form is subject to the terms of the two-clause BSD license. For its contents, please refer to the LICENSE file.

Riversist - Monitors network traffic for malicious hosts based on DNSBLs

Copyright 2014 Dolf Schimmel, Freeaqingme.

This Source Code Form is subject to the terms of the two-clause BSD license. For its contents, please refer to the LICENSE file.

Riversist - Monitors network traffic for malicious hosts based on DNSBLs

Copyright 2014 Dolf Schimmel, Freeaqingme.

This Source Code Form is subject to the terms of the two-clause BSD license. For its contents, please refer to the LICENSE file.

Index

Constants

View Source
const (
	LOG_EMERG syslog.Priority = iota
	LOG_ALERT
	LOG_CRIT
	LOG_ERR
	LOG_WARNING
	LOG_NOTICE
	LOG_INFO
	LOG_DEBUG
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface{}

type DnsblChecker

type DnsblChecker struct {
	IpChecker
	// contains filtered or unexported fields
}

func NewDnsblChecker

func NewDnsblChecker(config DnsblConfig) *DnsblChecker

func (*DnsblChecker) GetName

func (checker *DnsblChecker) GetName() string

func (*DnsblChecker) IsIpMalicious

func (checker *DnsblChecker) IsIpMalicious(ip string, logger Logger) bool

type DnsblConfig

type DnsblConfig struct {
	Config
	Host                string
	Malicious_Threshold uint32
}

type IpChecker

type IpChecker interface {
	IsIpMalicious(ip string, logger Logger) bool
	GetName() string
}

type Logger

type Logger interface {
	Fatal(msg ...string)
	Log(level syslog.Priority, msgArray ...string)
}

type ProjectHoneyPotChecker

type ProjectHoneyPotChecker struct {
	IpChecker
	// contains filtered or unexported fields
}

func NewProjectHoneyPotChecker

func NewProjectHoneyPotChecker(config ProjectHoneyPotConfig) *ProjectHoneyPotChecker

func (*ProjectHoneyPotChecker) GetName

func (checker *ProjectHoneyPotChecker) GetName() string

func (*ProjectHoneyPotChecker) IsIpMalicious

func (checker *ProjectHoneyPotChecker) IsIpMalicious(ip string, logger Logger) bool

type ProjectHoneyPotConfig

type ProjectHoneyPotConfig struct {
	Config
	Enabled      bool
	Api_Key      string
	Stale_Period int
	Max_Score    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL