Перейти к содержимому

Eq domain cisco что за порт

  • автор:

Configure Commonly Used IP ACLs

The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.

Contents

Introduction

This document describes sample configurations for commonly used IP Access Control Lists (ACLs), which filter IP packets.

Prerequisites

Requirements

Ensure that you meet this requirement before you attempt this configuration:

  • Basic understanding of IP addressing

Components Used

This document is not restricted to specific software and hardware versions.

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

Background Information

IP Access Control Lists filter packets based on:

  • Source address
  • Destination address
  • Type of packet
  • Any combination of these items

In order to filter network traffic, ACLs control whether routed packets are forwarded or blocked at the router interface. Your router examines each packet in order to determine whether to forward or drop the packet based on the criteria that you specify within the ACL. ACL criteria include:

  • Source address of the traffic
  • Destination address of the traffic
  • Upper-layer protocol

Complete these steps in order to construct an ACL as the examples in this document show:

  1. Create an ACL.
  2. Apply the ACL to an interface.

The IP ACL is a sequential collection of permit and deny conditions that apply to an IP packet. The router tests packets against the conditions in the ACL one at a time.

The first match determines whether the Cisco IOS ® Software accepts or rejects the packet. Because the Cisco IOS Software stops the test of conditions after the first match, the order of the conditions is critical. If no conditions match, the router rejects the packet because of an implicit deny all clause.

These are examples of IP ACLs that can be configured in Cisco IOS Software:

  • Standard ACLs
  • Extended ACLs
  • Dynamic (lock and key) ACLs
  • IP-named ACLs
  • Reflexive ACLs
  • Time-based ACLs that use time ranges
  • Commented IP ACL entries
  • Context-based ACLs
  • Authentication proxy
  • Turbo ACLs
  • Distributed time-based ACLs

This document discusses some commonly used standard and extended ACLs. Refer to Configuring IP Access Lists for more information on different types of ACLs supported in Cisco IOS Software and how to configure and edit ACLs.

The command syntax format of a standard ACL is access-list access-list-number .

Standard ACLs compare the source address of the IP packets to the addresses configured in the ACL in order to control traffic.

Extended ACLs compare the source and destination addresses of the IP packets to the addresses configured in the ACL in order to control traffic. You can also make extended ACLs more granular and configured to filter traffic by criteria such as:

  • Protocol
  • Port numbers
  • Differentiated services code point (DSCP) value
  • Precedence value
  • State of the synchronize sequence number (SYN) bit

The command syntax formats of extended ACLs are:

access-list access-list-number [dynamic dynamic-name [timeout minutes]] protocol source source-wildcard destination destination-wildcard [precedence precedence] [tos tos] [log | log-input] 
[time-range time-range-name][fragments]

Internet Control Message Protocol (ICMP)

access-list access-list-number [dynamic dynamic-name [timeout minutes]] icmp source source-wildcard destination destination-wildcard 
[[icmp-type] [icmp-code] | [icmp-message]] [precedence precedence] [tos tos] [log | log-input]
[time-range time-range-name][fragments]

Transport Control Protocol (TCP)

access-list access-list-number [dynamic dynamic-name [timeout minutes]] tcp source source-wildcard [operator [port]] destination destination-wildcard [operator [port]] 
[established] [precedence precedence] [tos tos] [log | log-input]
[time-range time-range-name][fragments]

User Datagram Protocol (UDP)

access-list access-list-number [dynamic dynamic-name [timeout minutes]] udp source source-wildcard [operator [port]] destination destination-wildcard [operator [port]] 
[precedence precedence] [tos tos] [log | log-input] [time-range time-range-name][fragments]

Configure

These configuration examples use the most common IP ACLs.

Allow a Select Host to Access the Network

This figure shows a select host is granted permission to access the network. All traffic sourced from Host B destined to NetA is permitted, and all other traffic sourced from NetB destined to NetA is denied.

