Skip to content

Potential NAT issue #81

@juanwinsor

Description

@juanwinsor

We are running a PLC simulator in a VM on a hardcoded IP address. We use NAT to bridge the host pc (which is running our modbus application), and the vm.

When I connect I receive a handful of timeouts and then it starts spitting out NMBS_ERROR_INVALID_TCP_MBAP error non stop. The logic triggering the error is the transaction id in the recv_res_header function

if (nmbs->platform.transport == NMBS_TRANSPORT_TCP) {
    if (nmbs->msg.transaction_id != req_transaction_id)
        return NMBS_ERROR_INVALID_TCP_MBAP;
}

Any help appreciated, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions