VPN and DDNS not responding

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
SilverSilencer
DD-WRT Novice


Joined: 05 Mar 2015
Posts: 18

PostPosted: Sat Mar 21, 2015 8:23    Post subject: VPN and DDNS not responding Reply with quote
I am using Linksys E1200 v2 and DD-WRT v24-sp2 (02/04/15) big - build 26138 and today I wanted to activate VPN with DDNS (like I already did on same router on other location). And the problem is that I can't connect to that VPN from anywhere and at DDNS settings I used freedns.afraid.org (same settings like on other location which works) but on the bottom at DDNS status where there should be log about connection there's just "Connecting to server" all the time.

And the router (who has local IP 192.168.0.1) is connected directly to modems (which has local IP 192.168.1.1) port, I'm not sure if I should maybe open/forward some ports on modem to my router's IP or something which will allow DDNS and VPN connection?
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 8043

PostPosted: Sun Mar 22, 2015 2:53    Post subject: Reply with quote
I assume this is a VPN “server” configuration. Would be nice to know which one (PPTP or OpenVPN).

If the modem is really a combo modem+router, then I would assign a static IP to the WAN of the dd-wrt router from the network of the modem+router, and place that IP in the DMZ of the modem+router. Now anything that’s blocked by the modem+router’s firewall will be passed to your router.

As far as DDNS, you can’t rely on the traditional configuration for DDNS when it’s NOT the primary router. By default, DDNS will always use the WAN ip of the router, which in this case is a private IP from the modem+router! What would work best is to have the modem+router handle it since it has the public IP. Or else you need to use an alternate approach for setting up DDNS on the dd-wrt router that uses a public IP checker rather than the WAN.

For example, try adding the following to the Additional DDNS Options field:

Code:
--ip_server_name checkip.dyndns.org:8245 /
SilverSilencer
DD-WRT Novice


Joined: 05 Mar 2015
Posts: 18

PostPosted: Sun Mar 22, 2015 8:40    Post subject: Reply with quote
I am using PPTP.

Great, I will try that. So If I got all correctly, on my modem (192.168.1.1) I have to set DMZ to my router (192.168.0.1).

And then do I have to set static IP on my router or can I leave it "Automatic configuration - DHCP"? If I have to set static IP, will this be OK:

WAN IP Address: 192.168.1.3
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1

And I'm not sure about this part:

Quote:
For example, try adding the following to the Additional DDNS Options field:

Code:
--ip_server_name checkip.dyndns.org:8245 /

Where can I find additional DDNS options field?
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 8043

PostPosted: Sun Mar 22, 2015 17:00    Post subject: Reply with quote
You configure a static IP from the modem+router's network (something not in use elsewhere, and not part of its DHCP server pool of IPs) to the WAN of your dd-wrt router. You then add that IP to the DMZ of the modem+router. Now the modem+router knows to forward traffic that it would otherwise block to that IP, which is, of course, your dd-wrt router.

Looks like the DDNS page may have changed, at least for some builds. I know at one time there was a field for additional DNS configuration. But I see on my recent Kong build it now has an option called “Use external ip check”, which is the same thing. It will bypass the WAN and determine your public IP using some website designed for that purpose.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum