41.4. How to configure UPNP server

Assuming the above network, configure Abilis so that it can be used as a UPNP server only by the PC inside LAN (to avoid security issues).

The first step is to add and activate the UPNPS resource, then type the following commands:

[15:23:32] ABILIS_CPX:s p upnps ipsrc:192.168.30.2

COMMAND EXECUTED

[15:25:31] ABILIS_CPX:d p upnps

RES:UPnPS - Not Saved (SAVE CONF), Not Refreshed (INIT) -----------------------
       ------------------------------------------------------------------------
Run    DESCR:Universal_Plug_and_Play_Server
       LOG:NO         ACT:YES   sesnum:5     udp-locport:1900  tcp-locport:1900
       MAX-AGE:1800   TOS:0-N
       IPSRC:192.168.030.002    IPSRCLIST:#
       WDIR:C:\APP\UPNP\

[15:25:34] ABILIS_CPX:init res:upnps

COMMAND EXECUTED

For the LAN port configure UPNP:LAN-SERVER:

[14:23:01] ABILIS_CPX:s p ip-1 upnp:lan-server 

COMMAND EXECUTED

[14:23:31] ABILIS_CPX:d p ip-1                

RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
Run    DESCR:lan
       OPSTATE:UP              LOG:NO            STATE-DETECT:NORMAL  TYPE:LAN
       LANRES:Eth-1
       IPADD:192.168.030.001   MASK:255.255.255.000   
       REDIS:YES     HIDE:NO         RP:NONE            IPSEC:NO       VRRP:NO
       NAT:INSIDE    UPNP:LAN-SERVER DIFFSERV:NO        DDNS:NO
       OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
       OUTSPL:NO     
       INBUF:0                       mru:1500           SRCV:NO
       - TRFA section ---------------------------------------------------------
       TRFA:YES     TRFA-MODE:TOTALS       
       - Lan ------------------------------------------------------------------
       ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG          
RES:Eth-1 ---------------------------------------------------------------------
Run    DESCR:lan
       LOG:DS            MODE:AUTO                           max-vlans:0
       MAC-ADDR:FACTORY (FC-AA-14-7F-2B-12) 
       ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25

For the WAN port configure UPNP:WAN:

[15:10:51] ABILIS_CPX:s p ip-3 upnp:wan

COMMAND EXECUTED

[15:11:09] ABILIS_CPX:d p ip-3         

RES:Ip-3 - IP over DSL (DSL) --------------------------------------------------
Run    DESCR:ADSL_RFC1483
       OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:WAN
       LOWRES:Dsl-1
       LINK-ENC:RFC1483-LLCMUX
       IPADD:088.088.088.088   MASK:255.255.255.255   NEIGH:000.000.000.000
       REDIS:EXT     HIDE:NO         RP:NONE            IPSEC:NO      VRRP:NO
       NAT:OUTSIDE   UPNP:WAN        DIFFSERV:NO        DDNS:NO
       OUTBUF:250    OUTQUEUE:FAIR   MTU:1500           
       OUTSPL:NO     
       INBUF:0                       mru:1500           SRCV:NO
       - TRFA section ---------------------------------------------------------
       TRFA:NO
       - Link -----------------------------------------------------------------
       LLOG:DS       LMPX:NO                         LCR:NO        LCRKEY:DFT
       LT1:1000      LT3:3000         LN2:3          LCOMP:NO
       - ATM/ADSL -------------------------------------------------------------
       VPI:8         VCI:35           QOS:NORMAL
RES:Dsl-1 ---------------------------------------------------------------------
Run    DESCR:
       LOG:DS                      MODE:ADSL                  payload-rxbuf:30
       - Specific for Abilis-VDSL2 modem --------------------------------------
       MORE-ADSL-ANNEX:L,M
       - Specific for Abilis-5800UB modem -------------------------------------
       5800UB-MODULATION:AUTO
       - Adsl-ATM -------------------------------------------------------------
       max-vc:1
       adsl-usb-rxbuf:3            adsl-usb-txbuf:1
       - Vdsl-PTM -------------------------------------------------------------
       vdsl-usb-rxbuf:15           vdsl-usb-txbuf:15    

This is the result using GUPnP Universal Control Point on Ubuntu:

This is how to Add Port Mapping new using GUPnP Universal Control Point on Ubuntu:

[Important]Important

If an error occurs while adding a new port, then check the NAT table for no rules.

This is the result if the port is added:

[08:42:29] ABILIS_CPX:d nat all

UPNP maps
-------------------------------------------------------------------------------
PR: [DESCR:]
    W-IP:           W-PO: W-RES:  L-IP:           L-PO: L-RES:  PROT: LEASE:
-------------------------------------------------------------------------------
0   [syslog]
    088.088.088.088 514   Ip-3    192.168.030.020 514   Ip-1    UDP   STATIC
-------------------------------------------------------------------------------

Configured maps
-------------------------------------------------------------------------------
PR: [DESCR:]
    INAT:         ADD: SNET:              DNET:              ANET:
    ONAT:              SPO:               DPO:               APO:          PAT:
    SRES:   DRES:      PROT:              TOUT:
-------------------------------------------------------------------------------
                    *** NO NAT ALIAS ENTRIES CONFIGURED ***

[08:33:43] ABILIS_CPX:d nat upnp

UPNP maps
-------------------------------------------------------------------------------
PR: [DESCR:]
    W-IP:           W-PO: W-RES:  L-IP:           L-PO: L-RES:  PROT: LEASE:
-------------------------------------------------------------------------------
0   [syslog]
    088.088.088.088 514   Ip-3    192.168.030.020 514   Ip-1    UDP   STATIC
-------------------------------------------------------------------------------