1 Wed Dec 9 2009 Brendan O'Dea <bod@optus.net> 2.2.x
2 - Apply MLPPP patch from Muhammad Tayseer Alquoatli.
4 * Mon Dec 18 2006 Brendan O'Dea <bod@optus.net> 2.2.0
5 - Only poll clifd if successfully bound.
6 - Add "Practical VPNs" document from Liran Tal as Docs/vpn .
7 - Add Multilink support from Khaled Al Hamwi.
8 - Remove non-working setuid option.
9 - Convert manual.html to Docbook.
10 - Kludge around problem with Netgear DM602 authentication.
11 - Add session/idle timeouts (Graham Maltby).
12 - Use result code AVP to set Acct-Terminate-Cause is disconnect cause
14 - Add radius_bind_{min,max} to simplify firewalling of RADIUS ports.
15 - Fix sign problem with reporting of unknown RADIUS VSAs.
16 - Allow DNS servers to be specified either using the old or new
17 vendor-specific Ascend formats.
18 - Security [CVE-2006-5873]: Rhys Kidd identified a vulnerability in the
19 handling of heartbeat packets. Drop oversize heartbeat packets.
20 - Don't send interim records before session start (Daryl Tester).
21 - Add "shutdown" and "reload" CLI commands (Daryl Tester).
23 * Tue Apr 18 2006 Brendan O'Dea <bod@optus.net> 2.1.18
24 - Don't shutdown on TerminateReq, wait for CDN.
25 - Interpret "local" direction correctly (as LAC) in disconnect AVPs.
27 * Thu Apr 13 2006 Brendan O'Dea <bod@optus.net> 2.1.17
28 - Fix IPCP length test to allow Terminate-Request (4 bytes).
29 - Send nsctl responses back using the correct source address (thanks ltd).
30 - Similarly set the source for DAE responses; use bind_address when
31 handling forwarded packets on the master.
32 - Add Acct-Terminate-Cause to RADIUS stop records.
34 * Thu Feb 23 2006 Brendan O'Dea <bod@optus.net> 2.1.16
35 - Send configured magic-no in LCP EchoReq when LCP is opened.
36 - Correct addition of single IP to pool (Jonathan Yarden).
37 - Ensure session changes from LCP ConfigReq/ConfigNak are sent to cluster.
38 - Verify that RADIUS packets come from a configured server (Jonathan Yarden).
39 - Avoid endless loop in processipcp, processipv6cp.
40 - Additional length checks in processlcp.
41 - Allow peer to request a new magic-number, or to disable magic-numbers.
42 - Decrease ip_conntrack_tcp_timeout_established to 5hrs (table filling).
44 * Mon Dec 19 2005 Brendan O'Dea <bod@optus.net> 2.1.15
46 - Reduce logging of LCP EchoReply packets.
47 - Break LCP configure loop with shutdown.
48 - Limit value of MRU of 1492 (rfc2516).
49 - Tun MTU should be MRU (not MRU+4).
50 - Add Service-Type/Framed-Protocol to RADIUS records (Paul Martin).
52 * Fri Dec 9 2005 Brendan O'Dea <bod@optus.net> 2.1.14
53 - Run PLUGIN_RADIUS_ACCOUNT for Start records.
55 * Wed Dec 7 2005 Brendan O'Dea <bod@optus.net> 2.1.13
56 - Add test/ping-sweep.
57 - Apply spec changes from Charlie Brady: use License header, change
58 BuildRoot to include username.
59 - Fix IPCP negotiation of secondary DNS server, reported by Jon Morby.
60 - Clean up sessiont, removing some unused fields.
61 - Remove unused "MAC" config type.
62 - Reject unknown/unconfigured protocols on the master.
63 - Sanity check MRU before using in ppp_code_rej, protoreject.
65 * Thu Nov 17 2005 Brendan O'Dea <bod@optus.net> 2.1.12
66 - Set MTU on tunnel interface so the kernel will re-fragment large
67 packets to within MRU.
68 - Fix TCP checksum recalc.
69 - NAK silly MRU values from peer.
71 * Mon Nov 14 2005 Brendan O'Dea <bod@optus.net> 2.1.11
72 - Fix fragment handling in ip_filter.
73 - Exclude counter when comparing filter rules.
75 * Sat Nov 5 2005 Brendan O'Dea <bod@optus.net> 2.1.10
76 - Add scripts/l2tpns-capture.
77 - Fix LCP Echo frequency.
78 - Add Framed-Route entries to RADIUS records.
79 - Reset restart counters correctly.
80 - Reset timers on sending ConfigReq.
81 - Only send one RADIUS Start record, even if IPCP is restarted.
83 * Tue Oct 11 2005 Brendan O'Dea <bod@optus.net> 2.1.9
84 - Fix Calling-Station-Id in RADIUS accounting records (Slobodan Tomic).
85 - Fix RADIUS authentication on DAE responses.
86 - Don't send tunnel HELLO when there are pending control messages.
87 - Move plugin_radius_reset from *ctl to auto* plugins.
88 - Add Cisco-AVPairs to RADIUS accounting records via plugin_radius_account.
90 * Mon Sep 19 2005 Brendan O'Dea <bod@optus.net> 2.1.8
91 - Move code from signal handlers into mainloop, avoiding a race
92 condition when forking CLI.
94 * Fri Sep 16 2005 Brendan O'Dea <bod@optus.net> 2.1.7
95 - This time, for sure: really fix Protocol-Reject.
97 * Fri Sep 16 2005 Brendan O'Dea <bod@optus.net> 2.1.6
98 - Any traffic on a tunnel resets lastrec, not just control messages.
99 - Use a unique identifier for LCP.
100 - Fix Code-Reject/Protocol-Reject.
101 - Add l2tp_mtu configuration option, used to define MRU, MSS.
102 - Adjust TCP MSS options in SYN and SYN,ACK packets to avoid
103 fragmentation of tcp packets.
105 * Sat Sep 3 2005 Brendan O'Dea <bod@optus.net> 2.1.5
106 - Avoid Code-Reject loop.
107 - Increase size of PPP buffers to MAXETHER.
108 - Bug fixes for CLI ringbuffer and tunnel HELLO from Yuri.
109 - Restart rather than halt BGP on receipt of CEASE (Dominique Rousseau).
110 - Add cluster_mcast_ttl option to allow a cluster to span multiple
111 subnets (suggested by Tim Devries).
113 * Mon Aug 29 2005 Brendan O'Dea <bod@optus.net> 2.1.4
114 - Drop level of "Unexpected CHAP message" log.
115 - Fix parsing of ProtocolRej (allow 1 or two byte protocols).
116 - Handle rejection of MRU negotiation by peer.
117 - Use local hostname for tunnel in SCCRP (Alex Kiernan).
119 * Wed Aug 17 2005 Brendan O'Dea <bod@optus.net> 2.1.3
120 - Fail IPCP negotiation only on ConfigRej of IP-Address.
122 * Wed Aug 10 2005 Brendan O'Dea <bod@optus.net> 2.1.2
123 - Clear cluster_master on election so that slaves will accept a new master.
124 - Provide more comments/defaults in etc/startup-config.default.
125 - Add DAE support (PoD/CoA) from Vladislav Bjelic.
126 - Clean up new warnings from gcc 4.0.
127 - Replace flags used for LCP/IPCP with state machine.
128 - Include Acct-Session-Time in interim records.
129 - Fix DAE vector, generateload (Alex Kiernan).
130 - Replace RSA MD5 with public domain version.
132 * Tue Jun 14 2005 Brendan O'Dea <bod@optusnet.com.au> 2.1.1
133 - Add missing newline to backtrace macro.
134 - Don't send CDN for each session when shutting down tunnels (this is
136 - Move tunnel shutdown from SIGQUIT signal handler to be run once from
137 still_busy(). Reject new tunnels/sessions while in the process of
139 - Clarify usage of shutdown signals in documentation.
140 - Always initialise PRNG.
141 - Sanity check length of random_vector.
142 - Fix segv in unhide_value.
143 - Ping new master when we get C_MASTER and delay next election to allow
144 the unicast limp-along code to kick in if required.
146 * Sun Jun 5 2005 Brendan O'Dea <bod@optusnet.com.au> 2.1.0
147 - Add IPv6 support from Jonathan McDowell.
148 - Add CHAP support from Jordan Hrycaj.
149 - Add interim accounting support from Vladislav Bjelic.
150 - Negotiate MRU, default 1458 to avoid fragmentation.
151 - Sanity check that cluster_send_session is not called from a child
153 - Use bounds-checking lookup functions for string constants.
154 - Add enum for RADIUS codes.
155 - Make "call_" prefix implict in CSTAT() macro.
156 - Fix some format string problems.
157 - Remove "save_state" option. Not maintained anymore; use clustering
158 to retain state across restarts.
159 - Simplify AVP unhiding code.
160 - Add optional "username" parameter to ungarden control, allowing the
161 username to be reset before going online.
162 - Add result/error codes and message to StopCCN when shutting down tunnels.
163 - Add result/error codes to CDN when shutting down sessions. Sends 2/7
164 (general error, try another LNS) when out of IP addresses, and 3
165 (adminstrative) for everything else (suggestion from Chris Gates).
166 - Use cli_error() for error messages and help.
167 - Don't use LOG() macro in initdata() until the config struct has been
168 allocated (uses config->debug).
169 - Initialise log_stream to stderr to catch errors before the config file
171 - Make "show running-config" a privileged command (contains clear text
173 - Add sessionctl plugin to provide drop/kill via nsctl.
174 - New config option: allow_duplicate_users which determines whether
175 or not to kill older sessions with the same username.
176 - Fix byte counters in accounting records.
177 - Add Acct-Output-Gigawords, Acct-Input-Gigawords attributes to RADIUS
179 - Fix icmp host unreachable to use router address.
180 - Include endpoint address in accounting dump files.
181 - Convert mainloop to use epoll rather than select.
182 - Add note about fragmentation in Docs/manual.html, and a sample
183 iptables rule for MSS clamping.
185 + Show session open time in "show session"/"show user" detailed output.
186 + Have slaves with BGP configured drop BGP on receipt of a shutdown
187 signal, but hang about for an additional 5s to process any remaining
189 + Run regular_cleanups after processing the results of the select,
190 looking at a sufficient slice of each table to ensure that all
191 entries are examined at least once per second.
193 + Cluster changes from Michael, intended to prevent a stray master
194 from trashing a cluster:
195 = Ignore heartbeats from peers claiming to be the master before the
196 timeout on the old master has expired.
197 = A master receiving a stray heartbeat sends a unicast HB back, which
198 should cause the rogue to die due to the tie-breaker code.
199 = Keep probing the master for late heartbeats.
200 = Drop BGP as soon as we become master with the minumum required peers.
201 = Any PING seen from a master forces an election (rather than just
202 where basetime is zero).
203 = A slave which receives a LASTSEEN message (presumably a restarted
204 master) sends back new message type, C_MASTER which indicates the
205 address of the current master.
206 + New config option: cluster_master_min_adv which determines the minimum
207 number of up to date slaves required before the master will drop
210 + Add handling of "throttle=N" RADIUS attributes.
211 + Fix RADIUS indexing (should have 16K entries with 64 sockets).
213 + Fix leak in session freelist when initial RADIUS session allocation
216 + Add a Cisco-Avpair with intercept details to RADIUS Start/Stop
219 + Only send RADIUS stop record in sessionshutdown when there's an ip address.
220 + Reset .die on master takeover (so that dying sessions don't have to
221 hang around until the new master has the same uptime as the old one).
222 + Update .last_packet in cluster_handle_bytes only when there have
223 been bytes received from the modem (dead sessions were having the
224 idle timeout reset by stray packets).
226 + Ensure that sessionkill is not called on an unopened session (borks
228 + Bump MAXSESSION to 60K.
229 + Fix off-by-one errors in session/tunnel initialisation and
230 sessiont <-> sessionidt functions.
231 + Use session[s].opened consistently when checking for in-use sessions
232 (rather than session[s].tunnel).
233 + Use <= cluster_highest_sessionid rather than < MAXSESSION in a
235 + Don't kill a whole tunnel if we're out of sessions.
236 + Change session[s].ip to 0 if set from RADIUS to 255.255.255.254;
237 avoids the possibility that it will be interpreted as a valid IP
239 + Avoid a possible buffer overflow in processpap.
240 + Kill session if authentication was rejected.
242 + More DoS prevention: add packet_limit option to apply a hard limit
243 to downstream packets per session.
244 + Fix "clear counters".
245 + Log "Accepted connection to CLI" at 4 when connection is from localhost
246 to reduce noise in logs.
247 + Show time since last counter reset in "show counters".
249 + Throttle outgoing LASTSEEN packets to at most one per second for a
252 * Fri Dec 17 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.13
253 - Better cluster master collision resolution: keep a counter of state
254 changes, propagated in the heartbeats; the master with the highest #
255 of changes (that has kept in contact with the LAC through the
257 - Skip newlines in ringbuffer messages to CLI.
258 - Drop "Session N is closing" message level to 4; don't process PPPIP
259 packets in this state.
260 - Use gzip --best for man pages, include pid_file in sample
261 startup-config (from Jonathan's Debian package patches).
262 - Read multiple packets off cluster_sockfd as well as udpfd, tunfd in an
263 attempt to avoid losing the cluster in high load (DoS) conditions.
264 - Add counters for select_called, multi_read_used and multi_read_exceeded.
266 - Retain counters of shutdown sessions to dump once per minute.
267 - Use standard uintN_t types for portability.
269 * Wed Dec 1 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.12
270 - The "This time, for sure!" release.
271 - Fix throttlectl plugin argument parsing.
273 * Wed Dec 1 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.11
274 - Don't send a RADIUS start record when ungardening on shutdown.
276 * Wed Dec 1 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.10
277 - Fix byte ordering of LCP header length (thanks Yuri).
278 - Increase ip_conntrack_max due to dropped packets.
280 * Tue Nov 30 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.9
281 - Revise CCP, send ConfigReq once only.
282 - Don't copy the old buffer into Config{Nak,Rej} LCP responses (oops);
283 add length checks when appending.
284 - Do copy the identifier from the request and update length.
285 - Have makeppp print a backtrace on overflow.
286 - Check control serial before clearing window, prevents looping tunnel
287 setup in some instances.
288 - Implement named access-lists which may be applied to a session
289 either via Filter-Id RADIUS responses, or using the CLI.
290 - Drop ip address from LOG.
291 - autothrottle: revise parsing; ignore lcp:interface-config avpairs
292 which don't start with serv[ice-policy].
295 * Sat Nov 20 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.8
296 - Ignore gateway address in Framed-Route (from Jonathan McDowell).
297 - Don't route Framed-IP-Address if contained in a Framed-Route.
298 - Call sessionshutdown() when a tunnel is dropped rather than
299 sessionkill() to ensure that RADIUS stop records are sent.
300 - Cleanup: make a bunch of global functions/variables static.
301 - Remove reference to old -a command line argument.
302 - Add l2tpns(8) and nsctl(8) manpages from Jonathan McDowell.
303 - Add startup-config(5) manpage.
304 - Revise nsctl to allow arbitrary strings/args to be passed to plugins.
305 - Add snoopctl, throttlectl plugins.
306 - Fix deletion from linked list.
307 - Allow LCP re-negotiation after connection completes (thanks Yuri).
309 * Mon Nov 15 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.7
310 - Fix socket creation in host_unreachable() (thanks to Bjørn Augestad)
311 - Don't assume BGP peer sends back negotiated hold time, pick smallest
313 * Thu Nov 11 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.6
314 - Make BGP keepalive/hold time configurable
315 - Revise BGP config to use "router bgp AS" syntax (requires libcli >= 1.8.2)
317 * Tue Nov 9 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.5
318 - Handle routing properly in lone-master case
319 - Fix intercepts: don't double-snoop throttled customers, ensure
320 byte/packet counts are only updated once
321 - Add a callback to allow plugins to fetch values from the running config
323 * Mon Nov 8 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.4
324 - Added setrxspeed plugin
325 - Added peer_address config option
326 - Rename wrapper macros to LOG()/LOG_HEX(), use p->log() in plugins
327 - Replace some PPP{PAP,CHAP} magic numebrs with constants
328 - Nak asyncmap (unless == 0)
329 - Bundle ConfigRej options
330 - Clean up initlcp handling
332 * Wed Nov 3 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.3
333 - Added support for hidden AVPs by Robert Clark
334 - l2tpns-chap-response.patch from Robert Clark
335 - Merge l2tpns-config-hostname.patch from Robert Clark
336 - l2tpns-dont-timeshift-unidirectional-traffic.patch from Robert Clark - Dump accounting data if cin OR cout is non-zero
337 - Don't write accounting files if no accounting dir is set - Yuri
338 - Fix checking for mmap success
339 - Renegotiate MRU - Yuri
340 - Take LCP ConfigReq length from the packet length field - Yuri
341 - Hostname set via command line not config
342 - Make number of throttle buckets configurable
343 - Shared_malloc returns NULL on failure
345 - Unfsck 4->8 indenting change
346 - Use 2 seperate u16 values for throttle rate in/out
347 - Defer adding radius fds to the select loop until become_master
349 * Thu Sep 02 2004 David Parrish <david@dparrish.com> 2.0.2
350 - Combined LCP patches from Iain and Yuri. This should allow Windows 2k/XP
351 clients to connect, as well Linksys DSL modems.
352 - Apply patch to fix -v option from Juergen Kammer.
353 - Makefile fix from Juergen Kammer to not overwrite existing config files on
355 - Configurable radius port patch from Juergen Kammer.
356 - Send my_address if no bind_address when doing IPCP
357 - Write pid file if filename is set
358 - Add startup script and monitor script from Yuri
359 - Some logging correctness fixes from Iain Wade
360 - Add support for LCP Ident and CallBack (rejection only) from Yuri
361 - Initiate LCP if not attempted by the client, or in renegotiation - Yuri
362 - Indentation and style cleanups
363 - Per-user upload and download throttle rates - Yuri
364 - Make autothrottle.so understand cisco lcp:interface-config - Yuri
365 - Show filter stats in show session - Yuri
366 - Cleanup from Michael to change sid to unique_id
367 - Add plugin to remove domain name from auth requests
368 - Add .spec file for RPM generation
370 * Tue Jul 13 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.1
371 - Update INSTALL, Docs/manual.html documentation.
372 - Add INTERNALS documentation.
373 - Add lock_pages option.
374 - TerminateAck fix from Yuri
375 - Adject cli_loop args for libcli 1.8.0
376 - Allow for backward compatabity in C_PING packets
377 - Don't send RADIUS stop messages from sessionshutdown when called from
380 - Fix for LASTSEEN breakage: don't do anything in the CLI other than
381 flag changes to be made by the parent.
382 - Split out master parts from cluster_check_master() into cluster_check_slaves().
383 - Set hostname in CLI prompt.
384 - Make cluster_hb_interval work; include interval/timeout in heartbeats
385 so that a change on the master is propagated immediately to the slaves.
386 - Use fast heartbeats when there are slaves not up to date.
387 - Ensure basetime of shut down master is set to zero (prevent delayed election).
388 - Fix radius session leak on IPCP timeout.
389 - Fix some off-by-one errors in tunnel/session loops.
390 - Add "limp along" fix for when a slave drops temporarily from the mcast group.
391 - Rename l2tpns.cfg as startup-config to match CONFIGFILE.
392 - Update cli callbacks to work with libcli 1.6.
393 This supports privileged and unprivileged commands, as well as a configuration
395 - Add help for all cli commands.
396 - Add "show version" command.
397 - Fix uptime counter display.
398 - Fix nasty bug where cluster basetime can be set to 0 when sending initial
400 - Don't rmmod ip_conntrack, as this can take a lot of time.
401 - Re-order logging in routeset such that the action is given before any error.
402 - Use the correct gateway address when deleting routes.
403 - Remove any routes when address changes.
404 - Require authentication if telnet from remote ip.
405 - Require enable password always.
406 - Return error if show pool done on slave.
407 - We MUST immediately exit if we're the wrong master!
409 * Wed Jun 23 2004 David Parrish <david@dparrish.com> 2.0.0
411 - Completely replace active/standby clustering with a new peer-to-peer
412 clustering method which allows much greater throughput and is a lot more fault
414 - Add internal tbf implementation for throttling without relying on tc and
416 - Add support for iBGP and eBGP to advertise routes
417 - Add cli commands "show cluster", "show bgp", "show ipcache", "show throttle",
418 "show tbf", "suspend bgp", "restart bgp", "show user"
419 - Interception destination must be set per-user
420 - If SMP machine, allow use of SCHED_FIFO, which should improve performance
421 - Added config option to send GARP at startup
422 - Added plugin_become_master and plugin_new_session_master plugin hooks
423 - Remove useless sessionsendarp(). This isn't needed now that we are using TUN
425 - ICMP rate limiting so not every unreachable packet is replied with an ICMP
427 - mangle table is not required on anything but the cluster master, so slaves
428 will drop the mangle table and attempt to unload the ip_conntrack module
429 - Statically assigned IP addresses (by Radius) work now
430 - Add -d command-line flag to detach and become a daemon
431 - Configuration file is now "/etc/l2tpns/startup-config"
432 - Reduced MIN_IP_SIZE to 0x19 to stop a pile of Short IP warnings
433 - Resend initial IPCP request until it's acknowleged by the client
434 - Better radius session cleanup logic
435 - Many miscellaenous bugfixes and performance enhancements
436 - Thanks to Michael O'Reilly and Brendan O'Dea for most of these new features
438 * Mon May 24 2004 David Parrish <david@dparrish.com> 1.2.0
439 - Fix SEGFAULT in garden module
440 - Use multiple radius sockets to allow more concurrent authentication requests
441 - Add username parameter to "show users" command
442 - Fix counting tunnel rx errors as tunnel tx errors
443 - Add "show throttle" command
444 - Add gcc __attribute__ to logging functions
445 - Fix warnings shown by __attribute__
446 - Make sure regular cleanup happens regularly under high load
447 - Add variable cleanup_interval for changing cleanup interval
448 - Add support for reading more than one packet per fd in each processing loop
449 - This is configurable with the multi_read_count variable
450 - Remove segv handler so core dumps can happen
451 - Use nonblocking sockets
452 - Increase tun queue length
453 - Fix minimum length of IP packets
454 - Remove per-packet plugin hooks (they are slow)
455 - Don't drop session if no free RADIUS
456 - Don't expire more than 1000 sessions per cleanup interval
457 - Remove -a and -c command-line options. They don't work anyway
458 - Don't require file: in log_filename
459 - Bump version to 1.2.0
460 - Check return code when throttling users
462 * Mon Apr 5 2004 David Parrish <david@dparrish.com> 1.1.1
463 - Don't mention configure anymore, it's not used
464 - Added the autosnoop and autothrottle modules
465 - Don't default to using a htb for the class root
467 * Fri Mar 5 2004 David Parrish <david@dparrish.com> 1.1.0
468 - Change all strcpy() calls to strncpy() to avoid buffer overflow potential
469 - Add ICMP host unreachable support
470 - Logging to syslog if log_file = "syslog:facility"
471 - Now requires libcli 1.5
472 - All configuration moves to a config structure
473 - Ability to modify and write config on the fly through command-line interface
474 - Config file support is removed, and now handled by the cli
475 - Show hostname in cli prompt
476 - Keep current state type for tunnels
477 - Add uptime command do CLI, which also shows real-time bandwidth utilisation
478 - Add goodbye command to cluster master, which forces droppping a slave
479 - Cache IP address allocation, so that reconnecting users get the same address
480 - Fix tunnel resend timeouts, so that dead tunnels will be cleaned up
481 - Allocate tunnels and radius without using a linked list which had issues
482 - Fix some off-by-one errors in tunnel and session and radius arrays
483 - Save and reload ip address pool when dieing
484 - Check version and size of reloaded data when restarting
485 - Remove plugin_config support
486 - Remove old support for TBF which didn't work anyway. HTB is required to do throttling now.
487 - Add COPYING and Changes files