Jump to content

Recommended Posts

Posted

Нужна помощь.

Есть железка DES-3200-28 С1. Требуется привязать определенный ip к определенному порту БЕЗ привязки к маку.

Например, разрешить трафик на 24 порту ТОЛЬКО от адреса 192.168.1.2. Средствами ACL сделать не получается, т.к. в C1 ограничение на количество создаваемых профилей. Пробовал разобраться с PCF и еще больше запутался. Заранее спасибо

Posted

Всё там получается. Работает годами.

 

create access_profile profile_id 3 profile_name IPControl ip source_ip_mask 255.255.255.255 destination_ip_mask 0.0.0.0
config access_profile profile_id 3 add access_id 1 ip source_ip <USER_IP> port 1 permit
config access_profile profile_id 3 add access_id 2 ip source_ip <USER_IP> port 2 permit
..
config access_profile profile_id 3 add access_id 24 ip source_ip <USER_IP> port 24 permit
config access_profile profile_id 3 add access_id 100 ip destination_ip 0.0.0.0 port 1-24 deny

Posted

Ннннада. В академических целях.

 

create access_profile profile_id 5 profile_name ARPControl packet_content_mask offset_chunk_1 3 0xFFFF offset_chunk_2 7 0xFFFF offset_chunk_3 8 0xFFFF0000
config access_profile profile_id 5 add access_id 1 packet_content offset_chunk_1 0x806 offset_chunk_2 0xAABB offset_chunk_3 0xCCDD0000 port 1 permit
config access_profile profile_id 5 add access_id 100 packet_content offset_chunk_1 0x806 port 1-24 deny

 

Где в offset_chunk_2 пишем в hex первые 2 байта ip-адреса, а в offset_chunk_3 вторые.

Пример для 127.0.0.1 будет следующим:

offset_chunk_2 0x7F00 offset_chunk_3 0x00010000

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.