The output on the R1 table shows how the network grants access to the host. This output shows that:

  • The configuration allows only the host with the IP address 192.168.10.1 through the Ethernet 0 interface on R1.
  • This host has access to the IP services of NetA.
  • No other host in NetB has access to NetA.
  • No deny statement is configured in the ACL.

By default, there is an implicit deny all clause at the end of every ACL. Anything that is not explicitly permitted is denied.

R1

hostname R1 ! interface ethernet0 ip access-group 1 in ! access-list 1 permit host 192.168.10.1

Note: The ACL filters IP packets from NetB to NetA, except packets sourced from Host B. Packets sourced from Host B to NetA are still permitted.

Note: The ACL access-list 1 permit 192.168.10.1 0.0.0.0 is another way to configure the same rule.

Deny a Select Host to Access the Network

This figure shows that traffic sourced from Host B destined to NetA is denied, while all other traffic from the NetB to access NetA is permitted.

This configuration denies all packets from host 192.168.10.1/32 through Ethernet 0 on R1 and permits everything else. You must use the command access list 1 permit any to explicitly permit everything else because there is an implicit deny all clause with every ACL.

R1

hostname R1 ! interface ethernet0 ip access-group 1 in ! access-list 1 deny host 192.168.10.1 access-list 1 permit any

Note: The order of statements is critical to the operation of an ACL. If the order of the entries is reversed as this command shows, the first line matches every packet source address. Therefore, the ACL fails to block host 192.168.10.1/32 from accessing NetA.

access-list 1 permit any access-list 1 deny host 192.168.10.1

Allow Access to a Range of Contiguous IP Addresses

This figure shows that all hosts in NetB with the network address 192.168.10.0/24 can access network 192.168.200.0/24 in NetA.

This configuration allows the IP packets with an IP header that has a source address in the network 192.168.10.0/24 and a destination address in the network 192.168.200.0/24 access to NetA. There is the implicit deny all clause at the end of the ACL which denies all other traffic passage through Ethernet 0 inbound on R1.

R1

hostname R1 ! interface ethernet0 ip access-group 101 in ! access-list 101 permit ip 192.168.10.0 0.0.0.255 192.168.200.0 0.0.0.255

Note: In the command access-list 101 permit ip 192.168.10.0 0.0.0.255 192.168.200.0 0.0.0.255 , the «0.0.0.255» is the inverse mask of network 192.168.10.0 with mask 255.255.255.0. ACLs use the inverse mask to know how many bits in the network address need to match. In the table, the ACL permits all hosts with source addresses in the 192.168.10.0/24 network and destination addresses in the 192.168.200.0/24 network.

Refer to the Masks section of Configuring IP Access Lists for more information on the mask of a network address and how to calculate the inverse mask needed for ACLs.

Deny Telnet Traffic (TCP, Port 23)

In order to meet higher security concerns, you can disable Telnet access to your private network from the public network. This figure shows how Telnet traffic from NetB (public) destined to NetA (private) is denied, which permits NetA to initiate and establish a Telnet session with NetB while all other IP traffic is permitted.

Telnet uses TCP, port 23. This configuration shows that all TCP traffic destined to NetA for port 23 is blocked, and all other IP traffic is permitted.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 deny tcp any any eq 23 access-list 102 permit ip any any

Allow Only Internal Networks to Initiate a TCP Session

This figure shows that TCP traffic sourced from NetA destined to NetB is permitted, while TCP traffic from NetB destined to NetA is denied.

The purpose of the ACL in this example is to:

  • Allow hosts in NetA to initiate and establish a TCP session to hosts in NetB.
  • Deny hosts in NetB from initiating and establishing a TCP session destined to hosts in NetA.

This configuration allows a datagram to pass through interface Ethernet 0 inbound on R1 when the datagram has:

  • Acknowledged (ACK) or reset (RST) bits set (indicates an established TCP session)
  • A destination port value greater than 1023

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit tcp any any gt 1023 established

