Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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. –  mmc18 Sep 24 '12 at 7:38

2 Answers 2

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
share|improve this answer
    
This was another problem that I realized after solving first one that I shred. Thanks. –  mmc18 Sep 24 '12 at 7:58

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.