allow
To configure a local port and third-party application protocols for traffic protection, use the allow command in protection mode. To disallow a protocol on an interface, use the noform of this command.
allow protocol { tcp | udp} local-port port-number [ interface interface-name| local-address local IP address | remote-addressremote IP address
no allow protocol { tcp | udp} local-port port-number [ interface interface-name| local-address local IP address | remote-addressremote IP address
Syntax Description
protocol |
Specifies the L4 protocol to be configured for traffic protection. The supported protocols are TCP and UDP. |
local-port |
Specifies local L4 port. |
Port-number |
Specifies a port number in the range of 1 to 65535. |
interface |
Specifies the interface on which the protocol has to be configured. |
local-address |
Specifies the local IP address of the host or client. |
remote-address |
Specifies the remote IP address of the host or client. |
Command Default
Not Applicable
Command Modes
Protection
Command History
Release | Modification |
---|---|
Release 6.5.2 |
This command was introduced. |
Usage Guidelines
If no allow command is used for a given local port and protocol, then by default, any ingress traffic is delivered to Third Party Applications. If one or more allow entries are added, only the ingress traffic matching an allow entry is delivered for that protocol and port. It is possible to configure multiple allow entries for the same protocol and port, for example, to allow traffic from multiple remote addresses.
Note |
If multiple allow entries are configured for the same protocol and port, the entries are expected to be non-overlapping. If overlapping entries are present, for example, multiple remote addresses in overlapping subnets, then the behaviour is platform-dependent. |
Task ID
Task ID | Operation |
---|---|
system |
read, write |
Examples
The following example shows how to configure a local port and third-party application protocols for traffic protection:
Router# configure
Router(config)# tpa
Router(config-tpa)# vrf default
Router(config-tpa-vrf)# address-family ipv4
Router(config-tpa-vrf-afi)# protection
Router(config-tpa-vrf-afi-prot)# allow protocol tcp local-port 6 remote-address 192.0.2.3 interface MgmtEth0 local-address 192.0.2.125