Since most of the well-known ports for IP services use values less than 1023, any datagram with a destination port less than 1023 or an ACK/RST bit not set is denied by ACL 102. Therefore, when a host from NetB initiates a TCP connection and sends the first TCP packet (without synchronize/start packet (SYN/RST) bit set) for a port number less than 1023, it is denied and the TCP session fails. The TCP sessions initiated from NetA destined to NetB are permitted because they have ACK/RST bit set for returning packets and use port values greater than 1023.

Refer to RFC 1700 for a complete list of ports.

Deny FTP Traffic (TCP, Port 21)

This figure shows that FTP (TCP, port 21) and FTP data (port 20 ) traffic sourced from NetB destined to NetA is denied, while all other IP traffic is permitted.

FTP uses port 21 and port 20. TCP traffic destined to port 21 and port 20 is denied and everything else is explicitly permitted.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 deny tcp any any eq ftp access-list 102 deny tcp any any eq ftp-data access-list 102 permit ip any any

Allow FTP Traffic (Active FTP)

FTP can operate in two different modes named active and passive.

When FTP operates in active mode, the FTP server uses port 21 for control and port 20 for data. FTP server (192.168.1.100) is located in NetA. This figure shows that FTP (TCP, port 21) and FTP data (port 20 ) traffic sourced from NetB destined to FTP server (192.168.1.100) is permitted, while all other IP traffic is denied.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit tcp any host 192.168.1.100 eq ftp access-list 102 permit tcp any host 192.168.1.100 eq ftp-data established ! interface ethernet1 ip access-group 110 in ! access-list 110 permit host 192.168.1.100 eq ftp any established access-list 110 permit host 192.168.1.100 eq ftp-data any

Allow FTP Traffic (Passive FTP)

FTP can operate in two different modes named active and passive.

When FTP operates in passive mode, the FTP server uses port 21 for control and the dynamic ports greater than or equal to 1024 for data. FTP server (192.168.1.100) is located in NetA. This figure shows that FTP (TCP, port 21) and FTP data (ports greater than or equal to 1024) traffic sourced from NetB destined to FTP server (192.168.1.100) is permitted, while all other IP traffic is denied.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit tcp any host 192.168.1.100 eq ftp access-list 102 permit tcp any host 192.168.1.100 gt 1023 ! interface ethernet1 ip access-group 110 in ! access-list 110 permit host 192.168.1.100 eq ftp any established access-list 110 permit host 192.168.1.100 gt 1023 any established

Allow Pings (ICMP)

This figure shows that ICMP sourced from NetA destined to NetB is permitted, and pings sourced from NetB destined to NetA are denied.

This configuration permits only echo-reply (ping response) packets to come in on interface Ethernet 0 from NetB towards NetA. However, the configuration blocks all echo-request ICMP packets when pings are sourced in NetB and destined to NetA. Therefore, hosts in NetA can ping hosts in NetB, but hosts in NetB cannot ping hosts in NetA.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit icmp any any echo-reply

Allow HTTP, Telnet, Mail, POP3, FTP

This figure shows that only HTTP, Telnet, Simple Mail Transfer Protocol (SMTP), POP3, and FTP traffic are permitted, and the rest of the traffic sourced from NetB destined to NetA is denied.

This configuration permits TCP traffic with destination port values that match WWW (port 80), Telnet (port 23), SMTP (port 25), POP3 (port 110), FTP (port 21), or FTP data (port 20). Notice an implicit deny all clause at the end of an ACL denies all other traffic, which does not match the permit clauses.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit tcp any any eq www access-list 102 permit tcp any any eq telnet access-list 102 permit tcp any any eq smtp access-list 102 permit tcp any any eq pop3 access-list 102 permit tcp any any eq 21 access-list 102 permit tcp any any eq 20

Allow DNS

