Operation Manual
Vigor122 User’s Guide
132
T
T
e
e
l
l
n
n
e
e
t
t
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
s
s
r
r
v
v
n
n
a
a
t
t
o
o
p
p
e
e
n
n
p
p
o
o
r
r
t
t
This command allows users to set open port settings for NAT server.
S
S
y
y
n
n
t
t
a
a
x
x
srv nat openport list <[All] | [Profile Index]>
srv nat openport enable<Index>
srv nat openport disable <Index>
srv nat openport comment <Index> <Comment>
srv nat openport dstip <Index> <Destination local IP address>
srv nat openport add <Profile index> <Subitem index> <WAN IP addr> <Pvt IP addr>
<Protocol> <Start port> <End port>
srv nat openport remove <Profile index> [Subitem index]
srv nat openport flush
S
S
y
y
n
n
t
t
a
a
x
x
D
D
e
e
s
s
c
c
r
r
i
i
p
p
t
t
i
i
o
o
n
n
Parameter Description
list <[All] | [Profile Index]> Display status information for all of the profiles or specified profile.
enable <Index> Enable the selected index profile.
Index – Range from 1 to 20 (profile index number).
disable <Index> Disable the selected index profile.
Index – Range from 1 to 20 (profile index number).
comment <Index>
<Comment>
Index – Range from 1 to 20 (profile index number).
Comment – Type a description for such profile.
dstip <Index> <Destination
local IP address>
It means to specify destination IP address for an open port profile.
Index – Range from 1 to 20.
Destination local IP address – Type the IP address of the destination.
add <Profile index>
<Subitem index> <WAN IP
addr> <Pvt IP addr>
<Protocol> <Start port> <End
port>
It means to create new open port profile.
Profile index – Range from 1 to 20.
Subitem index – Range form 1 to 10.
Protocol – TCP or UDP.
WAN IP Addr – Type the IP address of the WAN interface.
Private IP Addr – Type the private IP address.
Start port – Type a value as the starting port.
End port – Type a value as the ending port.
Remove <Profile index>
[Subitem index]
It means to remove specified profile.
Profile index – Range from 1 to 20.
Subitem index – Range form 1 to 10.
flush It means to return to factory settings for all the open ports profiles.
E
E
x
x
a
a
m
m
p
p
l
l
e
e
> srv nat openport enable 1
%% Open port profile 1 has enabled.
> srv nat openport comment 1 for_marketing
%% Ok.