For simplicity purposes, assume that a network has two computers behind a gateway and firewall, computer A and computer B.
Computer A is running openvpn as a client. Its traffic is forwarded to an openvpn server at a remote location. Accordingly, computer A has two IP addresses: 192.168.1.1 (eth0) and 10.20.10.20 (tap). Computer A's openvpn config file is displayed at the bottom. Computer A runs windows 7.
Computer B does not run open vpn. It just has IP 192.168.1.2 (eth0). Computer B runs linux. It is accessible to the outside world.
How does one forward a single port from Computer A to Computer B? (Using putty or otherwise). There is a service running on Computer A, port XYZ that needs to be accessible to the outside world. Accessing it on the openvpn-server's endpoint is not possible. So, it is possible to forward a single port from A to B over putty? Users could then access Computer B from the outside world, whose connection to port XYZ would then be routed to Computer A. Thus, although Computer A is still connected to the openvpn tunnel, its can be reached from Computer B on the local network.
Please let me know if you have a solution, thanks.
client dev tun proto tcp remote XX.XX.XXX.XXX 443 resolv-retry infinite nobind persist-key persist-tun ca ca.crt tls-client remote-cert-tls server auth-user-pass comp-lzo verb 1 reneg-sec 0