faq обучение настройка
Текущее время: Ср июл 30, 2025 23:29

Часовой пояс: UTC + 3 часа




Начать новую тему Ответить на тему  [ Сообщений: 3 ] 
Автор Сообщение
СообщениеДобавлено: Пт апр 18, 2014 12:15 
Не в сети

Зарегистрирован: Пн янв 11, 2010 14:00
Сообщений: 21
Здравствуйте,

Прочитал форум и презенташку про портирование правил ACL с 3200 A1/B1 на С1, но не все равно не могу разобраться с одним правилом:

A1/B1:
#Запретить весь ipv6 идущий со всех портов
create access_profile packet_content_mask offset1 l2 0 0xFFFF profile_id 1
config access_profile profile_id 1 add access_id 1 packet_content offset1 0x86dd mask 0xffff port 1-28 deny

#Запрет PPPoE PADO пакетов с клиентских портов.
create access_profile packet_content_mask offset1 l2 0 0xFFFF offset2 l3 0 0xFF profile_id 2
config access_profile profile_id 2 add access_id 1 packet_content offset1 0x8863 offset2 0x0007 port 1-28 deny

На С1:
#Запретить весь ipv6 идущий со всех портов
create access_profile profile_id 1 ethernet ethernet_type
config access_profile profile_id 1 add access_id 1 ethernet ethernet_type 0x86DD port 1-28 deny

А вот правило для PPPoE PADO переписать под новую прошивку никак не могу. После packet_content_mask идут offset_chunk_1-4. Помогите пжлс.


Вернуться наверх
 Профиль  
 
СообщениеДобавлено: Пт апр 18, 2014 15:47 
Не в сети

Зарегистрирован: Вт фев 07, 2012 10:47
Сообщений: 302
Откуда: Красноярск
Я у себя схожую ситуацию обстряпал вот так:
DES-3200-XX rev.A/B
Код:
create access_profile  ethernet source_mac FF-FF-FF-FF-FF-FF destination_mac FF-FF-FF-FF-FF-FF ethernet_type  profile_id 20
### Block clients with server MAC Cisco asr1002
config access_profile profile_id 20 add access_id auto_assign ethernet source_mac 30-F7-0D-3E-85-00 port 1-16 deny
### Allow broadcast PPPoE-session PADI packets from clients (RSTP: UpLink ports 17-18)
config access_profile profile_id 20 add access_id auto_assign ethernet destination_mac FF-FF-FF-FF-FF-FF ethernet_type 0x8863 port 1-18 permit priority 3 replace_priority replace_dscp_with 24
### Allow PPPoE-session packets from clients to hub (RSTP: UpLink ports 17-18)
config access_profile profile_id 20 add access_id auto_assign ethernet destination_mac 30-F7-0D-3E-85-00 ethernet_type 0x8863 port 1-18 permit priority 3 replace_priority replace_dscp_with 24
config access_profile profile_id 20 add access_id auto_assign ethernet destination_mac 30-F7-0D-3E-85-00 ethernet_type 0x8864 port 1-18 permit priority 3 replace_priority replace_dscp_with 24

###############
## Deny all          ###
###############
create access_profile ethernet source_mac 00-00-00-00-00-00 profile_id 99
config access_profile profile_id 99 add access_id auto_assign ethernet source_mac 00-00-00-00-00-00 port 1-16 deny

###############
## Block IPv6       ###
###############
create cpu access_profile profile_id 1 ethernet  ethernet_type
config cpu access_profile profile_id 1 add access_id 1 ethernet ethernet_type 0x86DD port 1-18 deny
enable cpu_interface_filtering


DES-3200-XX rev.C
Код:
create access_profile profile_id 1 profile_name Allow_legal_PPPoE_servers ethernet source_mac FF-FF-FF-FF-FF-FF destination_mac FF-FF-FF-FF-FF-FF ethernet_type
### Block clients with server MAC
config access_profile profile_id 1 add access_id auto_assign ethernet source_mac 30-F7-0D-3E-85-00 port 1-48 deny
### Allow broadcast PPPoE-session PADI packets from clients (RSTP: UpLink ports 49-52)
config access_profile profile_id 1 add access_id auto_assign ethernet destination_mac FF-FF-FF-FF-FF-FF ethernet_type 0x8863 port 1-52 permit priority 3 replace_priority replace_dscp_with 24
### Allow PPPoE-session packets from clients to hub (RSTP: UpLink ports 49-52)
config access_profile profile_id 1 add access_id auto_assign ethernet destination_mac 30-F7-0D-3E-85-00 ethernet_type 0x8863 port 1-52 permit priority 3 replace_priority replace_dscp_with 24
config access_profile profile_id 1 add access_id auto_assign ethernet destination_mac 30-F7-0D-3E-85-00 ethernet_type 0x8864 port 1-52 permit priority 3 replace_priority replace_dscp_with 24
###############
## Deny all ###
###############

create access_profile profile_id 99 profile_name Deny_all ethernet source_mac 00-00-00-00-00-00
config access_profile profile_id 99 add access_id auto_assign ethernet source_mac 00-00-00-00-00-00 port 1-48 deny

###############
## Block IPv6       ###
###############

create cpu access_profile profile_id 1 ethernet  ethernet_type
config cpu access_profile profile_id 1 add access_id 1 ethernet ethernet_type 0x86DD port 1-52 deny
enable cpu_interface_filtering

_________________
Народ и партия - едины!


Вернуться наверх
 Профиль  
 
СообщениеДобавлено: Пт апр 18, 2014 18:03 
Не в сети

Зарегистрирован: Пт май 05, 2006 16:52
Сообщений: 4181
Откуда: default
Код:
create access_profile profile_id 1 profile_name PCM packet_content_mask offset_chunk_1 3 0xFFFF offset_chunk_2 4 0xFF0000 offset_chunk_3 6 0x00ff0000 offset_chunk_4 9 0x0000ffff
#PADO Block
config access_profile profile_id 1 add access_id auto_assign packet_content offset_chunk_1 0x8863 offset_chunk_2 0x70000 port 1-24 deny
#TCP(0x60000) dst port 445 (0x1BD) block
config access_profile profile_id 1 add access_id auto_assign packet_content offset_chunk_3 0x60000 offset_chunk_4 0x1BD port 1-24 deny


Вернуться наверх
 Профиль  
 
Показать сообщения за:  Сортировать по:  
Начать новую тему Ответить на тему  [ Сообщений: 3 ] 

Часовой пояс: UTC + 3 часа


Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 4


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Создано на основе phpBB® Forum Software © phpBB Group
Русская поддержка phpBB