diff --git a/package.json b/package.json index 2ebd24de..929408e4 100644 --- a/package.json +++ b/package.json @@ -205,6 +205,7 @@ "ip-matching": "^2.1.2", "is-cidr": "^5.0.3", "is-ip": "^5.0.1", + "ip-matching": "^2.1.2", "json5": "^2.2.3", "jsonpath": "^1.1.1", "jsonar-mod": "^1.9.0", diff --git a/src/tools/index.ts b/src/tools/index.ts index 5d8cc786..27ffa952 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -200,6 +200,7 @@ import { tool as manyUnitsConverter } from './many-units-converter'; import { tool as powerConverter } from './power-converter'; import { tool as dockerComposeConverter } from './docker-compose-converter'; import { tool as imageExifReader } from './image-exif-reader'; +import { tool as ipInRange } from './ip-in-range'; import { tool as yamlViewer } from './yaml-viewer'; import { tool as barcodeReader } from './barcode-reader'; import { tool as barcodeGenerator } from './barcode-generator'; @@ -404,6 +405,7 @@ export const toolsByCategory: ToolCategory[] = [ ipv4SubnetCalculator, ipv4AddressConverter, // ipv6AddressConverter, + ipInRange, ipv4RangeExpander, macAddressLookup, macAddressGenerator, diff --git a/src/tools/ip-in-range/index.ts b/src/tools/ip-in-range/index.ts new file mode 100644 index 00000000..b8154b45 --- /dev/null +++ b/src/tools/ip-in-range/index.ts @@ -0,0 +1,12 @@ +import { UnfoldMoreOutlined } from '@vicons/material'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'IP in Range/CIDR/Mask', + path: '/ip-in-range', + description: 'Given a CIDR/IP Range/Wildcard IP/IP Mask, tell if a given IP is in subnet range', + keywords: ['ip', 'cidr', 'range'], + component: () => import('./ip-in-range.vue'), + icon: UnfoldMoreOutlined, + createdAt: new Date('2024-03-09'), +}); diff --git a/src/tools/ip-in-range/ip-in-range.vue b/src/tools/ip-in-range/ip-in-range.vue new file mode 100644 index 00000000..4e023b35 --- /dev/null +++ b/src/tools/ip-in-range/ip-in-range.vue @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + Match + + + + + + Not Match + + + + + + + + + + + + + + + + + + + + + + + +