Create VPN Server behind ADSL Modem/Router + DD-WRT Router in Bridged Mode Setup

javacookies

Junior Member
Jan 19, 2015
1
0
0
Hi,

I would like to create my personal VPN server using my DD-WRT router. I was able to create one using online tutorials which is pretty easy. However, I can only connect to it locally, for example I connect to 192.168.1.2. I use an android tablet to test it. I tried connecting to my WAN IP but it won't connect. Here's my setup.

Router 1 (ADSL Modem provided by my ISP)
IP: 192.168.1.1
DHCP Server: Enabled (192.168.1.3-254)
ISP: Dynamic IP Address

Router 2 (DD-WRT Router with Wireless)
IP: 192.168.1.2
DHCP Server: Disabled
Wireless Mode: AP
WAN: Disabled
PPTP Server: Enabled
Server IP: 192.168.1.2
Client IPs: 192.168.1.15-20


Since my WAN is dynamic IP, I tried to use No-IP.com and set it up on my router's DDNS.
Hopefully, someone can help me on this. Thanks!
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,529
416
126
I do not think that you can make a Router (DD-WRT or any other) that is configured as an Access Point only to run a VPN server.

The closet thing that I found as sort of a solution is this.

Connect two routers on one network, one router is running VPN and DD-WRT - https://www.youtube.com/watch?v=yg-V0gMp7vU

Also click on the Show more under the Video screen to see this.

Published on Jul 29, 2012
How to connect two routers on one network, when one router is running OpenVPN and DD-WRT. Additional info not covered in video can be found at the bottom of this description.

Video is intended to be a tutorial for a beginner for those who wish to connect 2 routers together, when 1 router is using VPN. The tutorial is intended to run through the steps necessary to achieve the stated aim without using technical words or jargon.

The terms / words used in the tutorial may not be technically correct, as I am not an expert.

Commands used in this tutorial are:-
Slide 13
# Allow Router2 to forward traffic to Router1 subnets
iptables -I FORWARD -s 192.168.1.0/24 -j ACCEPT

Additional to the presentation:-
If you do not want to use a program such as FileZila it may be possible to set up a folder link on your desktop. To do this follow these instructions:-
1) Right mouse click on your desktop
2) Select New - Shortcut
3) in the "Type the location of the item:" field enter \\192.168.2.101 (where \\192.168.2.101 is the location of the machine you wish to connect too)
4) Select Next & Finish
5) this will create a shortcut, the first time you click on it you may need to enter your Username & Password of the item you are connecting to i.e. 192.168.2.101



:cool:
 
Last edited:

JoeMcJoe

Senior member
May 10, 2011
327
0
0
You can have a device located on the network to act as a VPN server, as long as you forward all the correct ports from the 1st router to the 2nd router(AP).
This is how NAS devices, QNAP etc do it.