This figure shows that only Domain Name System (DNS) traffic is permitted, and the rest of the traffic sourced from NetB destined to NetA is denied.

This configuration permits TCP traffic with destination port value 53. The implicit deny all clause at the end of an ACL denies all other traffic, which does not match the permit clauses.

R1

hostname R1 ! interface ethernet0 ip access-group 102 in ! access-list 102 permit udp any any eq domain access-list 102 permit udp any eq domain any access-list 102 permit tcp any any eq domain access-list 102 permit tcp any eq domain any

Permit Routing Updates

When you apply an in-bound ACL on to an interface, ensure that routing updates are not filtered out. Use the relevant ACL from this list to permit routing protocol packets:

Enter this command in order to permit Routing Information Protocol (RIP):

access-list 102 permit udp any any eq rip

Enter this command i n order to permit Interior Gateway Routing Protocol (IGRP):

access-list 102 permit igrp any any

Enter this command i n order to permit Enhanced IGRP (EIGRP):

access-list 102 permit eigrp any any

Enter this command i n order to permit Open Shortest Path First (OSPF):

access-list 102 permit ospf any any

Enter this command i n order to permit Border Gateway Protocol (BGP):

access-list 102 permit tcp any any eq 179 access-list 102 permit tcp any eq 179 any

Debug Traffic Based on ACL

The use of debug commands requires the allocation of system resources like memory and processing power and in extreme situations can cause a heavily-loaded system to stall. Use debug commands with care. Use an ACL in order to selectively define the traffic that needs to be examined to reduce the impact of the debug command. Such a configuration does not filter any packets.

This configuration turns on the debug ip packet command only for packets between the hosts 10.1.1.1 and 172.16.1.1.

R1(config)#access-list 199 permit tcp host 10.1.1.1 host 172.16.1.1 R1(config)#access-list 199 permit tcp host 172.16.1.1 host 10.1.1.1 R1(config)#end 
R1#debug ip packet 199 detail IP packet debugging is on (detailed) for access list 199

Refer to Important Information on Debug Commands for additional information on the impact of debug commands.

Refer to the Use the Debug Command section of Understanding the Ping and Traceroute Commands for additional information on the use of ACLs with debug commands.

MAC Address Filtering

You can filter frames with a particular MAC-layer station source or destination address. Any number of addresses can be configured into the system without a performance penalty. In order to filter by MAC-layer address, use this command in global configuration mode:

Router#config terminal Router(config)#bridge irb Router(config)#bridge 1 protocol ieee 
Router(config)#bridge 1 route ip

Apply the bridge protocol to an interface that you need to filter traffic along with the access list created with the command bridge-group | output-address-list >:

Router#config terminal
Router(config-if)#interface fastEthernet0/0
Router(config-if)#no ip address
Router(config-if)#bridge-group 1 input-address-list 700
Router(config-if)#exit

Create a Bridged Virtual Interface and apply the IP address that was assigned to the physical Ethernet interface:

Router#config terminal
Router(config-if)#int bvi1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#access-list 700 deny aaaa.bbbb.cccc 0000.0000.0000
Router(config)#access-list 700 permit 0000.0000.0000 ffff.ffff.ffff

With this configuration, the router only allows the MAC addresses configured on the access-list 700. With the access list command access-list deny 0000.0000.0000, deny the MAC address that cannot have access and then permit the rest (for this example, aaaa.bbbb.cccc).

Note: Create every line of access list for each MAC address.

Verify

There is currently no verification procedure available for this configuration.

Troubleshoot

There is currently no specific information available to troubleshoot this configuration.

Related Information

  • Configuring IP Access Lists
  • Access Lists Support Page
  • IP Routing Support Page
  • IP Routed Protocols Support Page
  • Technical Support & Documentation — Cisco Systems

Contact US

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

eq domain?

eq domain?

eq domain?

Hondy (TechnicalUser)
12 May 08 06:47

