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

    What is a correct content setup routing from client to a server?

    OpenVPN
    3
    8
    844
    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.
    • dimskraftD
      dimskraft
      last edited by

      What is a correct content setup routing from client to a server?

      81befe6a-4ec6-456e-8399-15f73084b552-image.png

      push "route 192.168.31.0 255.255.255.0";
      

      or

      route 192.168.31.0 255.255.255.0;
      

      I need to be able to ping from 192.168.10.1 to 192.168.31.1

      J V 2 Replies Last reply Reply Quote 0
      • J
        Jarhead @dimskraft
        last edited by

        @dimskraft You don't need either anymore. Just add the correct networks in the "local" and "remote" networks field in server and client settings.
        Look under "Tunnel Settings".

        dimskraftD 1 Reply Last reply Reply Quote 0
        • V
          viragomann @dimskraft
          last edited by

          @dimskraft
          You cannot push a route from the client to the server, only the other way round.

          If this is a site-to-site setup with a single client only, state a /30 tunnel network mask on the server and enter 192.168.31.0/24 into the "Remote Networks" box.

          dimskraftD 1 Reply Last reply Reply Quote 0
          • dimskraftD
            dimskraft @Jarhead
            last edited by

            @jarhead it doesn't add routes automatically by some reason. Still, what is a correct command?

            1 Reply Last reply Reply Quote 0
            • dimskraftD
              dimskraft @viragomann
              last edited by

              @viragomann what if I need several networks on a client side to be reacheable from server side?

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @dimskraft
                last edited by

                @dimskraft
                Add all to thy”Remote Networks” separated by commas on the server.

                dimskraftD 1 Reply Last reply Reply Quote 0
                • dimskraftD
                  dimskraft @viragomann
                  last edited by

                  @viragomann server can't know which client is connected to it, so this information should be set on client side;

                  If you said it is impossible to push routes from client to server, then why does a client config has the following field

                  77809f7a-eff1-48ba-9277-a9383b1016b6-image.png

                  ?

                  How it's content work?

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @dimskraft
                    last edited by

                    @dimskraft said in What is a correct content setup routing from client to a server?:

                    server can't know which client is connected to it, so this information should be set on client side;

                    You can let him know by configure a CSO, however.

                    If you said it is impossible to push routes from client to server, then why does a client config has the following field

                    This sets a route on the client, but doesn't push anything to the server.

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