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

    OPENVPN not connecting to local subnet

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 5 Posters 4.7k 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.
    • M
      mangeshgg
      last edited by

      Hi,

      My network setup is as follows

      WAN
                                     |
                         PFsense (openvpn)
                         (address pool =192.168.10.0/24)
                                      |
                                LAN Subnet
                          (192.168.1.0/24)                     
                                      |
                            Another LAN Subnet
                            (192.168.0.0/24)

      I have configured OPENVPN but I am unable to connect to another LAN Subnet. On Local network field I entered 192.168.0.0/24 and I have added one static route to access another LAN Subnet. The Static route is as follows.

      Interface  Network  Gateway  Description

      LAN 192.168.0.0/24 192.168.1.3 route to lan

      Now the problem is I am able to ping to another LAN Subnet but unable to open any resources like (Remote desktop, Servers).

      If anybody have solution please write me

      1 Reply Last reply Reply Quote 0
      • M
        Monoecus
        last edited by

        Post us your openvpn config. Did you push the other subnet?

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

          set your local subnet to the LAN.
          Add a route in the "custom options" to the "other LAN".

          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
          • M
            mangeshgg
            last edited by

            @GruensFroeschli:

            set your local subnet to the LAN.
            Add a route in the "custom options" to the "other LAN".

            I have deleted the static route and added route through push route command. Also I set the local subnet to LAN.  The route is as follows

            push "route 192.168.0.0 255.255.255.0"

            but Still I am not able to access the another network. Now I am not even able to ping the ip from Another network.

            I think I have to mention gateway to reach Another network. But I don't know How to add it through push route command.

            1 Reply Last reply Reply Quote 0
            • L
              ljarutten
              last edited by

              Hi All,

              Don't now if you have an awnser yet but there is a failure in your static route.

              First of all create the static route on your "Client" site and second the route is wrong if you are using a subnet with 3th and the 4th octet a zero then the you've filled in the wrong count of bits.

              so create this static route as "LAN 192.168.0.0/16 192.168.1.3 Route to Lan" or if you wish to use the
              for example "LAN 192.168.1.0/16 192.168.1.3 Route to Lan X "

              …."LAN    192.168.0.0/24    192.168.1.3    route to lan  "

              It cost me a week to find this out and it was a realy pain in the ass.

              1 Reply Last reply Reply Quote 0
              • I
                it.robert.kowalski
                last edited by

                mangeshgg: did you solve it? maybe with the help of my poster before?

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