Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Cant ping thru OpenVPN tunnel :(

    Scheduled Pinned Locked Moved OpenVPN
    17 Posts 4 Posters 13.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      niekshas
      last edited by

      Today i tryed to add on OpenVPN server in cusom options field:
      push “route 192.168.100.0 255.255.255.0”

      but i think nothing happens… client dont get new route... :(

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        You dont use pushes if not in a PKI.

        To add new routes in a shared key setup you add the custom "route" line on the client:
        FOr the syntax of the route command refer to:
        http://openvpn.net/index.php/documentation/manuals/openvpn-20x-manpage.html

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • N
          niekshas
          last edited by

          Well it is not working for me :( i'm out if ideas…

          To add route i'm in OpenVPN server using:
          –route 80.240.10.0 255.255.255.0 192.168.1.254
          where 192.168.1.254 is lans gateway of OpenVPN server
          and cant trace any adress of 80.240.10.0/24 network

          Tracing route to cable-10-40.cgates.lt [80.240.10.40]
          over a maximum of 30 hops:
            1    <1 ms    <1 ms    <1 ms  pfsense.local [192.168.55.254]
            2   105 ms   175 ms   151 ms  192.168.200.1
            3     *        *        *     Request timed out.
            4     *        *        *     Request timed out.

          it seep dont go out from tunnel…
          Any one hawe any ideas ???

          routing table:
          Destination        Gateway Flags Refs Use Mtu Netif Expire
          default              192.168.107.254 UGS 0 215188 1500 fxp0 
          80.240.10/24      192.168.1.254 UGS 0 43 1500 tun0   
          127.0.0.1          127.0.0.1 UH 1 0 16384 lo0 
          192.168.1          192.168.200.1 UGS 1 4 1500 tun0 
          192.168.55        link#1 UC 0 0 1500 dc0 
          192.168.55.97    00:17:08:2f:f6:eb UHLW 1 85977 1500 dc0 814
          192.168.107        link#2 UC 0 1 1500 fxp0 
          192.168.107.101 127.0.0.1 UGHS 0 0 16384 lo0 
          192.168.107.254 00:1b:21:0e:63:ba UHLW 2 1355 1500 fxp0 1089
          192.168.200.1    192.168.200.2 UH 1 0 1500 tun0

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            On the server side:
            You have to enable Advanced outbound NAT and create a rule that NAT's the office-side.

            http://forum.pfsense.org/index.php/topic,7001.0.html

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • N
              niekshas
              last edited by

              Well thank you… Now all works fine...

              BTW i posted mine setup... so if someone like me needs... can read and use :)

              1 Reply Last reply Reply Quote 0
              • S
                stefanBG
                last edited by

                @GruensFroeschli:

                You dont use pushes in a PKI.

                To add new routes in a shared key setup you add the custom "route" line on the client:
                FOr the syntax of the route command refer to:
                http://openvpn.net/index.php/documentation/manuals/openvpn-20x-manpage.html

                I am trying to set a openvpn between my windows and work using pfsense. I am using PKI authentication. Have been struggling for days, googled but aparently google does not indexes the board well, so I came here to check if there is really nothing on the topic. Apparently there is a lot.
                Have I correctly understood that with PKI the push of the remote network is disabled/not executed???
                Please, confirm this.

                10x

                PS. Pfsense team! Great work!!!

                1 Reply Last reply Reply Quote 0
                • GruensFroeschliG
                  GruensFroeschli
                  last edited by

                  Sorry was a typo.

                  You dont use pushes if not in a PKI.
                  You DO use pushes in a PKI.

                  What exactly doesnt work in your setup?
                  Did you read the HowTo's on http://openvpn.net

                  We do what we must, because we can.

                  Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                  1 Reply Last reply Reply Quote 0
                  • S
                    stefanBG
                    last edited by

                    @GruensFroeschli:

                    Sorry was a typo.

                    You dont use pushes if not in a PKI.
                    You DO use pushes in a PKI.

                    What exactly doesnt work in your setup?
                    Did you read the HowTo's on http://openvpn.net

                    ;D Thanx, I almost wagged a war on the router! And in fact I managed to ping the VPN gateway from the Pfsense, so my remote machine did respond, but only from Pfsense, not from the local net. So no site2site real connection :(

                    This post is about my problem!
                    http://forum.pfsense.org/index.php/topic,9884.0.html

                    So finnally..in conclusion!
                    To have a site2site between pfsense and Suse distro I need use:

                    • PKIs and push? not shared keys, right???
                    • and change my networks to RFC 1918 networks standard???

                    I shall forgot about my XP, although I am willing to try to configure it as a router :) …can I do that with cygwin ..sorry this is different topic

                    10x  GruensFroeschli

                    1 Reply Last reply Reply Quote 0
                    • GruensFroeschliG
                      GruensFroeschli
                      last edited by

                      For a site-to-site i would not use a PKI and pushes.
                      A PKI is intended to be used with roadwarriors. (Or really many site-to-site connections, 10+)

                      In a shared key site-to-site setup you define what lies on the other side of the tunnel via the "route" command. In the gui this is the "remote subnet" field.

                      Search the forum on that. Read the stickies.
                      There is really a LOT of info around. Also it might not hurt if you read the howto's on http://openVPN.net
                      And the sample-configs openvpn.net provides.

                      And yes you should move your address space to RFC1918.

                      We do what we must, because we can.

                      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                      1 Reply Last reply Reply Quote 0
                      • S
                        stefanBG
                        last edited by

                        Thank you very much GruensFroeschli,

                        Now everything much more clear. The topology that has been setup is obviously the problem.

                        10x again.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.