1

When I executed xl2tpd I amhaving following error.

# xl2tpd -D
xl2tpd[845]: parse_config: line 13: data 'ipsec sared=yes' occurs with no context
xl2tpd[845]: init: Unable to load config file

When I remove the "line 13" I having same error with "Line 14" thefore I do not think that the problem is about "ipsec sared" Here is my configuration file xl2tpd.conf.

LINUX Ubuntu 12.0.4 ;Openswan IPsec 2.6.37; xl2tpd version: xl2tpd-1.3.1

; [global]                                                             
 ipsec sared=yes
 listen-addr=47.168.137.27

; [lns default]
 ip range = 192.168.1.10-192.168.1.20
 local ip = 192.168.1.1
 require chap = yes
 refuse pap = yes
 require authentication = yes
 ppp debug = yes
 pppoptfile = /etc/ppp/options.xl2tpd
 length bit = yes
 name=LinuxIPSECVPN

ANSWER:(since have not enough reputation I am writting it over here.) removing the ";" character at the beginning of [global] and [lns default] have solved the issue. At fist I tought that [global] and[lns default] were just a comment.

1
  • removing the ";" character at the beginning of [global] and [lns default] have solved the issue. At fist I tought that [global] and[lns default] were just a comment. Sep 24, 2012 at 7:38

2 Answers 2

1

My opinion is, that you have correct this line in this way:

ipsec shared=yes

EDIT:

According for example this URL it's not shared, but saref. Then you have correct this line:

ipsec saref=yes
1
  • This was another problem that I realized after solving first one that I shred. Thanks. Sep 24, 2012 at 7:58
0

I missed @mmc18's comment for a while so I'm posting it here as an answer for others:

Removing the ";" character at the beginning of [global] and [lns default] have solved the issue. At fist I tought that [global] and [lns default] were just a comment.

I edited this file by hand and didn't notice the comments before the sections either.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .