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
Port forwarding problem with OpenVPN
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 4
- Joined: Wed Mar 25, 2015 10:49 am
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Port forwarding problem with OpenVPN
if this means that you get your defalt gateway redirected over the vpn and thenI have a paid OpenVPN connection from a provider and that provides me with a static IP all year round
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...
without any intervention from your vpn provider?short answer: you cant.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.
to answer this,its not a setting on vpn config, its a setting on your providers NAT endpoint.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?
Michael.