feat(proxies): introduce nftables command executor and utilities, default certificate provider, expanded route/socket helper modules, and security improvements
This commit is contained in:
38
ts/proxies/nftables-proxy/utils/index.ts
Normal file
38
ts/proxies/nftables-proxy/utils/index.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 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';
|
||||
Reference in New Issue
Block a user