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

    VPN

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 1.5k 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.
    • T
      tresrob
      last edited by

      I want to connect 4 site using at each location pfSense box

      this is the main :

      Site A

      local ip address: 192.168.1.0

      • Static ip address adsl
      • PfSense 2.0

      Site B:

      local ip address: 192.168.3.0

      • Static ip address adsl
      • PfSense 2.0

      Site C:

      local ip address: 192.168.10.0

      • Static ip address adsl
      • PfSense 2.0

      Site D  (main):

      local ip address: 192.168.4.0

      • Static ip address adsl
      • PfSense 2.0

      I wish that each site (A, B​​, C) could connect with the site D (main)
      How do I configure openvpn in each pfSense (shared key)

      Many thanks

      1 Reply Last reply Reply Quote 0
      • K
        kelsen
        last edited by

        Create 3 openvpn server instance with different port on Site D, share the key with the others.
        Create an openvpn client instance on each site A,B,C using the respective keys, tunnel ip and port.
        There is an option that u can let the client communicate with each other too.

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

          No need to create three OpenVPN server instances. Just connect all sites to one server.
          The most difficult to do ist setup the correct routes on OpenVPN server and OpenVPN Client to connect to the LANs behind each pfsense.

          I think this forum post will explain it:
          http://forum.pfsense.org/index.php/topic,12888.0.html

          You probably need these 3 commands as custom OpenVPN options:

          
          push "route IP.IP.IP.IP SM.SM.SM.SM";
          route IP.IP.IP.IP SM.SM.SM.SM;
          iroute IP.IP.IP.IP SM.SM.SM.SM;
          
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.