
C613-50186-01 Rev B
Command Reference for AR2050V
2648
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
A
PPLICATION
AND
E
NTITY
C
OMMANDS
SPORT
sport
Overview
Use this command to specify a source port or a port range used for an application.
A port number is part of the addressing information used to identify a specific
process to which a network message is to be forwarded between a sender and a
receiver. For the full list of port numbers and their assignment, you can visit the
Internet Assigned Numbers Authority (IANA) Web site:
www.iana.org
.
Use the
no
variant of this command to delete ports or port ranges from an
application.
NOTE
:
The port or port range that you want to delete must match exactly the existing port
or port range. You cannot remove a port range that is part of an existing port
range.
Syntax
sport {<
source-port
>|any|<
start-range
> to <
end-range
>}
no sport {<
source-port
>|any|<
start-range
> to <
end-range
>}
Mode
Application Mode
Usage
You can create more than one source port number or port range for an application.
Examples
To specify source port
13
for application
openVPN
, use the commands:
awplus#
configure terminal
awplus(config)#
application openVPN
awplus(config-application)#
sport 13
To specify source port
15
and port ranges for application
openVPN
, use the
commands:
awplus#
configure terminal
awplus(config)#
application openVPN
awplus(config-application)#
sport 15
awplus(config-application)#
sport 30 to 37
awplus(config-application)#
sport 50 to 80
Parameter
Description
<
source-port
>
The source port number, either TCP or UDP, specified as an integer
between 1 and 65535.
any
Any port number in the range <1-65535>. This equals to a range
of 1 to 65535.
<
start-range
>
Starting port number in the range <1-65535>.
to
<
end-range
>
Ending port number in the range <1-65535> or max.