So I currently have a Minecraft server running on a computer in my house and would like to port forward it. However, the computer is in a separate room to the router and doesn't have WiFi. In order to get around this issue I have setup a Raspberry Pi 3 which runs this code at startup in order to take the WiFi connection on the Pi and forward it to the Ethernet port.
This part is working fine, however, as this is running on a separate sub-net (192.168.2.* instead of the 192.168.1.* that my main router runs on) I am unable to access it unless I am connected to that particular sub-net thus, making it impossible to port forward as my router cannot physically see the server.
I am looking for a solution (ideally using iptables) that will take the port on the server connected to eth0 (192.168.2.93:19132) and make it accessible via the Pi (192.168.1.101:19132) so the I can port-forward the port on the Pi and it will give me access to the server externally.
Sorry for the long winded explanation, it's my first post and I don't really know how to explain what I'm trying to do, anymore info needed just ask. Thanks in advance!