diff --git a/src/components/standalone/security/ips/IpsCreateBypassDrawer.vue b/src/components/standalone/security/ips/IpsCreateBypassDrawer.vue index daffb3137..b4e5d667d 100644 --- a/src/components/standalone/security/ips/IpsCreateBypassDrawer.vue +++ b/src/components/standalone/security/ips/IpsCreateBypassDrawer.vue @@ -9,10 +9,7 @@ import { useI18n } from 'vue-i18n' import { ref, watch } from 'vue' import { ubusCall, ValidationError } from '@/lib/standalone/ubus' import { MessageBag } from '@/lib/validation' -import type { - AddressType, - Direction -} from '@/components/standalone/security/ips/IpsFilterBypass.vue' +import type { AddressType } from '@/components/standalone/security/ips/IpsFilterBypass.vue' import type { RadioOption } from '@nethesis/vue-components' const { t } = useI18n() @@ -31,7 +28,6 @@ watch( (value) => { if (value) { protocol.value = 'ipv4' - direction.value = 'src' ip.value = '' description.value = '' validationErrors.value.clear() @@ -44,13 +40,7 @@ const protocolOptions: RadioOption[] = [ { label: 'IPv6', id: 'ipv6' } ] -const directionOptions: RadioOption[] = [ - { label: t('standalone.ips.source_bypass'), id: 'src' }, - { label: t('standalone.ips.destination_bypass'), id: 'dst' } -] - const protocol = ref('ipv4') -const direction = ref('src') const ip = ref('') const description = ref('') const validationErrors = ref(new MessageBag()) @@ -64,7 +54,6 @@ function save() { validationErrors.value.clear() ubusCall('ns.snort', 'create-bypass', { protocol: protocol.value, - direction: direction.value, ip: ip.value, description: description.value }) @@ -109,12 +98,6 @@ function closeHandler() { :invalid-message="t(validationErrors.getFirstI18nKeyFor('ip'))" :label="t('standalone.ips.ip_address')" /> - { emit('deleted') @@ -94,11 +93,7 @@ function deleteBypass() { diff --git a/src/components/standalone/security/ips/IpsFilterBypass.vue b/src/components/standalone/security/ips/IpsFilterBypass.vue index f26f461a7..3d217fa46 100644 --- a/src/components/standalone/security/ips/IpsFilterBypass.vue +++ b/src/components/standalone/security/ips/IpsFilterBypass.vue @@ -35,11 +35,9 @@ import IpsEnabledBadge from '@/components/standalone/security/ips/IpsEnabledBadg import IpsDeleteBypassModal from '@/components/standalone/security/ips/IpsDeleteBypassModal.vue' import type { SortEvent } from '@nethesis/vue-components' -export type Direction = 'src' | 'dst' export type AddressType = 'ipv4' | 'ipv6' export type Bypass = { - direction: Direction protocol: AddressType ip: string description: string @@ -170,9 +168,6 @@ function handleDeleted() { {{ t('standalone.ips.bypass_address') }} - - {{ t('standalone.ips.bypass_direction') }} - {{ t('standalone.ips.description') }} @@ -180,7 +175,7 @@ function handleDeleted() { - + - + {{ item.ip }} - - - - {{ item.description }} diff --git a/src/components/standalone/security/ips/IpsSettings.vue b/src/components/standalone/security/ips/IpsSettings.vue index 2eb9bfc07..3b2451f43 100644 --- a/src/components/standalone/security/ips/IpsSettings.vue +++ b/src/components/standalone/security/ips/IpsSettings.vue @@ -5,6 +5,7 @@