IPSec VPN routingHow do I set up routing for a VPN gateway separate from my main gateway?Routing for IPSec tunnelSharing a VPN connection among several servers with certain IP rangesIPSec VPN gateway solution?How do I route a public IP range over an IPSEC VPN?AWS StrongSwan IPSec VPNRouting between pfSense Subnets and IPSec VPNStatic routing between LAN, IPSec and VPNIPSec between Palo Alto and Strong Swan - traffic between tunnel endpoint IPs (used for ESP transport) should pass through tunnelPrivate networks routing over IPSEC VPN

SafeCracker #3 - We've Been Blocked

Should homeowners insurance cover the cost of the home?

What is the solution to this metapuzzle from a university puzzling column?

Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?

How do inspiraling black holes get closer?

How can I get a job without pushing my family's income into a higher tax bracket?

29er Road Tire?

Uniform boundedness of the number of number fields having fixed discriminant

Word for Food that's Gone 'Bad', but is Still Edible?

Should I dumb down my writing in a foreign country?

Are pressure-treated posts that have been submerged for a few days ruined?

What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?

How to safely wipe a USB flash drive

Upside-Down Pyramid Addition...REVERSED!

Pressure inside an infinite ocean?

Nominativ or Akkusativ

Did the manned NASA capsules rotate during descent?

Can you Ready a Bard spell to release it after using Battle Magic?

Are there any of the Children of the Forest left, or are they extinct?

Out of scope work duties and resignation

exec command in bash loop

How to increase the size of the cursor in Lubuntu 19.04?

Target/total memory is higher than max_server_memory

IP addresses from public IP block in my LAN



IPSec VPN routing


How do I set up routing for a VPN gateway separate from my main gateway?Routing for IPSec tunnelSharing a VPN connection among several servers with certain IP rangesIPSec VPN gateway solution?How do I route a public IP range over an IPSEC VPN?AWS StrongSwan IPSec VPNRouting between pfSense Subnets and IPSec VPNStatic routing between LAN, IPSec and VPNIPSec between Palo Alto and Strong Swan - traffic between tunnel endpoint IPs (used for ESP transport) should pass through tunnelPrivate networks routing over IPSEC VPN






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








0















This is supposed to be a pretty simple question but I couldn't google a answer for it!



I have a ipsec VPN tunnel established between 1.1.1.1 and 2.2.2.2 (public IPs). The first machine (1.1.1.1) has a LAN with gateway 10.253.0.93. Inside this LAN, there is a machine with IP 172.21.83.60 (the gw already has the rules to forward traffic from 10.252.0.93 to 172.21.83.60).



In machine 2.2.2.2, I'm able to ping 10.252.0.93 normally. That's prove that the VPN is correctly established.



My question is: what I need to do in order to be able to ping machine 172.21.83.60 from 2.2.2.2? I tried to add a route using command:



route add -net 172.21.83.0 netmask 255.255.255.0 gw 10.253.0.93


but got:



SIOCADDRT: No such process









share|improve this question

















  • 1





    You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

    – TheCleaner
    Mar 1 '13 at 19:21

















0















This is supposed to be a pretty simple question but I couldn't google a answer for it!



I have a ipsec VPN tunnel established between 1.1.1.1 and 2.2.2.2 (public IPs). The first machine (1.1.1.1) has a LAN with gateway 10.253.0.93. Inside this LAN, there is a machine with IP 172.21.83.60 (the gw already has the rules to forward traffic from 10.252.0.93 to 172.21.83.60).



In machine 2.2.2.2, I'm able to ping 10.252.0.93 normally. That's prove that the VPN is correctly established.



My question is: what I need to do in order to be able to ping machine 172.21.83.60 from 2.2.2.2? I tried to add a route using command:



route add -net 172.21.83.0 netmask 255.255.255.0 gw 10.253.0.93


but got:



SIOCADDRT: No such process









share|improve this question

















  • 1





    You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

    – TheCleaner
    Mar 1 '13 at 19:21













0












0








0








This is supposed to be a pretty simple question but I couldn't google a answer for it!



I have a ipsec VPN tunnel established between 1.1.1.1 and 2.2.2.2 (public IPs). The first machine (1.1.1.1) has a LAN with gateway 10.253.0.93. Inside this LAN, there is a machine with IP 172.21.83.60 (the gw already has the rules to forward traffic from 10.252.0.93 to 172.21.83.60).



