User Tools

Site Tools


configsoho

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

configsoho [2014/10/12 16:37] (current)
dmitry created
Line 1: Line 1:
 +====== Minimalistic configuration ======
 +This is ready to use configuration file which you can use to build minimal multi-service VPN server to use at home or small office.\\
 +Features:
 +  * use chap-secrets for authentication
 +  * use static pool for address assigning (192.168.2.2-255)
 +  * log to system logger with level 3 (error messages, warning messages and minimum information messages)
 +  * users may use any kind of VPN (PPTP, L2TP, PPPoE) to connect
 +  * any kind of authentication (PAP, CHAP, MSCHAPv1, MSCHAPv2)
 +  * MPPE is optional
 +  * Primary DNS - 172.16.0.1, secondary - 172.16.1.1
 +  * interface for PPPoE connections - eth0
 +  * users may connect from 192.168.0.0/​24
 +
 +<​code>​
 +[modules]
 +log_syslog
 +
 +pptp
 +l2tp
 +pppoe
 +
 +auth_mschap_v2
 +auth_mschap_v1
 +auth_chap_md5
 +auth_pap
 +
 +ippool
 +
 +chap-secrets
 +
 +[core]
 +log-error=/​var/​log/​accel-ppp/​core.log
 +thread-count=4
 +
 +[ppp]
 +verbose=1
 +min-mtu=1280
 +mtu=1400
 +mru=1400
 +ipv4=require
 +ipv6=deny
 +
 +[lcp]
 +echo-interval=30
 +echo-failure=3
 +
 +[pptp]
 +verbose=1
 +
 +[pppoe]
 +interface=eth0
 +verbose=1
 +
 +[l2tp]
 +verbose=1
 +
 +[dns]
 +dns1=172.16.0.1
 +dns2=172.16.1.1
 +
 +[client-ip-range]
 +192.168.0.0/​24
 +
 +[ip-pool]
 +gw-ip-address=192.168.2.1
 +192.168.2.2-255
 +
 +[log]
 +log-emerg=/​var/​log/​accel-ppp/​emerg.log
 +#​syslog=accel-pppd,​daemon
 +copy=1
 +level=3
 +
 +[chap-secrets]
 +gw-ip-address=192.168.0.1
 +#​chap-secrets=/​etc/​ppp/​chap-secrets
 +
 +[cli]
 +telnet=127.0.0.1:​2000
 +tcp=127.0.0.1:​2001
 +#​password=123
 +</​code>​
 +
 +
 +Sample contents of /​etc/​ppp/​chap-secrets file:
 +<​code>​
 +user1 * password1 *
 +user2 * password2 *
 +</​code>​
  
configsoho.txt ยท Last modified: 2014/10/12 16:37 by dmitry