RRAS Problem

Posted on 2006-03-19
Last Modified: 2008-01-09
When I am using a VPN (L2TP/IPSEC) to connect to our RRAS server. I am getting an error messages "Error 789: The L2TP connection attempt failed because the security layer and when I try again I get an error message Error 792: The L2TP connection attempt failed because security negotiation timed out. Any ideas why I am getting this error message.
Could any one tell what ports need to be opened for L2TP/IPSEC and what are protocols on which the L2TP/IPSEC.
Question by:life_j
    LVL 2

    Expert Comment

    L2TP/IPSec traffic uses UDP ports 500 and 4500 to create and maintain the connection and IP protocol 50 to send data. Allow these ports to and from the firewall.

    Here are a couple of reasons for the error messages you are receiving.

    Error 789

    Error 792;en-us;Q299307

    If these don't work, try the following to do some basic troubleshooting and information gathering and report back.
    LVL 7

    Expert Comment

    "Error 789" error message when you use an L2TP VPN client through a Windows 2000 Terminal Services client session

    How to configure a L2TP/IPSec connection using pre-shared key authentication;en-us;240262

    Mutual authentication methods supported for L2TP/IPSec;en-us;248711

    Test the connection first using L2TP and a pre-shared key. Once it is working properly with a pre-shared key all of the other pieces of the puzzle fall together seemlessly.

    You can use IPSEC over L2TP -;en-us;265112

    Otherwise, troubleshooting steps are here:;en-us;314831

    The timeouts suggest that port 500 is being blocked along the way.

    Check your Ethernet Card :-
    LVL 7

    Author Comment

    No  I am getting an error: 781 No valid certificate available.
    Evaning after installing the certificates on both the server and the client
    LVL 2

    Accepted Solution

    Here are a few more things to look at.

    Sorry to leave you on this but I am headed out of time for a week and will not be around a computer.  Sunilcomputer, could you pitch in and see them through on this?

    -->I am assuming the certificates you are installing are created to support IPSec communications...
    If there is something corrupted with the certificate, you could try using pre-shared keys to test out the connection. If that works, then you know for sure you are dealing with a problem certificate.

    Error Connecting to <Connectoid Name>
    Connecting to <IP address>...
    Error 781: Encryption failed because no valid certificate was found.

    This issue can occur because of one of the following reasons:

    • The certificate on the virtual private networking (VPN) server is not a valid machine certificate or is missing. If the VPN server got a certificate during the Certificate Authority installation, this certificate is not valid for IPSec machine authentication.

    • The IPSec Policy Agent service is stopped and started without stopping and starting the Routing and Remote Access service on the remote computer.

    • The IPSec Policy Agent service is not running when you start the Routing and Remote Access service.

    To resolve this issue, do one of the following:
    • Install a valid machine certificate on the VPN server.
    • Stop and start the IPSec Policy Agent service, and then stop and start the Routing and Remote Access service on the remote computer. To do so, use one of the following methods.

    Method 1
    1. Click Start, point to Programs, point to Administrative Tools, and then click Computer Management.
    2. Double-click Services and Applications, double-click Services, double-click IPSEC Policy Agent, click Stop, click Start, and then click OK.
    3. Double-click Routing and Remote Access, click Stop, click Start, and then click OK.

    Method 2
    At a command prompt, type the following commands pressing ENTER after each command:
    net stop policyagent
    net start policyagent
    net stop remoteaccess
    net start remoteaccess

    NOTE: The IPSec Policy Agent service must be started when the Routing and Remote Access service initializes.
    LVL 7

    Author Comment

    When I try connecting with a pre shared key, I am getting an error message 792 and when I am tring to connect with the certificates I am getting an error message saying 781.

    Let me explain you completely what I tried.
    We have a SBS on which we installed RRAS to accept incoming conenctions for PPTP.I installed certificate services on the SBS .I manually installed the certicate on the server and then from my home pC I connected to my SBS server through PPTP and downloaded the certificate  by typing in the browser http:\\SBS\certsrv.
    I changed the PPTP connection to use L2TP/IPsec but wasn't succesfull.
    Then in connection properties changed as follows ->secuity-> I changed to Advanced (custom settings)-> use EAP. But this attempt has failed too.
    Any thoughts.

    Partex I did what you said in the above comment. With no luck

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
    #Citrix #POC #XenDesktop #vCenter #VMware #ESX
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    10 Experts available now in Live!

    Get 1:1 Help Now