Adjust NAT Session Timeout Value by CLI

When a session initiates, the router will add a dynamic entry for the address and port mapping. NAT session timeout is the length of time that the router will keep that connection even if it's inactive. After that, the router will remove the entry, and stop accepting the incoming traffic.

Check the Current Value

Vigor Router has a different default timeout value for each application. We can check and tweak the timeout value via CLI. By input command portmaptime-l, the router will list the current value for each application.

a screenshot of DrayOS CLI

Adjust the timeout value

To change the NAT timeout value, enter command portmaptime -[protocol] [time], where [protocol] is a character represents the application (use command portmaptime ? to check the options available), and [time] is the time value in seconds. For example, if you'd like to set the timeout value of UDP session to 5 minutes (300 seconds), this can be done by entering the command portmaptime -u 300.

a screenshot of DrayOS CLI

After that, you may use the command portmaptime -l to check if the current value has changed.

a screenshot of DrayOS CLI

Published On:2016-05-12 

Was this helpful?