Contact SalesSitemapCustomer Login

Go Back   VPSlink Forums > Technical Discussion > HowTo's

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2009, 02:24 PM
Junior Member
 
Join Date: Jun 2009
Posts: 2
Default vpn server

Hello guys maybe someone on the forum can help me ...i cant seem to get my vpn working and its .... me off. i have created the tun device with makenod.... but no go.

One of the support guys told me i must try recompiling my udom but when i run the make makeconfig ...it says that the ppp and tun support is enabled.... please help i need to get this up for a client.
Reply With Quote
  #2 (permalink)  
Old 01-24-2010, 05:40 PM
Junior Member
 
Join Date: Jan 2010
Posts: 2
Default

If u choose Xen platform, u can setup a vpn server without rebuild kernel.
Follow these steps. (My OS is ubuntu)
1. apt-get install pptpd
2. vi /etc/pptpd.conf
uncomment these lines
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
3. vi /etc/ppp/chap-secrets
add vpn users and passwords in this format, replace [username] and [password] of yours.
[username] pptpd [password] *
(ps: * means allowed all address.)
4. vi /etc/ppp/options
modify these lines
ms-dns 208.67.222.222
ms-dns 208.67.220.220
(ps: u can choose other DNS servers u like)
5. vi /etc/sysctl.conf
uncomment this line.
net.ipv4.ip_forward=1
6. restart your vps.
7. enter these commands
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
iptables -I FORWARD -p tcp --syn -i ppp+ -j TCPMSS --set-mss 1356
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 02:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0