Need to access home server that is behind openVPN via DDNS

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
jaydoc
DD-WRT Novice


Joined: 17 Jul 2019
Posts: 1

PostPosted: Wed Jul 17, 2019 22:30    Post subject: Need to access home server that is behind openVPN via DDNS Reply with quote
Hi all

I have a server at my home that is running multiple services on multiple ports that I would like to access from work/remote locations. I have internet service that provides dynamic IP and so I have a DDNS provider (Google Domains) that is set up to receive the actual IP from a script running on the server every 15 min. Forwarding is enabled for all appropriate ports through the NAT page.

This all works great when openVPN (VPN provided through FastestVPN) is not enabled, but once I turn this service on, I am no longer able to access these services through a remote browser.

I know this has to be because the IP address that gets reported to the DDNS service is the IP from the VPN and not that from my ISP.

I want to know if its possible to keep the server behind the VPN and still access it from a remote location. I do not have the expertise to resolve this issue on my own, therefore any help is appreciated.

Thanks.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3678
Location: Netherlands

PostPosted: Thu Jul 18, 2019 6:54    Post subject: Reply with quote
Normally DDWRT gives your WAN IP address to the DDNS service unless you enable external IP check. So that should not be the problem

The problem probably is that if you enable the VPN client all traffic is going out through that VPN client.
When reaching your router from outside via the WAN your firewall will not like it if traffic goes out via the VPN and will block it.

@eibgrad has detailed a number of solutions see: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1129398 the sixth post

I use PBR to run a VPN client and VPN server on the same router.

When posting on this forum it is always helpfull if you state your router model and build number so that we can give you a more detailed advice how to solve your problems

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum