1 Reply Latest reply on Aug 9, 2005 10:01 PM by Andrew Knott

    Do we have a grammar for /etc/init/ipsecinit.conf ?

    Sean Berry

      Mike also sent me the chunk of C that parses this (which does appear to be in a tokenish format)

       

      http://cvs.opensolaris.org/source/xref/usr/src/cmd/cmd-inet/usr.sbin/ipsecconf.c

       

      -


      Original Message-----

      From: Gerdts, Mike (GE Healthcare)

      Sent: Tue 8/9/2005 16:18

      To: Berry, Sean (GE Healthcare, non-ge)

      Cc:

      Subject: syntax for /etc/inet/ipsecinit.conf

       

       

      Can you put together a grammar for /etc/inet/ipseccinit.conf?

       

      A typical file looks like this:

       

      1. comments

      2. comments

      3. ....

      { dport sun-dr ulp tcp } permit { auth_algs md5 }

      { sport sun-dr ulp tcp } apply { auth_algs md5 sa unique }

      { dport cvc_hostd ulp tcp } permit { auth_algs md5 }

      { sport cvc_hostd ulp tcp } apply { auth_algs md5 sa unique }

       

      I would like to see the syntax look at the above as:

       

      Field 1: "{ dport sun-dr ulp tcp }"

      Field 2: "permit"

      Field 3: "{ auth_algs md5 }"

       

      Thanks,

      Mike

        • 1. Re: Do we have a grammar for /etc/init/ipsecinit.conf ?

          Try this grammar. Browsing works for me when I copied it over generic.gm and restarted the app server. Snapshots, Audits and deployments were not tested.

           

          # acomments
          # comments
          # ....

          { dport sun-dr ulp tcp } permit { auth_algs md5 }
          { sport sun-dr ulp tcp } apply { auth_algs md5 sa unique }
          { dport cvc_hostd ulp tcp } permit { auth_algs md5 }
          { sport cvc_hostd ulp tcp } apply { auth_algs md5 sa unique }
          { test } apply { some test}

           

          gives this when browsing:

           


          dport cvc_hostd ulp tcp permit auth_algs md5
          dport sun-dr ulp tcp permit auth_algs md5
          sport cvc_hostd ulp tcp apply auth_algs md5 sa unique
          sport sun-dr ulp tcp apply auth_algs md5 sa unique
          test apply some test