Here's my situation. I own a VPS that provides 3 public IPs / public interfaces. let's call these IP address V1 (on eth1), V2(on eth2) and V3 (on eth3)
At home, I have a router. The home WAN IP is H. Behind my router, I have a Ubuntu box serving a website on port 80. Since my ISP blocks port 80, I have configured my router to do port forwarding from external 8080 to internal Ubuntu:80. So I am able to access my website from outside my home as
What I want to do is on my VPS, forward traffic on V2 port 80 to H port 8080.
Basically, I should be able to say
http://V2 .... this will first go to the second interface on my VPS on port 80, which will then automatically go to port 8080 on my router .. which will eventually go to port 80 on my Ubunty.
Is this doable? Is iptables what I should be looking to learn? I dont' know if this qualifies as "routing" or "NAT" or what.
TL;DR - What I have --> Port forward router external port 8080 to ubuntu machine inside router port 80. What I want --> create a "transparent link" between port 80 on my VPS eth2 to port 8080 on my router.
I want to access my website as
http://V2 rather than
(By the way, http/port 80 is my first goal. I want to do the same with SSH and a few other services too!)