В связи с этим просим помощи с реорганизацией текущих правил под новую ревизию.
На данный момент есть такие профили (по ID профиля):
1. IP ACL: разрешаем всем обращаться к 53 порту (ДНС) с ограничением скорости
Код:
create access_profile ip destination_ip 0.0.0.0 udp dst_port_mask 0xFFFF profile_id 1
config access_profile profile_id 1 add access_id 1 ip destination_ip 0.0.0.0 udp dst_port 53 port 1-28 permit
config flow_meter profile_id 1 access_id 1 rate 64 burst 8 rate_exceed drop_packet
2. PCF ACL: блочим порты 135, 137, 138, 139, 2869, 1900
Код:
create access_profile packet_content_mask offset1 l4 2 0xFFFF profile_id 2
config access_profile profile_id 2 add access_id 1 packet_content offset1 0x0087 port 1-24 deny
config access_profile profile_id 2 add access_id 2 packet_content offset1 0x0089 port 1-24 deny
config access_profile profile_id 2 add access_id 3 packet_content offset1 0x008a port 1-24 deny
config access_profile profile_id 2 add access_id 4 packet_content offset1 0x008b port 1-24 deny
config access_profile profile_id 2 add access_id 5 packet_content offset1 0x0b35 port 1-24 deny
config access_profile profile_id 2 add access_id 6 packet_content offset1 0x076c port 1-24 deny
3. IP ACL: ограничиваем скорость для ICMP
Код:
create access_profile ip destination_ip 0.0.0.0 icmp profile_id 3
config access_profile profile_id 3 add access_id 1 ip destination_ip 0.0.0.0 icmp port 25-28 permit
config access_profile profile_id 3 add access_id 2 ip destination_ip 0.0.0.0 icmp port 1-24 permit
config flow_meter profile_id 3 access_id 2 rate 64 burst 8 rate_exceed drop_packet
4. IP ACL: блокируем весь трафик к шлюзам по умолчанию
Код:
create access_profile ip destination_ip 255.0.0.255 profile_id 4
config access_profile profile_id 4 add access_id 1 ip destination_ip 10.0.0.254 port 1-24 deny
6. IP ACL: привязка абонентов IP-PORT (привязка по MAC нас не устраивает)
Код:
create access_profile ip source_ip 255.255.255.255 profile_id 6
config access_profile profile_id 6 add access_id 1 ip source_ip 10.1.2.3 port 1 permit
...
7. IP ACL: блокируем всех непривязанных на абонентских портах (1-24)
Код:
create access_profile ip source_ip 0.0.0.0 profile_id 7
config access_profile profile_id 7 add access_id 1 ip source_ip 0.0.0.0 port 25-28 permit
config access_profile profile_id 7 add access_id 2 ip source_ip 0.0.0.0 port 1-24 deny
Далее 2 профиля ARP psoofing prevention.
8. PCF ACL: разрешаем ARP-запросы только привязанным к портам абонентам
Код:
create access_profile packet_content_mask offset1 l2 0 0xFFFF offset2 l3 14 0xFFFF offset3 l3 16 0xFFFF profile_id 8
config access_profile profile_id 8 add access_id 1 packet_content offset1 0x0806 offset2 0x0a01 offset3 0x0203 port 1 permit
...
9. PCF ACL: блокируем все остальные ARP
Код:
create access_profile packet_content_mask offset1 l2 0 0xFFFF profile_id 9
config access_profile profile_id 9 add access_id 1 packet_content offset1 0x0806 port 1 deny
...