Port forwarding with PLCNext

Dear Sir, Customer is using PLCNext AXC F2152 . He wanted to some port forwarding in PLC. There are two IP’s (192.168.1.10, 192.168.1.100)which which PLC is Communicating on same socket 8000, which is creating issue and PLC ip is 192.168.1.2 So he wanted to redirect incoming and out going traffic from 192.168.1.100:8000 to 192.168.1.2:8001 . AXC F 2152 FW : 2020.0 Please suggest

Hello,

which device is initiating the communication?
A port forwarding seems to be a little much if all you have to do is select a different bind port at your TCP connect.
Are you trying to providing two different services at the same port 8000 on your PLC (as servers)?
Usually the party that establishes the connection does not care much for the local port.

kind regards,
Oliver

Hello Oliver, we are testing Multimaster communication with PLCNext. At Customer Place Master’s are communicating with PLC over port no 8000 independently (For Ex Master 1 is 1.10: 8000 and Master 2 is 1.100:8000) Now as Per Test case it is not possible to Change Port No at Master End. we are live with system , it will be great help if you guide me solution Regards Chetan

Hello Chetan,

these NAT settings are currently not supported by the PLCnext WBM.

Please provide some code and example Master configuration.

I dont understand why this is not possible to program/configure (without having to use NAT.)

Of course you can add your own NFT rules to do the port forwarding.
Please take the NFT documentation for reference then.
You could also use a dedicated device for the NAT.

Example see here https://www.plcnext-community.net/en/discussions-2-offcanvas/re-nftables-and-network-traffic-redirection-6.html