<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    .... except it won't work if you have a %any in your secrets as this
    matches everything. You risk sharekey1 being used for all conns
    which will fail. I believe, if you get a fail it does not then try
    another matching key.<br>
    <br>
    I presume yours is a test config as all IP's are private.<br>
    <br>
    <div class="moz-cite-prefix">On 04/02/2016 17:02, Ivan Adji - Krstev
      wrote:<br>
    </div>
    <blockquote cite="mid:56B38441.7000602@gmail.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <font face="Helvetica, Arial, sans-serif">Yes you can .... for
        each separate tunnel you can create different keys</font><br>
      <br>
      <div class="moz-cite-prefix">On 02/04/2016 05:11 PM, MichaelLeung
        wrote:<br>
      </div>
      <blockquote cite="mid:56B3784A.7030205@gmail.com" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        hi all<br>
        <br>
        can we create more than one pre-share-key ?<br>
        for example, i have three VPS running on the internet and i want
        use different pre-share-key to communicate<br>
        is it ipsec.secrets correct ?<br>
        <font color="#ff0000">#<br>
          include /etc/ipsec.d/*.secrets<br>
          192.168.1.1 %any : PSK "</font><font color="#ff0000"><font
            color="#ff0000">sharekey1</font>"<br>
          192.168.1.1 192.168.2.1 : PSK "</font><font color="#ff0000"><font
            color="#ff0000">sharekey2</font>"<br>
          192.168.1.1 192.168.3.1 : PSK "sharekey3"<br>
        </font><br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a>
Micropayments: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</a>
Building and Integrating Virtual Private Networks with Openswan:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a>
Micropayments: <a class="moz-txt-link-freetext" href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</a>
Building and Integrating Virtual Private Networks with Openswan:
<a class="moz-txt-link-freetext" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a></pre>
    </blockquote>
    <br>
  </body>
</html>