IPSec + L2TP + NAT-Traversal does not work for multiple clients behind same natPPTP VPN server: two connections from the same IP address, but different devices?Debian squeeze as L2TP/IPSec gateway for Android devicesUnderstanding ipsec with NAT and dynamic IP'sipsec vpn with racoon drops traffic on phase 1 renegotiationOpenswan + xl2tpd connections time out after a whileStrongSwan + xl2tpd client timeout between 2-5 minutesOpenSwan + AWS + Ubuntu 14.04 - Cannot reach serverTrying to replicate a working IPSec/L2TP config from OpenSWAN to StrongSWANOpenSwan and L2TPd traversing secondary gatewayIPsec VPN with subnet overlapping and NATIpsec nat-traversal on port 4500

What happened to the Dothraki in S08E06?

Point to polygon walking distance

Why is unzipped directory exactly 4.0K (much smaller than zipped file)?

Is a world with one country feeding everyone possible?

Why is the Eisenstein ideal paper so great?

Paired t-test means that the variances of the 2 samples are the same?

Unary Enumeration

Is this homebrew "Cactus Grenade" cantrip balanced?

Storing voxels for a voxel Engine in C++

switching alignment

Gravitational Force Between Numbers

Why did other houses not demand this?

Papers on ArXiv as main references

How does Dreadhorde Arcanist interact with split cards?

Is "vegetable base" a common term in English?

Why is std::ssize() introduced in C++20

What could be my risk mitigation strategies if my client wants to contract UAT?

Why was this character made Grand Maester?

What is to the west of Westeros?

ifconfig shows UP while ip link shows DOWN

Team has team lunch everyday, am I forced to go?

How to write numbers and percentage?

What is the limit to a Glyph of Warding's trigger?

The disk image is 497GB smaller than the target device



IPSec + L2TP + NAT-Traversal does not work for multiple clients behind same nat


PPTP VPN server: two connections from the same IP address, but different devices?Debian squeeze as L2TP/IPSec gateway for Android devicesUnderstanding ipsec with NAT and dynamic IP'sipsec vpn with racoon drops traffic on phase 1 renegotiationOpenswan + xl2tpd connections time out after a whileStrongSwan + xl2tpd client timeout between 2-5 minutesOpenSwan + AWS + Ubuntu 14.04 - Cannot reach serverTrying to replicate a working IPSec/L2TP config from OpenSWAN to StrongSWANOpenSwan and L2TPd traversing secondary gatewayIPsec VPN with subnet overlapping and NATIpsec nat-traversal on port 4500






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















I have recently configured a VPN server hosted in AWS EC2.
Details: Centos 6.4, openswan, xl2tpd, NAT-traversal.
The configuration works great for a scenario when only one user connects form a given public IP address behind NAT. But when there are multiple clients behind same NAT, every new client connection drops old one. Looking at logs I can make a conclusion that l2tp treats all connections from the same nat as one.



Am I missing something? Is there a solution?



Your help is much appreciated.










share|improve this question






















  • i think im facing the same problem did you manage to solve the problem

    – john
    Nov 19 '14 at 7:56


















5















I have recently configured a VPN server hosted in AWS EC2.
Details: Centos 6.4, openswan, xl2tpd, NAT-traversal.
The configuration works great for a scenario when only one user connects form a given public IP address behind NAT. But when there are multiple clients behind same NAT, every new client connection drops old one. Looking at logs I can make a conclusion that l2tp treats all connections from the same nat as one.



Am I missing something? Is there a solution?



Your help is much appreciated.










share|improve this question






















  • i think im facing the same problem did you manage to solve the problem

    – john
    Nov 19 '14 at 7:56














5












5








5


2






I have recently configured a VPN server hosted in AWS EC2.
Details: Centos 6.4, openswan, xl2tpd, NAT-traversal.
The configuration works great for a scenario when only one user connects form a given public IP address behind NAT. But when there are multiple clients behind same NAT, every new client connection drops old one. Looking at logs I can make a conclusion that l2tp treats all connections from the same nat as one.



Am I missing something? Is there a solution?



