faq обучение настройка
Текущее время: Чт авг 07, 2025 13:26

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




Начать новую тему Ответить на тему  [ Сообщений: 9 ] 
Автор Сообщение
 Заголовок сообщения: acl
СообщениеДобавлено: Пт фев 12, 2010 12:16 
Не в сети

Зарегистрирован: Пт фев 01, 2008 16:08
Сообщений: 80
DES-3828DC

Будет ли работать такая конструкция и будет ли работать правильно -
работает только одна сеть 172.16.0.0, бродкасты не ходят

create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.0.0 profile_id 1
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 1 permit
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 2 permit
...
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 24 permit

create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.0.0 profile_id 2
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 1 deny
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 2 deny
...
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 24 deny

create access_profile ip source_ip_mask 0.0.0.0 destination_ip_mask 0.0.0.0 profile_id 3
config access_profile profile_id 3 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 1 deny
config access_profile profile_id 3 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 2 deny
...
config access_profile profile_id 3 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 24 deny


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пт фев 12, 2010 12:35 
Не в сети

Зарегистрирован: Пт май 05, 2006 16:52
Сообщений: 4181
Откуда: default
1) 2-й профиль лишний
2) правила для серии 30хх актуально писать не по каждому порту, типа port 1 deny, а для всех портов: port all deny, это тупо съекономит правила

3) блок брудкастов делается так:

create access_prof ethernet destination_mac ff-ff-ff-ff-ff-ff ethernet_type profile_id 11
config access_prof profile 11 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff ethernet_type 0x806 port all permit

create access_prof ethernet destination_mac ff-ff-ff-ff-ff-ff profile_id 12
config access_prof profile 12 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff port all deny


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пт фев 12, 2010 12:55 
Не в сети

Зарегистрирован: Пт фев 01, 2008 16:08
Сообщений: 80
Спасибо за ответ terrible
Цитата:
2-й профиль лишний

в смысле под него можно записать два правила
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 1 permit
и
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 1 deny
у меня так не сработало - пишет одинаковые тела что ли
Цитата:
port all deny

у меня такое не работает
Цитата:
3) блок брудкастов делается так

попробую разобраться


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пт фев 12, 2010 15:09 
Не в сети

Зарегистрирован: Пт май 05, 2006 16:52
Сообщений: 4181
Откуда: default
frofis писал(а):
Спасибо за ответ terrible
Цитата:
2-й профиль лишний

в смысле под него можно записать два правила
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 1 permit
и
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 1 deny
у меня так не сработало - пишет одинаковые тела что ли

Ну он смысла не имеет, учитывая, что у вас есть 3-й, который и так убьёт весь IP трафик, неразрешённый ранее.

Так 2-й профиль будет выглядеть правильнее:
create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.255.255 profile_id 2
config access_profile profile_id 2 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.255.255 port 1 deny
но смысла всё-равно в нём нет.

frofis писал(а):
Цитата:
port all deny

у меня такое не работает

Да, прошу прощения, это актуально для 30ХХ, на 3828 всё-таки по каждому порту придётся делать.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вс фев 14, 2010 16:05 
Не в сети

Зарегистрирован: Пт фев 01, 2008 16:08
Сообщений: 80
Подводя итог можно сказать (хотя я пока не разбирался) удовлетворяют первому посту следующие правила
create access_profile ip source_ip_mask 255.255.0.0 destination_ip_mask 255.255.0.0 profile_id 1
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 1 permit
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 2 permit
...
config access_profile profile_id 1 add access_id auto_assign ip source_ip 172.16.0.0 destination_ip 172.16.0.0 port 24 permit

create access_prof ethernet destination_mac ff-ff-ff-ff-ff-ff ethernet_type profile_id 11
config access_prof profile 11 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff ethernet_type 0x806 port 1 permit
config access_prof profile 11 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff ethernet_type 0x806 port 2 permit
...
config access_prof profile 11 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff ethernet_type 0x806 port 24 permit

create access_prof ethernet destination_mac ff-ff-ff-ff-ff-ff profile_id 12
config access_prof profile 12 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff port 1 deny
config access_prof profile 12 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff port 2 deny
...
config access_prof profile 12 add access_id auto eth destination_mac ff-ff-ff-ff-ff-ff port 24 deny


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вс фев 14, 2010 20:19 
Не в сети

Зарегистрирован: Пт май 05, 2006 16:52
Сообщений: 4181
Откуда: default
ну и вот это тоже добавьте, предотвратит хождение левых ипов по сетке и задействует 1-й профиль:

create access_profile ip source_ip_mask 0.0.0.0 destination_ip_mask 0.0.0.0 profile_id 15
config access_profile profile_id 15 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 1 deny
config access_profile profile_id 15 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 2 deny
...
config access_profile profile_id 15 add access_id auto_assign ip source_ip 0.0.0.0 destination_ip 0.0.0.0 port 24 deny


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн фев 15, 2010 19:08 
Не в сети

Зарегистрирован: Пт фев 01, 2008 16:08
Сообщений: 80
Спасибо terrible


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн фев 15, 2010 21:07 
Не в сети

Зарегистрирован: Вс мар 20, 2005 19:09
Сообщений: 309
Откуда: Novosibirsk
проще что-нибудь вроде create access_profile profile_id 15 ethernet source_mac 00:00:00:00:00:00
и config access_profile profile_id 15 add access_id xxx ethernet source_mac 00:00:00:00:00:00 port yyy deny
Иначе будут жить в сетке Netbeui, AppleTalk, IPX и прочие анахронизмы включая IPv6


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт фев 16, 2010 21:29 
Не в сети

Зарегистрирован: Пт фев 01, 2008 16:08
Сообщений: 80
Спасибо Helios


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

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


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

Сейчас этот форум просматривают: Google [Bot], Дмитрий2025 и гости: 79


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

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