Versions in this module Expand all Collapse all v1 v1.38.0 Mar 23, 2026 v1.37.1 Mar 23, 2026 v1.37.0 Mar 23, 2026 v1.36.0 Mar 23, 2026 Changes in this version + func AnalyticsCountriesHandler(w http.ResponseWriter, r *http.Request) + func AnalyticsIPHandler(w http.ResponseWriter, r *http.Request) + func AnalyticsSummaryHandler(w http.ResponseWriter, r *http.Request) + func AnalyticsTopCountriesHandler(w http.ResponseWriter, r *http.Request) + func BanHandler(w http.ResponseWriter, r *http.Request) + func BandwidthConnectionsHandler(w http.ResponseWriter, r *http.Request) + func BandwidthCurrentHandler(w http.ResponseWriter, r *http.Request) + func BandwidthHandler(w http.ResponseWriter, r *http.Request) + func BandwidthHistoryHandler(w http.ResponseWriter, r *http.Request) + func BandwidthInterfacesHandler(w http.ResponseWriter, r *http.Request) + func BasicStatsHandler(w http.ResponseWriter, r *http.Request) + func ConfigFileHandler(w http.ResponseWriter, r *http.Request) + func ConfigGetHandler(w http.ResponseWriter, r *http.Request) + func ConfigResetHandler(w http.ResponseWriter, r *http.Request) + func ConfigSetHandler(w http.ResponseWriter, r *http.Request) + func ConnectionsHandler(w http.ResponseWriter, r *http.Request) + func DDoSDisableHandler(w http.ResponseWriter, r *http.Request) + func DDoSEnableHandler(w http.ResponseWriter, r *http.Request) + func DDoSStatsHandler(w http.ResponseWriter, r *http.Request) + func DashboardHandler(w http.ResponseWriter, r *http.Request) + func DashboardMetricsHandler(w http.ResponseWriter, r *http.Request) + func DecodeJSONBody(w http.ResponseWriter, r *http.Request, target interface{}) bool + func EmulateBatchHandler(w http.ResponseWriter, r *http.Request) + func EmulateHandler(w http.ResponseWriter, r *http.Request) + func EmulateQuickHandler(w http.ResponseWriter, r *http.Request) + func FeedsControlHandler(w http.ResponseWriter, r *http.Request) + func FeedsHandler(w http.ResponseWriter, r *http.Request) + func FeedsStatsHandler(w http.ResponseWriter, r *http.Request) + func FirewallCheckHandler(w http.ResponseWriter, r *http.Request) + func FirewallStatsHandler(w http.ResponseWriter, r *http.Request) + func FirewallValidateHandler(w http.ResponseWriter, r *http.Request) + func FlushHandler(w http.ResponseWriter, r *http.Request) + func GeoBanStatsHandler(w http.ResponseWriter, r *http.Request) + func GeoHandler(w http.ResponseWriter, r *http.Request) + func HealthFixHandler(w http.ResponseWriter, r *http.Request) + func HealthHandler(w http.ResponseWriter, r *http.Request) + func JSON(w http.ResponseWriter, status int, data interface{}) + func JSONError(w http.ResponseWriter, status int, msg string) + func JSONRaw(w http.ResponseWriter, status int, response interface{}) + func JSONSuccess(w http.ResponseWriter, message string, data interface{}) + func LogFileHandler(w http.ResponseWriter, r *http.Request) + func LoginMonitorControlHandler(w http.ResponseWriter, r *http.Request) + func LoginMonitorEventsHandler(w http.ResponseWriter, r *http.Request) + func LoginMonitorStatsHandler(w http.ResponseWriter, r *http.Request) + func LoginMonitorStatusHandler(w http.ResponseWriter, r *http.Request) + func LoginMonitorUsersHandler(w http.ResponseWriter, r *http.Request) + func LogoutHandler(store *session.Store) http.HandlerFunc + func LogsHandler(w http.ResponseWriter, r *http.Request) + func LogsViewerHandler(w http.ResponseWriter, r *http.Request) + func MeHandler(w http.ResponseWriter, r *http.Request) + func MetricsEnableHandler(w http.ResponseWriter, r *http.Request) + func MetricsSamplesHandler(w http.ResponseWriter, r *http.Request) + func MetricsSnapshotHandler(w http.ResponseWriter, r *http.Request) + func MetricsStatusHandler(w http.ResponseWriter, r *http.Request) + func NFTablesRulesetHandler(w http.ResponseWriter, r *http.Request) + func NFTablesSaveHandler(w http.ResponseWriter, r *http.Request) + func NFTablesValidateHandler(w http.ResponseWriter, r *http.Request) + func PortBanHandler(w http.ResponseWriter, r *http.Request) + func PortScanLogsHandler(w http.ResponseWriter, r *http.Request) + func PortStatusHandler(w http.ResponseWriter, r *http.Request) + func PortUnbanHandler(w http.ResponseWriter, r *http.Request) + func PortsHandler(w http.ResponseWriter, r *http.Request) + func PortscanControlHandler(w http.ResponseWriter, r *http.Request) + func PortscanStatsHandler(w http.ResponseWriter, r *http.Request) + func PrometheusMetricsHandler(w http.ResponseWriter, r *http.Request) + func RecentActivityHandler(w http.ResponseWriter, r *http.Request) + func ReloadHandler(w http.ResponseWriter, r *http.Request) + func RulesHandler(w http.ResponseWriter, r *http.Request) + func SearchHandler(w http.ResponseWriter, r *http.Request) + func SessionInfoHandler(store *session.Store) http.HandlerFunc + func SessionLoginHandler(authService *auth.PAMAuth, store *session.Store) http.HandlerFunc + func SessionRevokeHandler(store *session.Store) http.HandlerFunc + func SessionsListHandler(store *session.Store) http.HandlerFunc + func StatsBansHandler(w http.ResponseWriter, r *http.Request) + func StatsCountriesHandler(w http.ResponseWriter, r *http.Request) + func StatsTrafficHandler(w http.ResponseWriter, r *http.Request) + func StatsTrendHandler(w http.ResponseWriter, r *http.Request) + func StatusHandler(w http.ResponseWriter, r *http.Request) + func SuricataAlertsHandler(w http.ResponseWriter, r *http.Request) + func SuricataConfigValidateHandler(w http.ResponseWriter, r *http.Request) + func SuricataControlHandler(w http.ResponseWriter, r *http.Request) + func SuricataProfileApplyHandler(w http.ResponseWriter, r *http.Request) + func SuricataProfileDetectHandler(w http.ResponseWriter, r *http.Request) + func SuricataProfileShowHandler(w http.ResponseWriter, r *http.Request) + func SuricataRulesGenerateHandler(w http.ResponseWriter, r *http.Request) + func SuricataRulesReloadHandler(w http.ResponseWriter, r *http.Request) + func SuricataRulesStatsHandler(w http.ResponseWriter, r *http.Request) + func SuricataRulesUpdateHandler(w http.ResponseWriter, r *http.Request) + func SuricataScanHandler(w http.ResponseWriter, r *http.Request) + func SuricataServicesHandler(w http.ResponseWriter, r *http.Request) + func SuricataStatusHandler(w http.ResponseWriter, r *http.Request) + func SyncFeedsHandler(w http.ResponseWriter, r *http.Request) + func SystemFHSFixHandler(w http.ResponseWriter, r *http.Request) + func SystemFHSHandler(w http.ResponseWriter, r *http.Request) + func SystemHealthFixHandler(w http.ResponseWriter, r *http.Request) + func SystemHealthHandler(w http.ResponseWriter, r *http.Request) + func SystemHostnameHandler(w http.ResponseWriter, r *http.Request) + func SystemInfoHandler(w http.ResponseWriter, r *http.Request) + func SystemLogsHandler(w http.ResponseWriter, r *http.Request) + func SystemModulesHandler(w http.ResponseWriter, r *http.Request) + func SystemOverviewStatusHandler(w http.ResponseWriter, r *http.Request) + func SystemServiceControlHandler(w http.ResponseWriter, r *http.Request) + func SystemServicesDetailHandler(w http.ResponseWriter, r *http.Request) + func SystemServicesHandler(w http.ResponseWriter, r *http.Request) + func SystemTimersDetailHandler(w http.ResponseWriter, r *http.Request) + func SystemTimersHandler(w http.ResponseWriter, r *http.Request) + func UIListBannedIPsHandler(w http.ResponseWriter, r *http.Request) + func UIWhitelistAddHandler(w http.ResponseWriter, r *http.Request) + func UIWhitelistGetHandler(w http.ResponseWriter, r *http.Request) + func UnbanHandler(w http.ResponseWriter, r *http.Request) + func WhitelistAddHandler(w http.ResponseWriter, r *http.Request) + func WhitelistCountHandler(w http.ResponseWriter, r *http.Request) + func WhitelistGetHandler(w http.ResponseWriter, r *http.Request) + func WhitelistRemoveHandler(w http.ResponseWriter, r *http.Request) + type API struct + BlacklistIPv4Set *setsync.Set + BlacklistIPv6Set *setsync.Set + NFT *setsync.NFTManager + WhitelistIPv4Set *setsync.Set + WhitelistIPv6Set *setsync.Set + func (api *API) HandleBlacklistIPv4Add(w http.ResponseWriter, r *http.Request) + func (api *API) HandleBlacklistIPv4Batch(w http.ResponseWriter, r *http.Request) + func (api *API) HandleBlacklistIPv4Preview(w http.ResponseWriter, r *http.Request) + func (api *API) HandleBlacklistIPv4Remove(w http.ResponseWriter, r *http.Request) + func (api *API) HandleWhitelistIPv4Add(w http.ResponseWriter, r *http.Request) + func (api *API) HandleWhitelistIPv4Batch(w http.ResponseWriter, r *http.Request) + func (api *API) HandleWhitelistIPv4Preview(w http.ResponseWriter, r *http.Request) + func (api *API) HandleWhitelistIPv4Remove(w http.ResponseWriter, r *http.Request) + type APIResponse struct + Data interface{} + Error string + Message string + Success bool + Timestamp int64 + func NewDataResponse(data interface{}) APIResponse + func NewErrorResponse(err string) APIResponse + func NewSuccessResponse(message string, data interface{}) APIResponse + type BandwidthCurrentResponse struct + Connections ConnectionCounts + Interfaces []BandwidthInterface + Peaks5Min BandwidthPeaks + Protocols map[string]ProtocolStats + Timestamp int64 + Total BandwidthTotal + type BandwidthHistoryResponse struct + End int64 + Interval int + Samples []BandwidthSample + Start int64 + TotalSamples int + type BandwidthInterface struct + Name string + RxBytes uint64 + RxMbps float64 + RxPackets uint64 + Status string + TxBytes uint64 + TxMbps float64 + TxPackets uint64 + type BandwidthInterfaceDetailed struct + Drops int + Errors int + History5Min []BandwidthSample + IP string + MAC string + Name string + RxBytes uint64 + RxMbps float64 + RxPackets uint64 + Status string + TxBytes uint64 + TxMbps float64 + TxPackets uint64 + type BandwidthInterfacesResponse struct + Interfaces []BandwidthInterfaceDetailed + Timestamp int64 + type BandwidthMetrics struct + Connections ConnectionCounts + Interfaces map[string]*BandwidthInterface + Peaks BandwidthPeaks + Protocols map[string]*ProtocolStats + Timestamp time.Time + TotalRxMbps float64 + TotalTxMbps float64 + type BandwidthPeaks struct + RxMbps float64 + Timestamp int64 + TxMbps float64 + type BandwidthSample struct + RxMbps float64 + Timestamp int64 + TxMbps float64 + type BandwidthTotal struct + RxBytes uint64 + RxMbps float64 + RxPackets uint64 + TxBytes uint64 + TxMbps float64 + TxPackets uint64 + type BatchRequest struct + Add []string + Remove []string + type BatchResponse struct + Added int + Message string + Removed int + Success bool + Unchanged int + type Connection struct + LocalAddr string + LocalPort string + PeerAddr string + PeerPort string + ProcessInfo string + Protocol string + RecvQ int + SendQ int + State string + Timer string + TimerValue string + UID string + type ConnectionCounts struct + Active int + CloseWait int + Established int + TimeWait int + type ConnectionStats struct + ByProtocol map[string]int + ByState map[string]int + Connections []Connection + Timestamp time.Time + Total int + type DDoSStats struct + Blocked24h int + BlockedTotal int + BytesDropped int + Enabled bool + Mode string + PacketsDropped int + RateLimit int + SuricataAvailable bool + type EmulateEvalEntry struct + Entry string + Matched bool + Set string + type EmulateNFT struct + Chain string + Family string + RuleHandle int + SetName string + Table string + type EmulateQuery struct + Direction string + Family string + IP string + Port int + Protocol string + type EmulateReason struct + ListType string + MatchingCIDR string + Module string + Source string + type EmulateResponse struct + EvaluationOrder []EmulateEvalEntry + Query EmulateQuery + Result EmulateResult + type EmulateResult struct + Decision string + Explanation string + NFTables EmulateNFT + Reason EmulateReason + type ErrorResponse struct + Error string + type FirewallCheckRequest struct + Value string + type InterfaceStats struct + Name string + RxBytes uint64 + RxMbps float64 + RxPackets uint64 + TxBytes uint64 + TxMbps float64 + TxPackets uint64 + type LoginEvent struct + IP string + Location string + Status string + Timestamp string + Type string + User string + type LoginEventStats struct + Failed int + Success int + Today int + Total int + type LoginMonitorConfig struct + Enabled bool + Format string + GeoIP bool + type LoginMonitorFailed struct + AlertOnFailed bool + Threshold int + WindowSeconds int + type LoginMonitorStats struct + Events LoginEventStats + Service LoginServiceStats + type LoginMonitorStatus struct + Config LoginMonitorConfig + ConfigExists bool + FailedAttempts LoginMonitorFailed + LogLines int + ModuleExists bool + Monitoring LoginMonitorTypes + ServiceStatus string + type LoginMonitorTypes struct + Console bool + SSH bool + SU bool + SUDO bool + type LoginRequest struct + Password string + Username string + type LoginResponse struct + Message string + Success bool + Token string + type LoginServiceStats struct + Running bool + Uptime string + type LoginUser struct + Failed int + LastLogin string + Success int + Total int + Username string + type NetworkStats struct + Interfaces []InterfaceStats + RecentSamples []metrics.Sample + Timestamp time.Time + Total InterfaceStats + type PortscanStats struct + Blocked24h int + BlockedTotal int + Enabled bool + Mode string + MonitoredPorts int + SuricataAvailable bool + type PreviewRequest struct + Desired []string + type PreviewResponse struct + ToAdd []string + ToRemove []string + Unchanged int + type ProtocolStats struct + Bytes uint64 + Packets uint64 + type RecentActivity struct + Action string + Details string + IP string + Source string + TimeAgo string + Timestamp string + Type string + type SingleIPRequest struct + IP string + type SingleIPResponse struct + Message string + Success bool + type SuccessResponse struct + Message string + Success bool + type SuricataAlert struct + Category string + DestIP string + DestPort int + Protocol string + SID int + Severity int + Signature string + SrcIP string + SrcPort int + Timestamp string + type SuricataRuleStats struct + Disabled int + Enabled int + Top []SuricataTopRule + Total int + Triggered int + type SuricataService struct + Categories string + Detected bool + Icon string + Name string + Port int + Protocol string + type SuricataServiceMapping struct + Categories string + Enabled bool + Ports string + Service string + type SuricataStatus struct + Alerts24h int + DropRate float64 + EVEPath string + LastReload string + MemoryMB int + Profile string + RulesCount int + Running bool + Uptime string + Version string + type SuricataTopRule struct + Count int + Name string + SID int + Severity int