It is currently Wed Jul 18, 2018 3:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Configuration Help
PostPosted: Mon Jul 30, 2012 2:52 pm 

Joined: Mon Jul 30, 2012 2:44 pm
Posts: 1
Sorry to sound like a complete noob, but I am sort of stuck with OpenL2TP's configuration interface. I have been using xl2tpd, and have become rather familiar with it. I have been wanting to try OpenL2TP over xl2tpd but cant get my config files to work, and can't find a good example of an openl2tp config file to copy.

I have attached my current xl2tp, ppp, and chap-secret config file, and was wondering if anyone could help me convert that to a usable openl2tp config file, or point me to docs that would be helpful in doing this.

Thanks!

xl2tpd.conf

; [lns default]
ip range = 10.8.0.21-10.8.0.254
local ip = 10.8.0.1
refuse pap = yes
require chap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = no


options.xl2tpd

ipcp-accept-local
ipcp-accept-remote
noccp
auth
crtscts
mtu 1410
mru 1410
nodefaultroute
debug
kdebug 1
lock
proxyarp
connect-delay 5000
silent
lcp-echo-interval 120
lcp-echo-failure 10


chap-secrets

# Secrets for authentication using CHAP
# client server secret IP addresses

# INBOUND CONNECTIONS
#client hostname <password> 192.168.1.1
user1 * "password1" *
user2 * "password2" *


Top
 Profile  
 
 Post subject: Re: Configuration Help
PostPosted: Tue Jul 31, 2012 10:50 am 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
/etc/openl2tp/openl2tpd.conf:
Code:
tunnel profile modify profile_name=default \
       host_name=LinuxVPNServer \
       trace_flags=all

session profile modify profile_name=default \
       trace_flags=all

ppp profile modify profile_name=default \
       auth_pap=no \
       auth_chap=yes \
       auth_mschapv1=no \
       auth_mschapv2=no \
       auth_eap=no \
       mtu=1410 \
       ip_pool_name=mypool
       lcp_echo_interval=120 \
       lcp_echo_failure_count=10 \
       local_ipaddr=10.8.0.1 \
       trace_flags=all

I notice you configure the server to accept IP addesses from the
client. Is this really intended? If so, you will need to write those
options to /etc/ppp/options.

You will also need ippoold if you want to use IP pools
Code:
ippoolconfig pool create pool_name=mypool
ippoolconfig pool address add pool_name=mypool \
       first_addr=10.8.0.21 \
       num_addrs=200

Please see the Quick Start Guide at openl2tp.org.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group