[Untitled]‎ > ‎

Set PPTP VPN Server and SSH Daemon on a DD-WRT Router

posted Apr 29, 2010 3:03 AM by J iNestdia   [ updated Dec 9, 2010 9:55 PM ]
ZoneAlarm DataLock



An Ubuntu home server has been set already. Here is what I did before.


Set up a PPTP VPN Server(Ubuntu) at home

Transmission-daemon on a headless Ubuntu server

Remote SSH Access to the Homeserver Behind A Router

Install Squeezebox Server on Ubuntu 9.10 Karmic

Set up an iTunes server on Ubuntu

Install Wordpress on Ubuntu 9.10(Karmic) locally

Share Home Directories automatically using Samba Server

Install Samba Server in Ubuntu for a Local Network

Install vsftpd in ubuntu

Install OpenSSH Server in Ubuntu

Configuration of Static IP in Ubuntu Local Server
Install LAMP Server Locally on Ubuntu 9.10(Karmic)
Setup a Home Server

DD-WRT is a third party developed router firmware released under the terms of the GPL. There are many advanced features in DD-WRT and here I use PPTP Server and SSH Daemon instead of installing them in the Ubuntu server. Here is my network when I use D-link DIR-600 router flashed with the new version of DD-WRT (v24) for example. I set the PPTP Server and SSH Daemon on the router.
Ref: You can find more about DIR-600 Info at dd-wrt.com.


 


The following is what I did.
Assuming the internal network IP address is 192.168.1.0/24, Ubuntu server IP is 192.168.1.2 and the DIR-600 Router IP is 192.168.1.1.

SSH Daemon Setup
At DD-WRT menu –> Services, at item Secure Shell, set
SSHd –> Enable
SSH TCP Forwarding –> Enable
Password Login –> Enable
Port 22 (Default)

At DD-WRT menu –> Administration –> Management, at item Remote Access, set
Remote Access –> Enable
SSH Remote Port –> 22

So, you can ssh the router by using the RouterUsername/RouterPassword.

PPTP Server Setup
At DD-WRT menu –> Services –> VPN, set
PPTP Server –> Enable
Broadcast support –> Enable
Force MPPE Encryption -> Enable
Server IP –> 192.168.1.1
Client IP(s) –> 192.168.1.230-235
CHAP-Secrets –> vpnusername * vpnpassword * (you can add more than one user)

Using a Dynamic DNS service
At DD-WRT menu –> Setup –> DDNS, setup the DDNS Info here when you using a Dynamic Domain Name System (DDNS).


 

Adidas Voucher MY Image Banner 300x250

suki b009 300x250

Phone Spy Image Banner 300 x 250

Scan B 007 300x250

Office Lady Scanner Image Banner 300 x 250