• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1469
  • Last Modified:

Build VPN Sever on Linux Debian ??

I have a VPS server ... and I installed pptpd server on Debian Linux ... when I try to connect to it using windows vpn connection it says .. A connection to the remote computer could not be established so the port for this connection was closed ... I don't know how to get this working ... any suggestions??
0
bluud
Asked:
bluud
  • 2
1 Solution
 
bluudAuthor Commented:
this video explains pretty much everything ... http://www.parsaspace.com/behroozi//swf/poptop-debian.htm ... and I did most of what I could based on the video
0
 
bluudAuthor Commented:
This time I installed Ubuntu 7.0 ... it was really easy to get the vpn server ... just did apt-get install pptpd ... and then added user ... but now when I try to connect to the vpn server through windows client it says ... The vpn connection could not be completed. The most common cause for this failure is that at least one Internet device (for example, a firewall or a router) between your computer and the VPN server is not configured to allow Generic Routing Encapsulation (GRE) protocol packets. ... How can I overcome this problem?
0
 
Gabriel OrozcoSolution ArchitectCommented:
for iptables you need
 # +-------
 # | pptpd
 # +-------
 echo "PPTPd"
 $ipt -A INPUT -p tcp --dport 1723 -j ACCEPT
# protocol 47 is GRE:
 $ipt -A INPUT -p 47               -j ACCEPT
# to allow actual traffic flowing from and to the vpn
 $ipt -A FORWARD -o ppp+ -j ACCEPT
 $ipt -A FORWARD -i ppp+ -j ACCEPT

also be sure you have the correct modules loaded or do not add vpn encryption on the client:
modprobe ppp_mppe
(the name of the module can vary between distros... the special one I installed with compression [not gpl] was modprobe ppp_mppe_mppc)

then you should be able to see improvement,
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now