Custom route/Port forwarding

Hi,
I have a setup like described in the picture, my engineering PC is connected to X2 connector of my Wago PLC. Then there’s on IOT module, running an UI application on top of Node Red (port 1880), connected to X2. I would like to route the etherhet traffic through the PLC, so that I can see the UI with my engineering PC. Is that possible? I have tried many to accomplish it by tweaking the ‘Custom Route’ and ‘Port Forwarding’ setting in WBM, but no success so far.

Regards
Pekka

try using network=host for the docker container.

I’m not running Docker.

I’m assuming you’re using two Windows-based computers. If not, some of this post does not apply.

1)Enable “IP-Forwarding through multiple interfaces” in the PFC200 WBM.

2a) Run “cmd” as the administrator on the IoT Computer
2b) Execute the command “Route ADD 192.168.1.0 Mask 255.255.255.0 192.168.2.17”.

3a) Run “cmd” as the administrator on the Engineering PC
3b) Execute the command “Route ADD 192.168.2.0 Mask 255.255.255.0 192.168.1.17”.

The Engineering PC should be able to communicate with the IoT Computer now.

1 Like

Yes, that does it! Thanks a million!
My IoT device is actually a Raspberry Pi like Linux device, so the first command needed to be “ip route add 192.168.1.0 via 192.168.2.17”

1 Like

I believe that if the IoT module has default gateway set to 192.168.2.17 you dont need to manually add the route on that device, only the engineering PC.

You could also possibly activate IP masquerading on the PLC.

Is there a way I can communicate with the couplers using different LAN segments? I tried to add a Route like this but I can only see the X2 Port of my PFC200

I tried to use a Custom Route with the WBM but doesn´t seem to ping with the couplers. I have the Routing Option Enabled also

How can I do this with Custom Routes? Is there a difference with the IP Masquerading?

The easiest way to make this work…

  1. Delete your custom route
  2. Enable “IP Forwarding through multiple interfaces” in the WBM of the 750-8212?
  3. Set the Default Gateway in both 750-362s? In your case, it should be 192.168.1.13?
  4. Execute the following Route command on the laptop from the CLI with administrative privileges: “ROUTE ADD 192.168.1.0 MASK 255.255.255.0 192.168.100.12”

You should now be able to PING the 750-362s from your laptop.

1 Like