39 lines
815 B
TypeScript
39 lines
815 B
TypeScript
/**
|
|
* NFTables Proxy Utilities
|
|
*
|
|
* This module exports utility functions and classes for NFTables operations.
|
|
*/
|
|
|
|
// Command execution
|
|
export { NftCommandExecutor } from './nft-command-executor.js';
|
|
export type { INftLoggerFn, INftExecutorOptions } from './nft-command-executor.js';
|
|
|
|
// Port specification normalization
|
|
export {
|
|
normalizePortSpec,
|
|
validatePorts,
|
|
formatPortRange,
|
|
portSpecToNftExpr,
|
|
rangesOverlap,
|
|
mergeOverlappingRanges,
|
|
countPorts,
|
|
isPortInSpec
|
|
} from './nft-port-spec-normalizer.js';
|
|
|
|
// Rule validation
|
|
export {
|
|
isValidIP,
|
|
isValidIPv4,
|
|
isValidIPv6,
|
|
isValidHostname,
|
|
isValidTableName,
|
|
isValidRate,
|
|
validateIPs,
|
|
validateHost,
|
|
validateTableName,
|
|
validateQosSettings,
|
|
validateSettings,
|
|
isIPForFamily,
|
|
filterIPsByFamily
|
|
} from './nft-rule-validator.js';
|