[Openswan Users] cannot load config '/etc/ipsec.conf'

robert k Wild robertkwild at gmail.com
Thu Nov 3 08:51:58 EDT 2016


mmm...

i still getting an error message, not the same but another syntax error

heres my config file -

config setup
       interfaces=%defaultroute
       klipsdebug=none
       nat_traversal=yes
       nhelpers=0
       oe=off
       plutodebug=none
       plutostderrlog=/var/log/pluto.log
       protostack=netkey
       virtual_private=%v4:172.16.8.0/21

       conn=L2TP-PSK
       authby=secret
       pfs=no
       auto=add
       keyingtries=3
       rekey=no
       type=transport
       forceencaps=yes
       right=%any
       rightsubnet=vhost:%any,%priv
       rightprotoport=17/0
       # Using the magic port of "0" means "any one single port". This is
       # a work around required for Apple OSX clients that use a randomly
       # high port, but propose "0" instead of their port.
       left=%defaultroute
       leftprotoport=17/1701
       # Apple iOS doesn't send delete notify so we need dead peer detection
       # to detect vanishing clients
       dpddelay=10
       dpdtimeout=90
       dpdaction=clear

On 3 November 2016 at 12:33, Samir Hussain <shussain at xelerance.com> wrote:

> Hello,
>
>   There  is a typo in the guide. In the /etc/ipsec.conf example, they have
>
>        <strong>virtual_private=%v4:10.0.100.0/24
>
> </strong>conn L2TP-PSK
>
> The <strong> tag should be removed so it would be:
>
>        <virtual_private=%v4:10.0.100.0/24
>
> conn L2TP-PSK
>
>
> Samir
>
> On 2016-11-03 08:24 AM, robert k Wild wrote:
> > hi all,
> >
> > i have followed this guide -
> >
> > http://blog.earth-works.com/2013/02/22/how-to-set-up-
> openswan-l2tp-vpn-server-on-centos-6/
> >
> > and i am stuck on starting the ipsec service, i get the below error -
> >
> > [root at vpn ~]# service ipsec start
> > Starting pluto IKE daemon for IPsec: cannot load config
> > '/etc/ipsec.conf': /etc/ipsec.conf:12: syntax error, unexpected STRING,
> > expecting $end [<strong>virtual_private]
> > cannot load config '/etc/ipsec.conf': /etc/ipsec.conf:12: syntax error,
> > unexpected STRING, expecting $end [<strong>virtual_private]
> > unknown stack
> > cannot load config '/etc/ipsec.conf': /etc/ipsec.conf:12: syntax error,
> > unexpected STRING, expecting $end [<strong>virtual_private]
> > .....                                                      [FAILED]
> > [root at vpn ~]#
> >
> > can anyone please help me
> >
> > many thanks,
> >
> > rob
> >
> > --
> > Regards,
> >
> > Robert K Wild.
> >
> >
> > _______________________________________________
> > Users at lists.openswan.org
> > https://lists.openswan.org/mailman/listinfo/users
> > Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
> > Building and Integrating Virtual Private Networks with Openswan:
> > http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
> >
>



-- 
Regards,

Robert K Wild.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openswan.org/pipermail/users/attachments/20161103/966eefa9/attachment.html>


More information about the Users mailing list