Hi,
I’ve converted the RM520N-GL to the NAT mode to NAT between its WWAN and its LAN interface. The RM520N-GL came with the IP Passthrough (IPPT) mode, so I was able to get a public IP from my 5G carrier onto a host connected to the RM520-GL. Once I converted IPPT to NAT, the RM520N started serving a private DHPC lease to the host connected via Ethernet to the RM520N.
The command I used was;
at+qmap="mpdn_rule",0,1,0,0,1
The third parameter (0) is the VLAN tag. VLAN 0 means no tagged VLAN on the LAN interface.
The fourth parameter (0) disables the IPPT mode and puts the RM520N into the NAT mode.
The fifth parameter (1) enables the MPDN rule
Once I issued this command and renewed the DHCP lease on the connected host, the connected host received an IP address from the DHCP pool configured in RM520N:
at+qmap=“lanip”
+QMAP: "LANIP",192.168.225.20,192.168.225.100,192.168.225.1
I was able to use the Internet with the RM520N doing NAT. This was an experiment - not that I am planning to run the RM520N in the NAT mode - at least not yet until I figure out more AT commands that I can fine-tune the firewall rules to be applieed to the RM520N’s WWAN interface.
However, my problem is that I can’t revert the RM520N back into the IPPT mode. The command (according to the beta version of the AT manual) is:
at+qmap="mpdn_rule",0,1,0,1,1
The fourth parameter (set to 1) is supposed to enable IPPT (IP Passthorugh) on the Ethernet interface, but the RM520N rejects this command with an error.
at+qmap="mpdn_rule"
+QMAP: "MPDN_rule",0,1,0,0,1
+QMAP: "MPDN_rule",1,0,0,0,0
+QMAP: "MPDN_rule",2,0,0,0,0
+QMAP: "MPDN_rule",3,0,0,0,0
OK
at+qmap="mpdn_rule",0,1,0,1,1
ERROR
at+qmap="mpdn_rule",0,1,0,1
ERROR
at+qmap="mpdn_rule",0
OK
at+qmap="mpdn_rule"
+QMAP: "MPDN_rule",0,0,0,0,0
+QMAP: "MPDN_rule",1,0,0,0,0
+QMAP: "MPDN_rule",2,0,0,0,0
+QMAP: "MPDN_rule",3,0,0,0,0
OK
at+qmap="wwan"
+QMAP: "WWAN",0,1,"IPV4","0.0.0.0"
+QMAP: "WWAN",0,1,"IPV6","0:0:0:0:0:0:0:0"
OK
at+qmap="lanip"
+QMAP: "LANIP",192.168.225.20,192.168.225.100,192.168.225.1
OK
at+qmap="wwan"
+QMAP: "WWAN",0,1,"IPV4","0.0.0.0"
+QMAP: "WWAN",0,1,"IPV6","0:0:0:0:0:0:0:0"
OK
at+qmap="mpdn_rule",0,1,0,1,1
ERROR
at+qmap="mpdn_rule",0,1,0,0,1
OK
at+qmap="mpdn_rule"
+QMAP: "MPDN_rule",0,1,0,0,1
+QMAP: "MPDN_rule",1,0,0,0,0
+QMAP: "MPDN_rule",2,0,0,0,0
+QMAP: "MPDN_rule",3,0,0,0,0
OK
at+qmap="wwan"
+QMAP: "WWAN",1,1,"IPV4","162.191.XXX.YYY"
+QMAP: "WWAN",0,1,"IPV6","0:0:0:0:0:0:0:0"
Any ideas on how to revert the RM520N back to IPPT (IP Passthrough) mode to bridge its WWAN to its LAN interfaces?
Thank you.