Site to Site VPN with two networks on one end

  • Hey there,

    I read a lot in this forum but did not find the right answer.

    Site-A: (Server)
    Site-B: and (Client)

    The Server is configurated like this and of couse with a PKI:

    IPv4 Tunnerl                :
    IPv4 Local Network      :
    IPv4 Remote Network  :,
    Connections                :  10

    Consistent to the clinet cert. I did two iroutes:

    iroute; iroute;

    Add the client site I configered the just the cert. and the following points:

    IPv4 Tunnel                  :
    IPv4 Remote Network  :

    So everything seems to be right. But now traffiks goes throu the tunnel from the server site.
    If I delete the second network from the iroute and from the server site "IPv4 Remote Network" the network is reachable from the server site.

    Any ideas?


  • why not just remove the iroutes ?

  • Hi heper,

    because I would like to use this OpenVPn Server for mor then one destination. This is just the first on and I hope to get more then 20 other destinations connected.


  • LAYER 8 Netgate

    What you have seems like it should work.  You'll probably have to look at the routing tables to see what's not right.

    Your system routing table Diagnostics > Routes should show you which system routes are being sent to the OpenVPN server. With both iroutes configured and the VPN connected, when you look at Status > OpenVPN you should see a button called Show Routing Table.  That should show your iroutes.

    There are also firewall rules in play at both the client and server sides.  The client will not be able to make connections to the local networks on the server without the proper OpenVPN firewall rules.  The server will not be able to make connections to the client networks without appropriate OpenVPN firewall rules on client.

    Additionally, if you have control over how these remote sites are configured it would make sense to put all their local networks in the same supernet.

    You would configure your server with:

    Remote Networks:

    Then do the following in client-specific overrides:

    Site 1: iroute;

    Site 2: iroute;

    Site 3: iroute;

    Site 4: iroute;

    Site 5: iroute;

    Site 6: iroute;

    Site 7: iroute;


  • Hi Derelict,

    thanks for your suggestions. I will test it that way. But is it allso possible to get twi networks routed to on location? I guess yes.

    Site 1: iroute; iroute;

    Site 2: iroute;

    Site 3: iroute;

    ans so on.


  • LAYER 8 Netgate

    Yes.  That should work fine.  Like I said, leave both iroutes enabled and check the routing tables after they connect.

Log in to reply