Your help is much appreciated.










share|improve this question














I have recently configured a VPN server hosted in AWS EC2.
Details: Centos 6.4, openswan, xl2tpd, NAT-traversal.
The configuration works great for a scenario when only one user connects form a given public IP address behind NAT. But when there are multiple clients behind same NAT, every new client connection drops old one. Looking at logs I can make a conclusion that l2tp treats all connections from the same nat as one.



Am I missing something? Is there a solution?



Your help is much appreciated.







centos6 ipsec openswan xl2tpd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 1 '13 at 13:10









FentikFentik

262




262












  • i think im facing the same problem did you manage to solve the problem

    – john
    Nov 19 '14 at 7:56


















  • i think im facing the same problem did you manage to solve the problem

    – john
    Nov 19 '14 at 7:56

















i think im facing the same problem did you manage to solve the problem

– john
Nov 19 '14 at 7:56






i think im facing the same problem did you manage to solve the problem

– john
Nov 19 '14 at 7:56











1 Answer
1






active

oldest

votes


















0














IPSEC is very sensitive to NATted clients. You need to read about how to enable NAT traversal features on both clients and server. Out of the box it may detect only the public IP of the NATted clients and then kick out an older connection.



Second thing to check, very important in fact, you may need certificates for each client. Simple preshared key is not enough to establish identity for multiple clients, in case you use this until now.



That said, I gave up on IPSEC and moved to OpenVPN or tinc setups which use SSL and can traverse NAT more easily. The configuration of IPSEC can make you cry, even if it is still a very good encryption/authentication method.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f504110%2fipsec-l2tp-nat-traversal-does-not-work-for-multiple-clients-behind-same-nat%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    IPSEC is very sensitive to NATted clients. You need to read about how to enable NAT traversal features on both clients and server. Out of the box it may detect only the public IP of the NATted clients and then kick out an older connection.



    Second thing to check, very important in fact, you may need certificates for each client. Simple preshared key is not enough to establish identity for multiple clients, in case you use this until now.



    That said, I gave up on IPSEC and moved to OpenVPN or tinc setups which use SSL and can traverse NAT more easily. The configuration of IPSEC can make you cry, even if it is still a very good encryption/authentication method.






    share|improve this answer



























      0














      IPSEC is very sensitive to NATted clients. You need to read about how to enable NAT traversal features on both clients and server. Out of the box it may detect only the public IP of the NATted clients and then kick out an older connection.



      Second thing to check, very important in fact, you may need certificates for each client. Simple preshared key is not enough to establish identity for multiple clients, in case you use this until now.



      That said, I gave up on IPSEC and moved to OpenVPN or tinc setups which use SSL and can traverse NAT more easily. The configuration of IPSEC can make you cry, even if it is still a very good encryption/authentication method.






      share|improve this answer

























        0












        0








        0







        IPSEC is very sensitive to NATted clients. You need to read about how to enable NAT traversal features on both clients and server. Out of the box it may detect only the public IP of the NATted clients and then kick out an older connection.



        Second thing to check, very important in fact, you may need certificates for each client. Simple preshared key is not enough to establish identity for multiple clients, in case you use this until now.



        That said, I gave up on IPSEC and moved to OpenVPN or tinc setups which use SSL and can traverse NAT more easily. The configuration of IPSEC can make you cry, even if it is still a very good encryption/authentication method.






        share|improve this answer













        IPSEC is very sensitive to NATted clients. You need to read about how to enable NAT traversal features on both clients and server. Out of the box it may detect only the public IP of the NATted clients and then kick out an older connection.



        Second thing to check, very important in fact, you may need certificates for each client. Simple preshared key is not enough to establish identity for multiple clients, in case you use this until now.



        That said, I gave up on IPSEC and moved to OpenVPN or tinc setups which use SSL and can traverse NAT more easily. The configuration of IPSEC can make you cry, even if it is still a very good encryption/authentication method.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 30 '15 at 14:27









        flohackflohack

        1313




        1313



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f504110%2fipsec-l2tp-nat-traversal-does-not-work-for-multiple-clients-behind-same-nat%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?