I have an Ubuntu machine with this configuration:
I use Tailscale VPN to connect to this machine.
the Ubuntu Tailscale ip is 100.98.89.67, and the Tailscale ip of my localhost is 100.84.15.59.
The Ubuntu is connected to a switch, and a plc machine is also connected to this switch.
In Ubuntu, I set net.ipv4.ip forward=1
. The static ip of the plc is 192.168.1.2.
I have a ping from the Ubuntu to the plc.
I want to have access from my local host to the plc.
How can I configure the Ubuntu machine to route the traffic between my local host and the plc?