Frequently Asked Question
Hosting multiple G4 units behind a NAT router
Last Updated 10 years ago
Fetching data from multiple G4 devices which are installed behind a NAT router is possible, but may require some extra configuration if your router/firewall does not provide “out of the box” support for forwarding FTP connections over non-conventional ports.
This is due to the fact that the DATA port is changing with each connection, as defined in the FTP protocol RFC.
In order to overcome this issue – for each device, a range of available data ports needs to be pre-defined by configuring both the router and the devices.
For example:
Router configuration:
For device No.1:
CMD port: 8021 on router’s external interfaces forwarded to 21 on
the device.
DATA ports range: 8050-8054 on router’s external interfaces forwarded to 8050-8054 on the device.
For device No.2:
CMD port: 9021 on router’s external interface is forwarded to 21 onthe device.DATA ports range: 9050-9054 on router’s external interface is forwarded to 9050-9054 on the device....and so on.
Device configuration:
Open a Telnet window and connect to a device:
Username: PQ4xx
Password: PQ4xxPQ4xx
Type:
Prm_Debug_Set_int 0x1248, VALUE (where “value” is the first port on a range of 5 sequential ports).
Exit
Reboot the device.
PQSCADA server configuration:
Fetching data from a device which is configured to use non-conventional FTP ports is possible by adding : <port_number>
to the IP address of the that device in Node’s properties, for example: 192.168.10.45:8021.
This is due to the fact that the DATA port is changing with each connection, as defined in the FTP protocol RFC.
In order to overcome this issue – for each device, a range of available data ports needs to be pre-defined by configuring both the router and the devices.
For example:
Router configuration:
For device No.1:
CMD port: 8021 on router’s external interfaces forwarded to 21 on
the device.
DATA ports range: 8050-8054 on router’s external interfaces forwarded to 8050-8054 on the device.
For device No.2:
CMD port: 9021 on router’s external interface is forwarded to 21 onthe device.DATA ports range: 9050-9054 on router’s external interface is forwarded to 9050-9054 on the device....and so on.
Device configuration:
Open a Telnet window and connect to a device:
Username: PQ4xx
Password: PQ4xxPQ4xx
Type:
Prm_Debug_Set_int 0x1248, VALUE (where “value” is the first port on a range of 5 sequential ports).
Exit
Reboot the device.
PQSCADA server configuration:
Fetching data from a device which is configured to use non-conventional FTP ports is possible by adding : <port_number>
to the IP address of the that device in Node’s properties, for example: 192.168.10.45:8021.