Is it possible to do the following with an RPi2 running Raspbian Jessie?
Configuration
- RPi2 is connected to a regular Ethernet network in the office
- RPi2 is also connected to a WiFi access point using an EdiMax adapter
Task
Now I want to connect to TCP port 1001 (as example) on a device with IP 1.2.3.4 on the WiFi access point network. THis device does not have any Ethernet.
This is to be done from a computer on the Ethernet network who cannot connect to the WiFi network because it is too far away.
So can the RPi2 be configured as a proxy/router or similar between the two?
It is somewhat like my regular Internet router where I can set up "port forwarding" so that a remote computer anywhere on the Internet can access my router's external IP addres and the specified port number and in fact be forwarded to a computer (predefined in the router) on the inside office network.
I was thinking about creating a special program for this purpose when I realized that the task looks a lot like something that is already done on routers and therefore there might be functions available on Raspbian Linux just waiting to be used...