quick one — on an access list, what does «eq domain» mean?

access-list myname permit tcp 1.1.1.1 255.255.255.0 any eq domain

RE: eq domain?

ADB100 (TechnicalUser) 12 May 08 12:20

For common layer-4 protocols the PIX (and other Cisco devices) knows the port numbers and uses ‘friendly’ names instead of the actual port number. In this case it references DNS over TCP (port 53).

In the acl listed it means permit TCP from the source host 1.1.1.1 to anywhere where the destination TCP port is 53.

RE: eq domain?

Hondy (TechnicalUser)
13 May 08 04:18

ah — I would have thought the friendly name would be «DNS», I saw the eq HTTP etc, but «domain» had me confused, nice one!

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Copyright © 1998-2023 engineering.com, Inc. All rights reserved.
Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy and Terms

What port does «domain» eq on a Cisco router

You like the eq thing? Cute, no? — View image here: http://episteme.arstechnica.com/groupee_common/emoticons/icon_wink.gif —

Anyway, what port does domain reference? Is there a guide to these things somewhere, or is domain some commonly referenced name for a port I’ve never run across?

More options
Frennzy
Ars Legatus Legionis

Subscriptor++
53. It’s DNS.

More options
Uhlek
Ars Tribunus Angusticlavius

Subscriptor
One minute, Frennzy.

You’re slipping.

More options
alohadave
Ars Legatus Legionis

Subscriptor++

Yes there is:http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

More options
erratick
Ars Legatus Legionis

and if you are on a unix box /etc/services has a list and on a windows box it is something like /windows/system32/drivers/etc/services

More options
ronelson
Ars Legatus Legionis

Subscriptor

Bzzt, you’re both wrong. Stick with the IANA Port Assignments. That’s the «legit» holder of these port assignments and where Cisco gets them from:

http://www.iana.org/assignments/port-numbers

Of course, there are a lot of unregistered port numbers, and both wikipedia and /etc/services may have those listed for common apps.

Rob Nelson
rnelson0@gmail.com

More options
erratick
Ars Legatus Legionis

I wouldn’t say wrong. they are different ways of getting them.

Philosophically if you are an empiricist the files on the server/clients are the most correct. If you are an idealist, then the iana list is most correct.

If you are taking a cisco exam, the cisco answer is the most correct. — View image here: http://episteme.arstechnica.com/groupee_common/emoticons/icon_wink.gif —

More options
MaxIdiot
Ars Tribunus Militum

Cisco devices aren’t consistent anyway. I’ve seen radius refer to both 1645 and 1812 depending on the device.

Eq domain cisco что за порт

Команда permit ( extended ) используется для редактирования расширенных списков доступа. Эта команда разрешает прохождение трафика между указанным источником и получателем. Для отмены разрешающей записи в расширенном списке доступа используется та же команда с префиксом no .

Синтаксис permit protocol source source-wildcard [operator port [port]] destination destination-wildcard [operator port [port]] [established] flag-name | flag-name] [log | log-input] [time-range time-range-name]

no permit protocol source source-wildcard [operator port [port]] destination destination-wildcard [operator port [port]] [established] flag-name | flag-name] [log | log-input] [time-range time-range-name]

protocol Протокол. Задается в виде номера протокола. Протоколы IP, TCP, UDP, AH, ESP, ICMP, EIGRP, GRE, IGMP,IPINIP, NOS,OSPF,PCP,PIM могут быть заданы аббревиатурой ip, tcp, udp, ahp, esp, icmp, eigrp, gre, igmp, ipinip, nos, ospf, pcp, pim. Соответствие названия протокола и его номера приведено в Таблица 8 .

source Этот параметр описывает отправителя пакета.

Возможны три варианта описания:

явное указание IP-адреса в формате четырех десятичных значений, разделенных точками

использование ключевого слова any , обозначающего пару значений 0.0.0.0 255.255.255.255 для параметров source и source-wildcard .

