faq обучение настройка
Текущее время: Пн июл 21, 2025 19:32

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




Начать новую тему Ответить на тему  [ Сообщений: 40 ]  На страницу Пред.  1, 2, 3
Автор Сообщение
 Заголовок сообщения:
СообщениеДобавлено: Чт дек 24, 2009 14:11 
Не в сети

Зарегистрирован: Вс дек 21, 2008 18:53
Сообщений: 1308
terrible, спасибо, попробую!
snark, а какие у вас еще правила на 3028 применяются, было бы интересно посмотреть? Что-то еще наверняка фильтруете?

_________________
D-Link Switches: Tips & Tricks


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Чт дек 24, 2009 14:47 
Не в сети

Зарегистрирован: Пн сен 27, 2004 18:18
Сообщений: 1642
Откуда: Vault 13
xcme писал(а):
snark, а какие у вас еще правила на 3028 применяются, было бы интересно посмотреть? Что-то еще наверняка фильтруете?

в общем виде так:
Код:
# PPPoE Discovery (0x8863) + Active Discovery Offer (PADO) (0x07)
create access_profile                                        packet_content_mask offset_0-15 0x0 0x0 0x0 0xffff00ff profile_id 1
config access_profile profile_id 1 add access_id auto_assign packet_content                    offset 12 0x88630007 port 1-24 deny


# PPPoE Session (0x8864) + Protocol IPv4 (0x0021) + Destination port
create access_profile                                        packet_content_mask offset_0-15 0x0 0x0 0x0 0xffff0000 offset_16-31 0x0 0xfffff000 0x0 0x0 offset_32-47 0x0 0x0 0x0 0xffff0000 profile_id 2
# 135 (87)
config access_profile profile_id 2 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000                        offset 44 0x00870000 port 1-28 deny
# 137 (89)
config access_profile profile_id 2 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000                        offset 44 0x00890000 port 1-28 deny
# 138 (8a)
config access_profile profile_id 2 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000                        offset 44 0x008a0000 port 1-28 deny
# 139 (8b)
config access_profile profile_id 2 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000                        offset 44 0x008b0000 port 1-28 deny
# 445 (1bd)
config access_profile profile_id 2 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000                        offset 44 0x01bd0000 port 1-28 deny


# PPPoE Session (0x8864) + Protocol IPv4 (0x0021) + Protocol: TCP (0x06) || UDP (0x11) + Destination port
create access_profile                                        packet_content_mask offset_0-15 0x0 0x0 0x0 0xffff0000 offset_16-31 0x0 0xfffff000 0x00000000 0x000000ff offset_32-47 0x0 0x0 0x0 0xffff0000 profile_id 3
# UDP 1900 (76c)
config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000011                offset 44 0x076c0000 port 1-28 deny
# TCP 2869 (b35)
config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000006                offset 44 0x0b350000 port 1-28 deny

# благодаря M$
# http://windows.microsoft.com/ru-RU/windows7/Networking-home-computers-running-different-versions-of-Windows
# эще это до кучи впихнуть бы по хорошему
# UDP 3540 (dd4)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000011                offset 44 0x0dd40000 port 1-28 deny
# TCP 3587 (e03)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000006                offset 44 0x0e030000 port 1-28 deny
# UDP 3702 (e76)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000011                offset 44 0x0e760000 port 1-28 deny
# UDP 5355 (14eb)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000011                offset 44 0x14eb0000 port 1-28 deny
# TCP 5357 (14ed)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000006                offset 44 0x14ed0000 port 1-28 deny
# TCP 5358 (14ee)
#config access_profile profile_id 3 add access_id auto_assign packet_content                    offset 12 0x88640000        offset 20 0x00214000  offset 28 0x00000006                offset 44 0x14ee0000 port 1-28 deny


create access_profile                                        ethernet ethernet_type        profile_id 4
# PPPoE Discovery (0x8863)
config access_profile profile_id 4 add access_id auto_assign ethernet ethernet_type 0x8863 port 1-28 permit
# PPPoE Session (0x8864)
config access_profile profile_id 4 add access_id auto_assign ethernet ethernet_type 0x8864 port 1-28 permit


# Protocol: TCP + Destination port
create access_profile                                        ip tcp dst_port_mask 0xffff profile_id 5
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port          53 port 1-28 deny
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port         135 port 1-28 deny
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port         139 port 1-28 deny
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port         445 port 1-28 deny
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port        2869 port 1-28 deny
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port        5000 port 1-28 deny


# Protocol: UDP + Destination port
create access_profile                                        ip udp dst_port_mask 0xffff profile_id 6
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port          67 port 1-24 permit
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port          68 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port         137 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port         138 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port         445 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port        1900 port 1-28 deny


