4 # Log file: comment out to use stderr, use "syslog:facility" for syslog
5 set log_file "/var/log/l2tpns"
7 # Write pid to this file
8 set pid_file "/var/run/l2tpns.pid"
10 # This host name, if different from the OS one
11 #set hostname "localhost"
13 # Shared secret with LAC
14 set l2tp_secret "secret"
16 # MTU of interface for L2TP traffic
19 # PPP counter and timer values
20 #set ppp_restart_time 3
21 #set ppp_max_configure 10
22 #set ppp_max_failure 5
24 # Only 2 DNS server entries are allowed
25 set primary_dns 10.0.0.1
26 set secondary_dns 10.0.0.2
28 # Can have multiple radius server entries, but ony one radius secret
29 set primary_radius 10.0.0.3
30 #set primary_radius_port 1645
31 #set secondary_radius 0.0.0.0
32 #set secondary_radius_port 1645
33 set radius_secret "secret"
35 # Acceptable authentication types (pap, chap) in order of preference
36 #set radius_authtypes "pap"
38 # Turn on or off Radius Accounting
39 #set radius_accounting no
41 # Port for DAE RADIUS requests
42 #set radius_dae_port 3799
44 # Allow multiple logins for the same username
45 #set allow_duplicate_users no
47 # Kill timedout sessions ? (default yes)
48 #set kill_timedout_sessions no
50 # Allow multiple logins for specific username
53 # Write usage accounting files into specified directory
54 set accounting_dir "/var/run/l2tpns/acct"
56 # Listen address for L2TP
57 #set bind_address 1.1.1.1
59 # Listen address for CLI
60 #set cli_bind_address 127.0.0.1
62 # Send a gratiuitous ARP for bind address
65 # Gateway address given to clients
66 #set peer_address 0.0.0.0
68 # Default throttle rate in kb/s
71 # Number of buckets to allocate for throttling
72 #set throttle_buckets 3000
74 # If set to true, dump current speed to stderr every second
77 # Number of packets to read from tun/udp/cluster fd when select
79 #set multi_read_count 10
81 # Set scheduling priority of process to SCHED_FIFO
82 #set scheduler_fifo no
84 # Lock pages into memory
87 # Maximum number of host unreachable packets to send per second
90 # Maximum number of downstream packets per 0.1s to handle for each
91 # session (0 = ulimited)
94 # Cluster multicast address, interface
95 #set cluster_address 239.192.13.13
96 #set cluster_port 32792
97 #set cluster_interface eth0
99 # Cluster multicast TTL
100 #set cluster_mcast_ttl 1
102 # Cluster timers (1/10th second)
103 #set cluster_hb_interval 5
104 #set cluster_hb_timeout 150
106 # Minimum number of slaves before master withdraws routes
107 #set cluster_master_min_adv 1
109 # IPv6 address prefix
112 # BGP NEXT_HOP path attribute
113 #set nexthop 10.0.1.1
114 #set nexthop6 2001:db8::1
116 # Time between last packet sent and LCP ECHO generation (default 10 seconds)
118 # Drop sessions who have not responded within idle_echo_timeout seconds (default 240 seconds)
119 #set idle_echo_timeout 240
120 # Change this value to no to force generation of LCP ECHO every echo_timeout seconds, even there are activity on the link (default yes)
121 set ppp_keepalive yes
124 #load plugin "sessionctl"
126 # Throttle/snoop based on RADIUS
127 #load plugin "autothrottle"
128 #load plugin "autosnoop"
130 # Control throttle/snoop with nsctl
131 #load plugin "throttlectl"
132 #load plugin "snoopctl"
134 # Punt RX speed if not supplied
135 #load plugin "setrxspeed"
137 # Remove domain from username
138 #load plugin "stripdomain"
141 #load plugin "garden"