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

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

Scheduled Pinned Locked Moved OpenVPN
8 Posts 3 Posters 848 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.
  • D
    dimskraft
    last edited by Mar 2, 2023, 9:59 PM

    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 Mar 2, 2023, 10:34 PM Reply Quote 0
    • J
      Jarhead @dimskraft
      last edited by Mar 2, 2023, 10:34 PM

      @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".

      D 1 Reply Last reply Mar 3, 2023, 7:55 AM Reply Quote 0
      • V
        viragomann @dimskraft
        last edited by Mar 2, 2023, 11:07 PM

        @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.

        D 1 Reply Last reply Mar 3, 2023, 7:58 AM Reply Quote 0
        • D
          dimskraft @Jarhead
          last edited by Mar 3, 2023, 7:55 AM

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

          1 Reply Last reply Reply Quote 0
          • D
            dimskraft @viragomann
            last edited by Mar 3, 2023, 7:58 AM

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

            V 1 Reply Last reply Mar 3, 2023, 8:16 AM Reply Quote 0
            • V
              viragomann @dimskraft
              last edited by Mar 3, 2023, 8:16 AM

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

              D 1 Reply Last reply Mar 3, 2023, 5:06 PM Reply Quote 0
              • D
                dimskraft @viragomann
                last edited by Mar 3, 2023, 5:06 PM

                @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 Mar 3, 2023, 5:14 PM Reply Quote 0
                • V
                  viragomann @dimskraft
                  last edited by Mar 3, 2023, 5:14 PM

                  @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
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received