IP Access Control in Authorization Code
CategoriesGoSoftware ModulesNodeJS

Include this module in your Internet Protocol Socket Server and easily protect it from Denial of Service Attacks.

There is a Go module and a NodeJS module.

It offers IPv4, IPv6 and a notification closure (callback).

//set authorization status for an IP

//logout
ipac.ModifyAuth(&ip_ac, 0, "127.0.0.1")

//invalid login credentials
ipac.ModifyAuth(&ip_ac, 1, "127.0.0.1")

//authorized (valid login credentials)
ipac.ModifyAuth(&ip_ac, 2, "127.0.0.1")

//notify closure, use to send firewall notifications to admins
ip_ac.NotifyClosure = func(info string, ips []string) {

	// info is a string about the event
	// ips is a list of ip addresses related to the event

}

It works with and without iptables.