Forward Port to different subnet



  • Hi,

    this might be a stupid question, but I haven't figured out a good way to reolve this without a VPN.

    I have a machine interface running on the machines subnet in 192.168.95.0/24 and a client computer running on the LAN subnet 192.168.65.0/24.
    I have a software to display machine data by accessing the machine IP on port 5141. If machine and client are in the same subnet this works. The software scans the subnet for an open port 5141. But obviously it will not find the machine if the client is not in the same subnet. There is no way to tell the crap software on which IP to look for the machine.

    Is there a way to provide the machine with a virtual IP with an open Port 5141 in the LAN subnet so the software on the client can find it? As service technicians from the manufaturer of the machine will access the machine from outside I am not willing to give the machine access to my LAN Network, so firewalling would be important, too.

    Any help would be appreciated. Thank you!

    Ben



  • Hmm...you cannot set the machine's IP in the software?
    Maybe try setting up a Port Forward on the software subnet to the IP of machine/port.

    edit: you may need https://docs.netgate.com/pfsense/en/latest/nat/accessing-port-forwards-from-local-networks.html


Log in to reply