# ARP
create access_profile                                packet_content_mask offset_0-15 0x0 0x0 0x0 0xffff0000 offset_16-31 0xffff0000 0x0 0x0   0xffffffff profile_id 10
config access_profile profile_id 10 add access_id  1 packet_content                    offset 12 0x08060000    offset 16 0x08000000 offset 28 0xHEX.IP.addr port 1 permit


# бродкасты
create access_profile                                         ethernet destination_mac ff-ff-ff-ff-ff-ff profile_id 15
config access_profile profile_id 15 add access_id auto_assign ethernet destination_mac ff-ff-ff-ff-ff-ff port 1-24 deny


# IP
create access_profile                                ip source_ip_mask 255.255.255.255 profile_id 20
config access_profile profile_id 20 add access_id  1 ip source_ip    192.168.xxx.yyy port 1 permit


# deny all
create access_profile                                         ethernet source_mac 00-00-00-00-00-00 profile_id 25
config access_profile profile_id 25 add access_id auto_assign ethernet source_mac 00-00-00-00-00-00 port 1-24 deny

добавить/удалить - по вкусу

_________________
с уважением, БП


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

Зарегистрирован: Вс дек 21, 2008 18:53
Сообщений: 1308
Спасибо, почерпнул кое что. Последний вопрос. Чем может быть вызвано такое состояние портов (см. Tx)? Значения могут быть в разы больше, но явление по продолжительности достаточно кратковременное, поснифить и проанализировать не получилось. Может кто наблюдал?
Код:
Port     TX/sec     RX/sec   Util
 ----   ---------- ---------- ----
 1      0          0          0
 2      225        8          1
 3      217        0          1
 4      221        4          1
 5      216        0          9
 6      217        0          1
 7      0          0          0
 8      217        0          1
 9      217        9          1
 10     0          0          0
 11     0          0          0
 12     0          0          0
 13     0          0          0
 14     0          0          0
 15     1616       689        10
 16     0          0          0
 17     217        0          1
 18     219        1          1
 19     217        0          18
 20     217        0          18
 21     0          0          0

_________________
D-Link Switches: Tips & Tricks


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

Зарегистрирован: Сб дек 20, 2003 08:11
Сообщений: 728
Откуда: Rosnet, Комсомольск-на-Амуре
Вопрос наверно Шарку (привет кстати).

На посёлок стоит 3028. ЗА ним куча мыльниц подключенных к портам 1-23 (кризис, да и воруют там часто коммутаторы пока нет возможности управляемые расставить).

24-ый порт магистральный.

У клиентов только TCP/IP. Адреса для клиентов 192.168.2.xxx прописываются вручную монтажниками.

192.168.2.1 адрес шлюза для клиентов.

Сейчас прописанны правила:
Код:
create access_profile  ip  tcp dst_port 0xFFFF    profile_id 5
config access_profile profile_id 5  add access_id 1  ip  tcp dst_port 53        port 1-28 deny
config access_profile profile_id 5  add access_id 2  ip  tcp dst_port 135       port 1-28 deny
config access_profile profile_id 5  add access_id 3  ip  tcp dst_port 139       port 1-28 deny
config access_profile profile_id 5  add access_id 4  ip  tcp dst_port 445       port 1-28 deny
config access_profile profile_id 5  add access_id 5  ip  tcp dst_port 2869      port 1-28 deny
config access_profile profile_id 5  add access_id 6  ip  tcp dst_port 5000      port 1-28 deny

create access_profile  ip  udp dst_port 0xFFFF    profile_id 6
config access_profile profile_id 6  add access_id 1  ip  udp dst_port 67        port 1-28 deny
config access_profile profile_id 6  add access_id 2  ip  udp dst_port 68        port 1-28 deny
config access_profile profile_id 6  add access_id 3  ip  udp dst_port 137       port 1-28 deny
config access_profile profile_id 6  add access_id 4  ip  udp dst_port 138       port 1-28 deny
config access_profile profile_id 6  add access_id 5  ip  udp dst_port 445       port 1-28 deny
config access_profile profile_id 6  add access_id 6  ip  udp dst_port 1900      port 1-28 deny

create access_profile  ip  source_ip 255.255.255.255  profile_id 8
config access_profile profile_id 8  add access_id 1  ip  source_ip 192.168.2.1      port 13-23 deny

create access_profile  ip  source_ip 255.255.255.0    profile_id 10
config access_profile profile_id 10  add access_id 1  ip  source_ip 192.168.2.0      port 13-23 permit rx_rate no_limit

create access_profile  ip  source_ip 0.0.0.0          profile_id 12
config access_profile profile_id 12  add access_id 1  ip  source_ip 0.0.0.0          port 13-23 deny

disable cpu_interface_filtering


Пробовал IP-MAC-Binding но во первых он не адекватно работает когда за портом гирлянда мыльниц, без какой либо записи в лог блокирует доступ клиентам. (причину так и не выяснили). Во вторых клиенты постоянно меняют себе сетевые карты.

Что ещё рекомендуют уважаемые гуру прописать в фильтра против "Митников" и левого трафика. :)

клиентам нужен только интернет авторизация через агента по UDP.

_________________
D-Link User: DGS-3612G, DES-3350SR, DES-3526, DES-3028, DES-3010G, DES-1210-28, DES-2110, DWL-900AP+, DWL-1000AP+, DWL-1040AP+, DWL-2100AP, DI-634M, DWL-G520M, DWL-G650M, DWL-G650, DAS-3248, DSL-300T, DSL-500T, DSL-504T, DMC-920, DCS-2101, DCS-910.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн дек 28, 2009 10:22 
Не в сети

Зарегистрирован: Вс дек 21, 2008 18:53
Сообщений: 1308
Pritorius, может еще добавить:
config access_profile profile_id 5 add access_id auto_assign ip tcp dst_port 137 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port 135 port 1-28 deny
config access_profile profile_id 6 add access_id auto_assign ip udp dst_port 213 port 1-28 deny
create access_profile ethernet ethernet_type profile_id 7
config access_profile profile_id 7 add access_id auto_assign ethernet ethernet_type 0x86DD port 1-28 deny

2 all, как заблокировать MDNS?:
Изображение
Пробовал долго и усердно, ничто не помогло. :evil:

_________________
D-Link Switches: Tips & Tricks


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

Зарегистрирован: Сб дек 20, 2003 08:11
Сообщений: 728
Откуда: Rosnet, Комсомольск-на-Амуре
xcme писал(а):
Pritorius, может еще добавить:
create access_profile ethernet ethernet_type profile_id 7
config access_profile profile_id 7 add access_id auto_assign ethernet ethernet_type 0x86DD port 1-28 deny


По последнему не понял что за зверь?

_________________
D-Link User: DGS-3612G, DES-3350SR, DES-3526, DES-3028, DES-3010G, DES-1210-28, DES-2110, DWL-900AP+, DWL-1000AP+, DWL-1040AP+, DWL-2100AP, DI-634M, DWL-G520M, DWL-G650M, DWL-G650, DAS-3248, DSL-300T, DSL-500T, DSL-504T, DMC-920, DCS-2101, DCS-910.


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

Зарегистрирован: Сб дек 20, 2003 08:11
Сообщений: 728
Откуда: Rosnet, Комсомольск-на-Амуре
xcme писал(а):
2 all, как заблокировать MDNS?:
Изображение
Пробовал долго и усердно, ничто не помогло. :evil:


Если IPTV не используете заблочить весь мультикаст через Limited Multicast Range Settings

_________________
D-Link User: DGS-3612G, DES-3350SR, DES-3526, DES-3028, DES-3010G, DES-1210-28, DES-2110, DWL-900AP+, DWL-1000AP+, DWL-1040AP+, DWL-2100AP, DI-634M, DWL-G520M, DWL-G650M, DWL-G650, DAS-3248, DSL-300T, DSL-500T, DSL-504T, DMC-920, DCS-2101, DCS-910.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн дек 28, 2009 11:33 
Не в сети

Зарегистрирован: Вс дек 21, 2008 18:53
Сообщений: 1308
Pritorius писал(а):
По последнему не понял что за зверь?

По задумке - IPV6

_________________
D-Link Switches: Tips & Tricks


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн дек 28, 2009 11:38 
Не в сети

Зарегистрирован: Сб дек 20, 2003 08:11
Сообщений: 728
Откуда: Rosnet, Комсомольск-на-Амуре
xcme писал(а):
Pritorius писал(а):
По последнему не понял что за зверь?

По задумке - IPV6


Кстати да а то Вистари тоже сыпят много гадости.

_________________
D-Link User: DGS-3612G, DES-3350SR, DES-3526, DES-3028, DES-3010G, DES-1210-28, DES-2110, DWL-900AP+, DWL-1000AP+, DWL-1040AP+, DWL-2100AP, DI-634M, DWL-G520M, DWL-G650M, DWL-G650, DAS-3248, DSL-300T, DSL-500T, DSL-504T, DMC-920, DCS-2101, DCS-910.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Пн дек 28, 2009 11:44 
Не в сети

Зарегистрирован: Вс дек 21, 2008 18:53
Сообщений: 1308
Pritorius писал(а):
Если IPTV не используете заблочить весь мультикаст через Limited Multicast Range Settings

А примерчик можно?

_________________
D-Link Switches: Tips & Tricks


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

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


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

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


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

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