использование ключевого слова host перед значением source , что предполагает значение 0.0.0.0 для параметра source-wildcard .

Замечание 1: Использование значения any в IPsec фильтрах может привести к созданию большого количества SA. Отдельный SA будет строиться для трафика до каждого хоста сети.

source-wildcard инвертированная маска подсети отправителя (получателя) пакета. Описан в разделе « Permit ( standard )» . Используется в списках доступа для того, чтобы определить: соответствует ли IP-адрес в заголовке пакета IP-адресу в записях списка доступа.

operator Описывает условие сравнения, применяемое к портам источника и получателя. Используются операторы eq (equal, равно) и range (диапазон). Иные операторы не допускаются. Необязательный параметр.

port Только для протоколов TCP или UDP можно указывать порт или диапазон портов. Целое число из диапазона от 0 до 65535. Используется только в связке с параметром operator . При использовании operator = range после него следуют два числа (лежащих в диапазоне от 0 до 65535), определяющие границы диапазона портов. Перечисление портов не допускается. Необязательный параметр. Поддерживаемые имена портов протоколов TCP и UDP приведены в Таблица 9 и Таблица 10.

Замечание 2: Если задать два одинаковых порта, например,

permit udp any range non500-isakmp 4500 any,

то это будет эквивалентно оператору eq.

Замечание 3: Если задать сначала порт с большим номером, то порты в диапазоне автоматически поменяются местами.

destination Этот параметр описывает получателя пакета.

Возможны три варианта описания:

явное указание IP-адреса в формате четырех десятичных значений, разделенных точками

использование ключевого слова any , обозначающего пару значений 0.0.0.0 255.255.255.255 для параметров destination и destination-wildcard (см. Замечание 1)

использование ключевого слова host перед значением destination , что предполагает значение 0.0.0.0 для параметра destination-wildcard .

destination — wildcard инвертированная маска подсети получателя пакета. Аналогичен source — wildcard , который описан в разделе « Permit ( standard )» .

Замечание 4: Для указания TCP-флагов используется старый или новый формат. Старый формат используется в нумерованных и именованных расширенных списках доступа, и представляет собой комбинацию ключевого слова established и перечисления TCP-флагов – flag-name.

Новый формат используется только в именованных расширенных списках доступа, и представляет собой комбинацию ключевого слова match — any | match — all и и перечисления TCP-флагов – <+|->flag-name.

established Только для протокола TCP. Состояние соединения. Выделяются только установленные TCP-соединения и по ним могут передаваться данные.

flag-name Имена TCP-флагов – fin , syn , rst , psh , ack , urg . Порядок флагов при вводе не важен. Перечисление флагов работает как «ИЛИ» (аналог match — any в новом формате). Ключевое слово established эквивалентно флагам rst ack и не может с ними сочетаться (синтаксическая ошибка).

Замечание 5: В пределах одной команды permit/deny старый формат указания TCP-флагов не может сочетаться с новым.

match — any | match — all Только для протокола TCP и именованных списков доступа. Указывает условие сравнения TCP-флагов в пакете и правиле.

Ключевое слово match — any означает, что должно выполняться одно из указанных далее условий по TCP-флагам. Ключевое слово match — all означает, что должны выполняться все заданные условия по TCP-флагам.

Если попытаться использовать эти ключевые слова для нумерованного списка доступа, то будет выдано сообщение об ошибке: %match-all/match-any are allowed on named ACLs only

<+|->flag — name Имена TCP-флагов – fin , syn , rst , psh , ack , urg . Префикс “+” перед флагом означает, что этот флаг должен быть выставлен в заголовке пакета, а префикс “–“ означает, что этот флаг не должен быть выставлен в заголовке пакета. Порядок флагов при вводе не важен.

