Navigation

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

    Subnets and site-2-site

    OpenVPN
    2
    4
    1698
    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.
    • B
      bizar last edited by

      We have a pfsense server with multible subnets in our office, and a site-2-site OpenVPN tunnel with shared key to our hosting site. It works fine to between the default LAN to the hosting site, but i can't get a connection from any of the subnets to the hosting site.

      Office LAN: 192.168.200.0/24 – Office pfsense Box ---- OpenVPN --- hosting pfsense box -- 192.168.100.0/24 
                                            |
      Office UNIX 192.168.1.0/24
                                            |
      Office OPT1 192.168.150.0/24

      How do i connect Office UNIX and OPT1 to the remote site?

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

        Did you add route-commands to the configs for the 192.168.1.0/24 and 192.168.150.0/24 subnets?

        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
        • B
          bizar last edited by

          @GruensFroeschli:

          Did you also add route-commands to the configs for the 192.168.1.0/24 and 192.168.150.0/24 subnets?

          No i didn't. Do you mean that i should put a secondary gateway in Interfaces -> UNIX -> IP configuration -> Gateway ?

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

            No i mean you should in the field: "custom options" on the openVPN config page add two commands along the lines of:

            
            route 192.168.1.0 255.255.255.0;
            route 192.168.150.0 255.255.255.0
            
            

            (add this only on the "right side" in your diagram)

            Read the openVPN documentation on http://openVPN.net on how routes are being added and removed on linkup and linkdown of the tunnel

            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
            • First post
              Last post