Build VPN Sever on Linux Debian ??

Posted on 2007-10-13
Last Modified: 2013-12-06
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??
Question by:bluud

    Author Comment

    this video explains pretty much everything ... ... and I did most of what I could based on the video

    Author Comment

    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?
    LVL 19

    Accepted Solution

    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,
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Sonicwall VPN 17 44
    iptables ubuntu BLOCK all 2 67
    Mac OS 10.12 + VPN 17 105
    Which maximum version of Zabbix is supprted on CentOs 6. 7 79
    Juniper VPN devices are a popular alternative to using Cisco products. Last year I needed to set up an international site-to-site VPN over the Internet, but the client had high security requirements -- FIPS 140. What and Why of FIPS 140 Federa…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now