I regularly add port forwards to our adsl router from the CLI, but I never remember how…

robin@eddie robin $ <strong>telnet 192.168.254.254</strong>
Trying 192.168.254.254...
Connected to 192.168.254.254.
Escape character is '^]'.
password:
logged on; type `@close' to close connection.
192.168.254.254> <strong>nat</strong>
192.168.254.254 nat> <strong>inbound list</strong>
#  Interface Port/EndPort/LocalPort/proto  New_IP_Addr    State   Comment  Flags
 1  ppp_device     22/    22/     0/tcp    192.168.254.100  enabled  tcp22
 2  ppp_device   6257/  6257/     0/udp    192.168.254.10   enabled  udp6257
 3  ppp_device   4662/  4662/     0/tcp    192.168.254.10   enabled  udp4662
 4  ppp_device   4672/  4672/     0/udp    192.168.254.10   enabled  tcp4672
 5  ppp_device   3389/  3389/  3389/udp    192.168.254.10   enabled  RDP
 6  ppp_device   9192/  9192/     0/tcp    192.168.254.100  enabled  camserv
 7  ppp_device   4711/  4711/     0/tcp    192.168.254.10   enabled  tcp4711
 8  ppp_device   3389/  3389/     0/tcp    192.168.254.10   enabled  bob
 9  ppp_device     25/    25/    25/tcp    192.168.254.100  enabled  smtp
10  ppp_device     53/    53/    53/udp    192.168.254.99   enabled  dns
11  ppp_device   4712/  4712/     0/tcp    192.168.254.10   enabled  tcp4712
12  ppp_device   6699/  6699/     0/tcp    192.168.254.11   enabled  tcp6699
13  ppp_device   6698/  6698/     0/udp    192.168.254.11   enabled  udp6698
14  ppp_device     80/    80/     0/tcp    192.168.254.100  enabled  tcp80
15  ppp_device   8080/  8080/     0/tcp    192.168.254.12   enabled  tcp8080
16  ppp_device   3283/  3283/  3283/udp    192.168.254.12   enabled  appleremote
17  ppp_device     21/    21/     0/tcp    192.168.254.100  enabled  tcp21           (ALG)
18  ppp_device     20/    20/     0/tcp    192.168.254.100  enabled  tcp20
19  ppp_device  11809/ 11809/ 11809/tcp    192.168.254.11   enabled  msmsgs (192.168.254.11:11809) 11809 TCP
20  ppp_device   7997/  7997/  7997/udp    192.168.254.11   enabled  msmsgs (192.168.254.11:7997) 7997 UDP
21  ppp_device  15503/ 15503/ 15503/udp    192.168.254.10   enabled  msmsgs (192.168.254.10:15503) 15503 UDP
22  ppp_device   9519/  9519/  9519/tcp    192.168.254.10   enabled  msmsgs (192.168.254.10:9519) 9519 TCP

192.168.254.254 nat> <strong>inbound help add</strong>
add             <i/f name> <port>/<end_port>/<localport>/<proto> <new IP> <state> <comment>-  add a rule

192.168.254.254 nat> <strong>inbound add ppp_device 3283/3283/3283/tcp 192.168.254.12 enabled appleremotetcp</strong>

192.168.254.254 nat> <strong>inbound list</strong>
#  Interface Port/EndPort/LocalPort/proto  New_IP_Addr    State   Comment  Flags
 1  ppp_device     22/    22/     0/tcp    192.168.254.100  enabled  tcp22
 2  ppp_device   6257/  6257/     0/udp    192.168.254.10   enabled  udp6257
 3  ppp_device   4662/  4662/     0/tcp    192.168.254.10   enabled  udp4662
 4  ppp_device   4672/  4672/     0/udp    192.168.254.10   enabled  tcp4672
 5  ppp_device   3389/  3389/  3389/udp    192.168.254.10   enabled  RDP
 6  ppp_device   9192/  9192/     0/tcp    192.168.254.100  enabled  camserv
 7  ppp_device   4711/  4711/     0/tcp    192.168.254.10   enabled  tcp4711
 8  ppp_device   3389/  3389/     0/tcp    192.168.254.10   enabled  bob
 9  ppp_device     25/    25/    25/tcp    192.168.254.100  enabled  smtp
10  ppp_device     53/    53/    53/udp    192.168.254.99   enabled  dns
11  ppp_device   4712/  4712/     0/tcp    192.168.254.10   enabled  tcp4712
12  ppp_device   6699/  6699/     0/tcp    192.168.254.11   enabled  tcp6699
13  ppp_device   6698/  6698/     0/udp    192.168.254.11   enabled  udp6698
14  ppp_device     80/    80/     0/tcp    192.168.254.100  enabled  tcp80
15  ppp_device   8080/  8080/     0/tcp    192.168.254.12   enabled  tcp8080
16  ppp_device   3283/  3283/  3283/udp    192.168.254.12   enabled  appleremote
17  ppp_device     21/    21/     0/tcp    192.168.254.100  enabled  tcp21           (ALG)
18  ppp_device     20/    20/     0/tcp    192.168.254.100  enabled  tcp20
19  ppp_device  11809/ 11809/ 11809/tcp    192.168.254.11   enabled  msmsgs (192.168.254.11:11809) 11809 TCP
20  ppp_device   7997/  7997/  7997/udp    192.168.254.11   enabled  msmsgs (192.168.254.11:7997) 7997 UDP
21  ppp_device   8804/  8804/  8804/udp    192.168.254.10   enabled  msmsgs (192.168.254.10:8804) 8804 UDP
22  ppp_device  14288/ 14288/ 14288/tcp    192.168.254.10   enabled  msmsgs (192.168.254.10:14288) 14288 TCP
23  ppp_device   3283/  3283/  3283/tcp    192.168.254.12   enabled  appleremotetcp
192.168.254.254 nat>  <strong>config save</strong>
Saving configuration...Configuration saved.
192.168.254.254 nat>  <strong>@close</strong>
Connection closed by foreign host.