ubuntu server port forwarding to private ip
I realize this maybe simple for some but my research for a solution is getting me nowhere on this.
I am basically trying to do something so simple thats becoming a difficult task for me ... and yes i was a redhat certified technician a while back but i just never studied iptables and its drama.
What i am trying to do is something silly. use my vps as a gateway and have it forward traffic on incoming ports to my private computer at home.
so traffic that would come in on port 9003 (for example) to my VPS ip would be forwarded to my home ip via what i have setup which is the openvpn server.
on the openvpn server i've given myself a static ip of 172.27.230.2
I want my vps public ip to be "mask" so to speak.
So then traffic that comes to my pubip:9003 gets redirected to 172.27.230.2
in ubuntu server i tried to use ufw (ubuntus firewall software) to first open the port then i tried a nat redirect rule.
i then used a tcp/ip program on my windows machine called Listen.exe .. this is nothing more than a program that listens on a specified port .. i then used port checking utility online to verify my work.
yet all the time the ports are closed and the traffic is not coming through.
i checked on ubuntu with netstat and i see the port 0.0.0.0:9003 is open.
again. i realize this is outside the scope of your work but i am desperate and cant get this working.
please advise.
|