Port forwarding problem with OpenVPN

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.
Locked
Cloudy_Brain
OpenVpn Newbie
Posts: 4
Joined: Wed Mar 25, 2015 10:49 am

Port forwarding problem with OpenVPN

Post by Cloudy_Brain » Wed Mar 25, 2015 11:01 am

Hello!

First some important info.

I have a server which runs some services that I'd like to access from the wan. My ISP doesn't provide me with a static IP, so I have a paid OpenVPN connection from a provider and that provides me with a static IP all year round. I use a Raspberry Pi 2 on my LAN to connect to this VPN and it works great.

Now.. I've forwarded the ports on my modem/router so the services I want directed to my server go there... which works fine when using the dynamic IP my ISP assigned me. What I want to do however is give friends/family the Static VPN IP instead so that when they use the services, the packets come into the modem/router > get port forwarded to the server and all is well. At least that was my intention.

In practice whenever I try to use the vpnip:portofservice I get the connection refused, or just simply not seeing the server.

My question is, is there a setting in the config of the VPN I need to change to allow the traffic to be correctly forwarded?

Many thanks in advance for your time,
Cloudy

User avatar
maikcat
Forum Team
Posts: 4202
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Port forwarding problem with OpenVPN

Post by maikcat » Wed Mar 25, 2015 4:27 pm

I have a paid OpenVPN connection from a provider and that provides me with a static IP all year round
if this means that you get your defalt gateway redirected over the vpn and then
your vpn provider NATs your traffic when reaching the internet , then if you want
to be reached from this address (your vpn providers static ip) then your vpn
provider must forward your wanted port back to you...
What I want to do however is give friends/family the Static VPN IP instead so that when they use the services, the packets come into the modem/router > get port forwarded to the server and all is well. At least that was my intention.
without any intervention from your vpn provider?short answer: you cant.
My question is, is there a setting in the config of the VPN I need to change to allow the traffic to be correctly forwarded?
to answer this,its not a setting on vpn config, its a setting on your providers NAT endpoint.

Michael.

Locked