Site-To-Multisites with One Instance, is it possible or not ?

  • Hi

    i seek an exact answer about the question :

    is it possible to configure Site-To-Site OpenVPN with th following architecture :
    headquarter : OpenVPN server (PfSense) running one instance
    branches : each branch having OpenVPN client (PfSense) connecting to the same instance in the headquarter

    is it possible or not ? (please note i am talking about Site-To-Site and not Client-To-Site)

    Thanks a lot

  • I think as far as openvpn is concerned you are actually talking about client-to-site.
    As you have the main Site running openvpn server and openvpn clients connecting.
    I assume what you want is to have routes pushed out from the client to the site and visa-versa.
    So that you have a network that is centralised and access controlled in headquarters?

    I think Site-To-Site and Client-To-Site is more IPSec terminology??
    Could be wrong..

  • thanks for your reply but the answer is no

    i am talking about site-to-site not client-to-site
    let's say 1 headquarter and 4 branches
    headquarter network :,,
    branch1 network :
    branch2 network :
    branch3 network :
    branch4 network :

    all the branches will use same services in headquarter, and the headquarter will use the same services from its branches
    so the firewall rules are the same for the 4 branches

    in the Headquarter i want to use as remote network, the differentiation  between network branches (routing) i am thinking about the common name in Client Specific Overrides

    so the OpenVPN server (headquarter) will have ONE instance
    the 4 branches will connect to the same instance (same IP, same port)

    in summary, it's about
    OpenVPN Site-To-site (not Ipsec, nor Client-to-site)

    my question is it possible or not ?

    i am asking because we have the same architecture working on a commercial product
    we want to switch to PfSense, so the question can we do it with ONE instance or we must configure 4 instances in the Server each one destined to a branch ?


  • What you try to achieve is a site to multi-site vpn.
    Yes, this is possible.

    The setup is similar to that:

    Just set up an access server and set all the routing and client options in "client specific overrides". Don't enter a "Remote network" in the server setting, since each of your /26 subnets needs a different virtual gateway.

    If you also want get access between the clients LAN subnets, you have to enter all client network except the one of the respective client to "IPv4 Local Network/s" in client specific overrides.

  • LAYER 8 Netgate

    You have to put "Remote Networks" in the server settings. That is what creates the FreeBSD route into the OpenVPN instance. This is the OpenVPN route directive.

    Then, in the CSOs, you put the actual remote site networks. These must be contained within the server route above. This creates the OpenVPN iroute directives which tell OpenVPN what to do with the traffic when it gets it - as in what client to send it to.

    So in the example given, server local networks would be,,, server remote networks could be, and the CSOs would contain the /26 for each client in the IPv4 Remote Networks there.

    I would probably opt for something more like:

    Server remote network:

    CSOs:,,, etc

    Or even:,,, so each site has 4 /24 subnets to do with as they see fit without changes to the VPN. The /19 would allow growth to 8 branches of 4 /24s each, while the address "collision" possibility with other sites would be limited to

    You should probably use Peer to Peer (SSL/TLS) mode for the server for this.