My goal is to set up a public IP for a Android Smartphone which is running an IP Cam software - the interface can be accessed in local network on (example) 192.168.0.2:8080 - But it has no public IP as it should also work in the 3G network.I know there are services which offer a VPN with static dedicated adresses, the free one I found, offer only PPTP with IPv6 (didnt work)And the rest of them offering IPv4 for much higher cost than an actual VPS at Host1Plus with the lowest specs, so I went with this. At least I can practise and/or use the VPS for other projects. I followed this tutorialNow I am at the point where I created a new User, assigned a static VPN Adress in the OpenVPN Admin Panel to the account, and logged with my device in.Everything works so far. My android device gets the public IP of the VPS while browsing.And I can ping the devices private VPN IP in the SHH terminal of the VPS.What is the next step?I tried thisBut it doesnt really work. And I am also lost at this point. Was just Try&Error as I never did anything with routes or forwarding.If I enter the public VPS IP right now, I get the openVPN Login Form as before. If I enter [PublicVPSIP]:8080 I get a Server not reachable etc. error.At the end it should work like this.Android (running some service at port 8080) (VPN IP: 1.2.3.4)connects via openVPN to my VPSVPS (running openVPN Server) (Public IP: 123.123.123.123)Traffic from visitor at 123.123.123.123:8080 should be redirected/forwarded to my android device. (1.2.3.4:8080)..
VPS: How to forward traffic to devices from public IP
centos;routing;vpn;openvpn;forwarding