Здравствуйте!
Все проверил. IPv6 не пускает. Похоже, это баг. IPv4 при этом работает.
Вот правила: Внешние хосты подключены через порт 1. Мой хост - через порты (некоторые) из диапазона 2-10. IPv6 это ethertype 86dd. Эти правила проверены на данной сети в свитчах других производителей.
create access_profile profile_id 1 ethernet vlan destination_mac FF-FF-FF-FF-FF-FF ethernet_type config access_profile profile_id 1 add access_id 11 ethernet vlan IX destination_mac 11-22-33-44-55-66 ethernet_type 0x800 port 1 permit rx_rate no_limit config access_profile profile_id 1 add access_id 21 ethernet vlan IX destination_mac 11-22-33-44-55-66 ethernet_type 0x806 port 1 permit rx_rate no_limit config access_profile profile_id 1 add access_id 31 ethernet vlan IX destination_mac FF-FF-FF-FF-FF-FF ethernet_type 0x806 port 1 permit rx_rate no_limit config access_profile profile_id 1 add access_id 41 ethernet vlan IX destination_mac 11-22-33-44-55-66 ethernet_type 0x86DD port 1 permit rx_rate no_limit config access_profile profile_id 1 add access_id 51 ethernet vlan IX destination_mac 33-33-FF-00-00-01 ethernet_type 0x86DD port 1 permit rx_rate no_limit create access_profile profile_id 2 ethernet vlan destination_mac FF-FF-FF-00-00-00 ethernet_type config access_profile profile_id 2 add access_id 61 ethernet vlan IX destination_mac 33-33-FF-00-00-00 ethernet_type 0x86DD port 1 permit rx_rate no_limit create access_profile profile_id 4 ethernet vlan source_mac FF-FF-FF-FF-FF-FF ethernet_type config access_profile profile_id 4 add access_id 71 ethernet vlan IX source_mac 11-22-33-44-55-66 ethernet_type 0x800 port 2-10 permit rx_rate no_limit config access_profile profile_id 4 add access_id 81 ethernet vlan IX source_mac 11-22-33-44-55-66 ethernet_type 0x806 port 2-10 permit rx_rate no_limit config access_profile profile_id 4 add access_id 91 ethernet vlan IX source_mac 11-22-33-44-55-66 ethernet_type 0x86DD port 2-10 permit rx_rate no_limit create access_profile profile_id 10 ethernet vlan config access_profile profile_id 10 add access_id 101 ethernet vlan IX port 1-10 deny
disable cpu_interface_filtering
11-22-33-44-55-66 - mac моего устройства.
Когда включаю последнее правило (запрещающее все остальное) - ping6 прекращается:
01:01:56.612874 11:22:33:44:55:66 > 00:1a:64:99:87:9a, ethertype IPv6 (0x86dd), length 70: (hlim 64, next-header ICMPv6 (58) payload length: 16) 2001:7f8:20:101::245:X: > 2001:7f8:20:101::244:100: [icmp6 sum ok] ICMP6, echo request, length 16, seq 37 01:01:56.613441 00:1a:64:99:87:9a > 11:22:33:44:55:66, ethertype IPv6 (0x86dd), length 70: (hlim 64, next-header ICMPv6 (58) payload length: 16) 2001:7f8:20:101::244:100 > 2001:7f8:20:101::245:X:: [icmp6 sum ok] ICMP6, echo reply, length 16, seq 37
тут правило включилось
01:01:57.612782 11:22:33:44:55:66 > 00:1a:64:99:87:9a, ethertype IPv6 (0x86dd), length 70: (hlim 64, next-header ICMPv6 (58) payload length: 16) 2001:7f8:20:101::245:X: > 2001:7f8:20:101::244:100: [icmp6 sum ok] ICMP6, echo request, length 16, seq 38 01:01:58.612672 11:22:33:44:55:66 > 00:1a:64:99:87:9a, ethertype IPv6 (0x86dd), length 70: (hlim 64, next-header ICMPv6 (58) payload length: 16) 2001:7f8:20:101::245:X: > 2001:7f8:20:101::244:100: [icmp6 sum ok] ICMP6, echo request, length 16, seq 39
Затем он начинает посылать ND в поисках пира, но они не проходят.
Когда удаляю это правило - ND начинает проходить, и затем пинг:
00:49:30.448514 11:22:33:44:55:66 > 33:33:ff:44:01:00, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 2001:7f8:20:101::245:X: > ff02::1:ff44:100: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:7f8:20:101::244:100
00:49:31.449121 00:1a:64:99:87:9a > 11:22:33:44:55:66, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 2001:7f8:20:101::244:100 > 2001:7f8:20:101::245:X: [icmp6 sum ok] ICMP6, neighbor advertisement, length 32, tgt is 2001:7f8:20:101::244:100, Flags [solicited, override]
Важно: Я пробовал применять запрещающее правило не ко всем портам, а только к порту 1 или к остальным портам (где моя машина подключена) - в ОБОИХ случаях все блокируется.
P.S. По tcpdump видно, что пакеты подходят под разрешающие правила.
Свитч DGS-3200-10 Firmware Version 1.50.B052 Hardware Version B1
|