log | log — input Флаг log или log — input задает ведение журнала. Оба флага задают одну и ту же функциональность (отличие от Cisco IOS). В Syslog выдаются сообщения о пакетах, удовлетворяющих условиям данного списка доступа. В сообщении указан номер списка доступа, разрешено или запрещено прохождение пакета, адрес отправителя и количество пакетов. Сообщение формируется для первого совпавшего пакета, а затем с периодичностью в 5 минут выдается сообщение о количестве пропущенных или запрещенных пакетов за этот интервал времени.

Флаги логирования могут смешиваться с другими флагами, например с TCP-флагами. Два флага логирования log и log — input не могут применяться вместе в одной команде permit / deny .

time-range time-range-name Ссылка на расписание . В расписании указывается диапазон времени, в который будет работать данный список доступа. В другой период времени данный фильтр действовать не будет.

Ссылка на расписание может смешиваться с другими дополнительными параметрами, например с TCP-флагами.

Допускается ссылка на расписание, отсутствующее в конфигурации на момент ввода команды. Однако на момент конвертирования расписание должно существовать, в противном случае конвертирование будет прервано с сообщением об ошибке.

Режимы команды config-ext-nacl (режим редактирования расширенных списков доступа)

Рекомендации по использованию

Используйте эту команду после входа в режим редактирования расширенного списка доступа для разрешения прохождения трафика между отправителем и получателем.

Нумерация записей в списке

Перед командой permit или deny допускается вводить порядковый номер записи в списке, который можно использовать для упрощения редактирования записей, например,

ip access-list extended acl2

10 permit udp any any

20 permit tcp any any

30 deny udp host 10.1.1.1 eq snmp any

В режиме редактирования списка доступа запись с указанным номером будет вставлена на нужную позицию, например,

15 permit udp 10.1.1.1 0.0.255.255 host 10.2.2.2

Если запись с таким номером существует, то будет выдано сообщение об ошибке: % Duplicate sequence number.

По умолчанию первой записи в списке присваивается номер 10, а следующие номера в списке следуют с приращением 10. Максимальный порядковый номер 2147483647. Если сгенерированный порядковый номер превысил максимальный, то выдается сообщение об ошибке: % Exceeded maximum sequence number.

При выходе из консоли нумерация записей теряется. При следующем старте консоли записи располагаются в порядке возрастания номеров в режиме по умолчанию.

Просмотр по команде show running — config

По команде show running — config нумерованные списки доступа показываются в виде последовательности команд access — list за одним исключением:

если после редактирования нумерованного списка доступа он становится пустым (в нем нет записей вида permit или deny (no permit, no deny)), то он будет показан в виде:

По команде show running — config выводится конфигурация, в которой слово host может отсутствовать.

Так как по команде show running — config ранее введенные номера записей в списке не показываются, то при редактировании, чтобы внести запись на нужную позицию, можно еще раз упорядочить записи в списке с заданным начальным номером и приращением. Для этого используется команда: ip access — list resequence .

По команде show running — config флаги fin , syn , rst , psh , ack , urg будут указаны в этом порядке. А сочетание флагов « rst ack » в команде будет заменено на established при выводе.

Флаги логирования log , log — input показываются после TCP-флагов, а расписание ( time — range ) – после флагов логирования.

Удаление записи в списке доступа осуществляется:

· командой no , например:
no permit tcp host 10.1.1.1 eq telnet any

· или по номеру записи, например: no 15 .

Отличие данной команды от подобной команды Cisco IOS :

· В инвертированной маске подсети source-wildcard и destination-wildcard должна быть непрерывная линейка из установленных битов в конце, не допускается чередование 0 и 1.

· Отсутствует возможность задавать отдельные ICMP-type и ICMP-code, только ICMP протокол целиком.

· Не допускается использование hostname в качестве source и destination .

· Не допускаются операторы кроме eq и range .

· Пустой нумерованный список по команде show running-config показывается в виде ip access-list name . В Cisco IOS данный список вообще не показывается.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *