DES-3526
Firmware 6.00.B07
Нужно разрешить хождение любого трафика только этим подсетям 172.16.9.0/24, 172.16.19.0/24, 172.16.29.0/24, а все остальное блокировать.
Проверьте пожалуйста правильность моих правил.
1) Борьба с ненужными ARP запросами.
Запрет ARP запросов типа:
arp who-has 172.16.37.243 tell 172.16.9.0/24
arp who-has 172.16.37.243 tell 172.16.19.0/24
arp who-has 172.16.37.243 tell 172.16.29.0/24
Разрешаем ARP запросы типа:
arp who-has 172.16.9.0/24 tell 0.0.0.0/0
arp who-has 172.16.19.0/24 tell 0.0.0.0/0
arp who-has 172.16.29.0/24 tell 0.0.0.0/0
172.16.9.0/24 - ac1009ff
172.16.19.0/24 - ac1013ff
172.16.29.0/24 - ac101dff
arp - 0806
Перехваченные пакеты:
Код:
0000 ffffffff ffff0000 e86a03de xxxxxxxx
0010 08060001 08000604 00010000 e86a03de
0020 ac1025f3 00000000 0000ac10 09ff0000
0030 00000000 00000000 00000000 00000000
offset_16-31 08060001 08000604 00010000 e86a03de
offset_32-47 ac1025f3 00000000 0000ac10 09ff0000
0000 ffffffff ffff0000 e86a03de xxxxxxxx
0010 08060001 08000604 00010000 e86a03de
0020 ac1025f3 00000000 0000ac10 13ff0000
0030 00000000 00000000 00000000 00000000
offset_16-31 08060001 08000604 00010000 e86a03de
offset_32-47 ac1025f3 00000000 0000ac10 13ff0000
0000 ffffffff ffff0000 e86a03de xxxxxxxx
0010 08060001 08000604 00010000 e86a03de
0020 ac1025f3 00000000 0000ac10 1dff0000
0030 00000000 00000000 00000000 00000000
offset_16-31 08060001 08000604 00010000 e86a03de
offset_32-47 ac1025f3 00000000 0000ac10 1dff0000
Правила полученные...
Код:
create access_profile packet_content_mask offset_16-31 0xffff0000 0x0 0x0 0x0 offset_32-47 0x0 0x0 0x0000ffff 0xffff0000 profile_id 1
config access_profile profile_id 1 add access_id 1 packet_content_mask offset_16-31 0x08060000 0x0 0x0 0x0 offset_32-47 0x0 0x0 0x0000ac10 0x09ff0000 port 1-26 permit
config access_profile profile_id 1 add access_id 2 packet_content_mask offset_16-31 0x08060000 0x0 0x0 0x0 offset_32-47 0x0 0x0 0x0000ac10 0x13ff0000 port 1-26 permit
config access_profile profile_id 1 add access_id 3 packet_content_mask offset_16-31 0x08060000 0x0 0x0 0x0 offset_32-47 0x0 0x0 0x0000ac10 0x1dff0000 port 1-26 permit
Блокируем состальной ARP броадкаст.
Код:
create access_profile ethernet destination_mac ff-ff-ff-ff-ff-ff ethernet_type profile_id 2
config access_profile profile_id 2 add access_id 1 ethernet destination_mac ff-ff-ff-ff-ff-ff ethernet_type 0x806 port 1-26 deny
2) Тут разрешаются наши подсети на уровне ip.
Код:
create access_profile ip source_ip_mask 255.255.255.0 profile_id 3
config access_profile profile_id 3 add access_id 1 ip source_ip 172.16.9.0 port 1-26 permit
config access_profile profile_id 3 add access_id 2 ip source_ip 172.16.19.0 port 1-26 permit
config access_profile profile_id 3 add access_id 3 ip source_ip 172.16.29.0 port 1-26 permit
create access_profile ip destination_ip_mask 255.255.255.0 profile_id 4
config access_profile profile_id 4 add access_id 1 ip destination_ip 172.16.9.0 port 1-26 permit
config access_profile profile_id 4 add access_id 2 ip destination_ip 172.16.19.0 port 1-26 permit
config access_profile profile_id 4 add access_id 3 ip destination_ip 172.16.29.0 port 1-26 permit
Блокируем все остальное.
Код:
create access_profile ip source_ip_mask 0.0.0.0/0 profile_id 5
config access_profile profile_id 5 add access_id 1 ip source_ip 0.0.0.0/0 port 1-26 deny
create access_profile ip destination_ip_mask 0.0.0.0/0 profile_id 6
config access_profile profile_id 6 add access_id 1 ip destination_ip 0.0.0.0/0 port 1-26 deny
create access_profile ethernet source_mac 00-00-00-00-00-00 profile_id 7
config access_profile profile_id 7 add access_id 1 ethernet source_mac 00-00-00-00-00-00 port 1-26 deny
Спасибо.