Skip to main content
Submitted by lightdee on Fri, 01/15/2010 - 15:27

I want to use GalilTools v1.4 connecting to a DMC2142s NATed behind a router. I'm on a 10.x.x.x network and the controller is on a 192.168.0.x network. I can forward the ports directly to the controller if I know which ones and what protocols. Looking at your linux install document, (http://www.galilmc.com/support/manuals/galiltools/introduction.html#lin…), it seems I need to forward UDP over ports 67 and 50000. Tried that and I got (10.0.0.28 is the IP of the NAT):
5004 OPEN ERROR. Galil::Galil() failed to open Ethernet host 10.0.0.28

Actually, if you are conversant in iptables, here are the forwarding rules I'm using:
# forward GalilTools traffic to galil controller
-A PREROUTING -i eth0 -p udp --dport 67 -j DNAT --to-destination 198.18.0.2:67
-A PREROUTING -i eth0 -p udp --dport 50000 -j DNAT --to-destination 198.18.0.2:50000

Comments 3

Galil_DJR on 01/15/2010 - 16:41

You don't need to forward 67. That is required for a host firewall to assign IP addresses, but not for a system that already has an IP address assigned. Assignment is unlikely to work through a router.

GalilTools will try to connect by default with TCP on port 23. You can reassign the port or use UDP at connection time with connection switches client-side: http://www.galilmc.com/support/manuals/galiltools/connections.html#opti…

lightdee on 01/18/2010 - 11:50

Thanks - forwarding port 23 using TCP seems to work. Yes, I already had an IP assigned to the controller.
Why open up 50000 and 60000 through a firewall, as is discussed in the page I referenced? There is no mention of these ports on your connections page.

Galil_DJR on 01/18/2010 - 13:13

Port 50000 is used during the controller discovery operation. You don't care about this because you don't care about the IP address of your controller, just the IP address of the router. NAT takes care of the translation.

60000-60007 are ports used for the Data Record (The Scope feature), Unsolicited Messages, and UDP interrupts (Not supported on 21x3). By default, this data comes over 60007, UDP. This is not required for command-and-response communication from the host.