In machine 2.2.2.2, I'm able to ping 10.252.0.93 normally. That's prove that the VPN is correctly established.



My question is: what I need to do in order to be able to ping machine 172.21.83.60 from 2.2.2.2? I tried to add a route using command:



route add -net 172.21.83.0 netmask 255.255.255.0 gw 10.253.0.93


but got:



SIOCADDRT: No such process









share|improve this question














This is supposed to be a pretty simple question but I couldn't google a answer for it!



I have a ipsec VPN tunnel established between 1.1.1.1 and 2.2.2.2 (public IPs). The first machine (1.1.1.1) has a LAN with gateway 10.253.0.93. Inside this LAN, there is a machine with IP 172.21.83.60 (the gw already has the rules to forward traffic from 10.252.0.93 to 172.21.83.60).



In machine 2.2.2.2, I'm able to ping 10.252.0.93 normally. That's prove that the VPN is correctly established.



My question is: what I need to do in order to be able to ping machine 172.21.83.60 from 2.2.2.2? I tried to add a route using command:



route add -net 172.21.83.0 netmask 255.255.255.0 gw 10.253.0.93


but got:



SIOCADDRT: No such process






vpn iptables ipsec route






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 1 '13 at 19:07









danielnovydanielnovy

11




11







  • 1





    You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

    – TheCleaner
    Mar 1 '13 at 19:21












  • 1





    You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

    – TheCleaner
    Mar 1 '13 at 19:21







1




1





You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

– TheCleaner
Mar 1 '13 at 19:21





You'd need to possibly add a brief pic of the network, including what gear models. Some are as a simply as a router on each end with switch ports built in, others have additional routing, firewalls, accelerators, etc. behind each side, so it is difficult to simply supply an answer without seeing what the layout looks like

– TheCleaner
Mar 1 '13 at 19:21










1 Answer
1






active

oldest

votes


















0














What about NAT do you nat your traffic with iptables? You shouldn't do it (traffic that goes to you ipsec tunnel should bypass NAT rule, like this:



iptables -t nat -A POSTROUTING ! -d <ipsec_lan> -j SNAT --to-source <ip>


ipsec vpn in linux makes low-level traffic routing and encryption you can see it with



ip xfrm state


Also, try to chose interface for ping source, might help.






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%2f483886%2fipsec-vpn-routing%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














    What about NAT do you nat your traffic with iptables? You shouldn't do it (traffic that goes to you ipsec tunnel should bypass NAT rule, like this:



    iptables -t nat -A POSTROUTING ! -d <ipsec_lan> -j SNAT --to-source <ip>


    ipsec vpn in linux makes low-level traffic routing and encryption you can see it with



    ip xfrm state


    Also, try to chose interface for ping source, might help.






    share|improve this answer



























      0














      What about NAT do you nat your traffic with iptables? You shouldn't do it (traffic that goes to you ipsec tunnel should bypass NAT rule, like this:



      iptables -t nat -A POSTROUTING ! -d <ipsec_lan> -j SNAT --to-source <ip>


      ipsec vpn in linux makes low-level traffic routing and encryption you can see it with



      ip xfrm state


      Also, try to chose interface for ping source, might help.






      share|improve this answer

























        0












        0








        0







        What about NAT do you nat your traffic with iptables? You shouldn't do it (traffic that goes to you ipsec tunnel should bypass NAT rule, like this:



        iptables -t nat -A POSTROUTING ! -d <ipsec_lan> -j SNAT --to-source <ip>


        ipsec vpn in linux makes low-level traffic routing and encryption you can see it with



        ip xfrm state


        Also, try to chose interface for ping source, might help.






        share|improve this answer













        What about NAT do you nat your traffic with iptables? You shouldn't do it (traffic that goes to you ipsec tunnel should bypass NAT rule, like this:



        iptables -t nat -A POSTROUTING ! -d <ipsec_lan> -j SNAT --to-source <ip>


        ipsec vpn in linux makes low-level traffic routing and encryption you can see it with



        ip xfrm state


        Also, try to chose interface for ping source, might help.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 29 '13 at 5:14









        HikaruHikaru

        489




        489



























            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%2f483886%2fipsec-vpn-routing%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?