Commit graph

50 commits

Author SHA1 Message Date
Brendan O'Dea
5faf075c8d add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
Brendan O'Dea
1b6a7a95e6 add Acct-Terminate-Cause to RADIUS stop records 2006-04-13 11:14:35 +00:00
Brendan O'Dea
0251304ce2 set source address for DAE responses 2006-04-05 02:13:48 +00:00
Brendan O'Dea
889746f11c add service-type/framed-protocol to RADIUS records 2005-12-19 06:18:13 +00:00
Brendan O'Dea
d14808035d run PLUGIN_RADIUS_ACCOUNT for Start records 2005-12-09 00:43:17 +00:00
Brendan O'Dea
0ef5685447 add Framed-Route entries to RADIUS records 2005-10-19 03:09:29 +00:00
Brendan O'Dea
890bffb510 add Cisco-AVPairs to RADIUS accounting records via plugin_radius_account 2005-10-11 09:04:53 +00:00
Michael Chapman
c450bdccc0 Fix RADIUS authentication on DAE responses. 2005-10-11 02:27:40 +00:00
Brendan O'Dea
d266f5fc93 fix Calling-Station-Id in RADIUS accounting records 2005-09-30 13:13:26 +00:00
Brendan O'Dea
bdc2baa573 increase size of PPP buffers to MAXETHER 2005-08-31 12:41:09 +00:00
Brendan O'Dea
aa460d6523 re-instate local md5.[ch] 2005-08-12 13:48:19 +00:00
Brendan O'Dea
f22a9cebbe normalise session, tunnel args 2005-08-10 11:25:56 +00:00
Brendan O'Dea
92eb6ebf42 include Acct-Session-Time in interim records 2005-07-31 10:35:39 +00:00
Brendan O'Dea
aabf1d3fe9 - Replace flags used for LCP/IPCP with state machine.
- Use openssl MD5, fix DAE vector (Alex Kiernan).
2005-07-31 10:04:09 +00:00
Brendan O'Dea
bda0151354 always call filter_session on CoA 2005-06-30 14:31:26 +00:00
Brendan O'Dea
5f9b3ba229 Don't restrict DAE requests to the configured RADIUS servers 2005-06-30 06:13:40 +00:00
Brendan O'Dea
a685501f64 add DAE support (PoD/CoA) from Vladislav Bjelic 2005-06-28 14:48:17 +00:00
Brendan O'Dea
b830a899ca Include endpoint address in accounting dump files.
Convert mainloop to use epoll rather than select.
2005-06-04 15:42:35 +00:00
Brendan O'Dea
bd2ec60149 merge in changes from 2.0 branch; fix byte counters in accounting records, add gigawords 2005-06-02 11:32:30 +00:00
Brendan O'Dea
847b4c6b1d fix RADIUS indexing (should have 16K entries with 64 sockets) 2005-05-16 04:51:16 +00:00
Brendan O'Dea
0f28e4f964 more CHAP changes 2005-05-07 08:17:25 +00:00
Brendan O'Dea
8eebdb18f2 Add interim accounting support from Vladislav Bjelic 2005-05-05 10:02:06 +00:00
Brendan O'Dea
a24e3186ff Add a Cisco-Avpair with intercept details to RADIUS Start/Stop records 2005-05-03 05:11:34 +00:00
Brendan O'Dea
4db668744a consistent messages 2005-04-27 13:53:15 +00:00
Brendan O'Dea
621983b8d0 remove dead session fields 2005-04-18 05:07:20 +00:00
Brendan O'Dea
57aa5ef53d add result/error codes to CDN; use "try another" on out of IP addresses 2005-03-10 06:16:05 +00:00
Brendan O'Dea
983b38e12f merge back 2.0 branch changes 2005-02-14 06:58:38 +00:00
Brendan O'Dea
08360e49b4 finish incorporating ipv6 patches 2005-01-25 04:19:04 +00:00
Brendan O'Dea
89eb5a00ec comment 2005-01-05 14:35:01 +00:00
Brendan O'Dea
692ad810ce use bounds-checking lookup functions for string constants
replace some magic numbers with enum
2005-01-05 13:45:49 +00:00
Brendan O'Dea
9d199a1046 use standard uintN_t types for portability 2004-12-16 08:49:52 +00:00
Brendan O'Dea
c8c832860d more paranoid length checking for RADIUS replies 2004-11-30 06:50:26 +00:00
Brendan O'Dea
2f5b811429 make "established" a different tcp flag match
add fragment handling
drop IP address from LOG macro (function)
2004-11-29 02:17:17 +00:00
Brendan O'Dea
6d5c3ecb4d update filter refcounts
add cli commands for filtering/unfiltering
2004-11-28 02:53:11 +00:00
Brendan O'Dea
5e337e7ed9 filters 2004-11-27 21:10:50 +00:00
Brendan O'Dea
95f488fea0 parse Filter-Id attributes 2004-11-27 20:42:02 +00:00
Brendan O'Dea
3057f5e655 - Revise CCP, send ConfigReq once only.
- Check control serial before clearing window, prevents looping tunnel
  setup in some instances.
- Add configuration syntax for adding named access lists (work in progress).
2004-11-27 05:19:53 +00:00
Brendan O'Dea
0753f6fc9f - Drop sendccp. If client sends a CCP request for compression just NAK it.
- Don't copy the old buffer into Config{Nak,Rej} LCP responses (oops);
  add length checks when appending.
- Have makeppp print a backtrace on overflow.
2004-11-25 02:45:27 +00:00
Brendan O'Dea
4f5ea4fbe0 - Ignore gateway address in Framed-Route (from Jonathan McDowell).
- Call sessionshutdown() when a tunnel is dropped rather than
  sessionkill() to ensure that RADIUS stop records are sent.
- Cleanup: make a bunch of global functions/variables static.
2004-11-16 07:54:32 +00:00
Brendan O'Dea
4e0597cd50 use LOG for logging macro
clean up initlcp handling
2004-11-05 04:55:25 +00:00
David Parrish
d52f68e6d3 Cleanups and sync 2004-09-02 04:18:07 +00:00
David Parrish
a17df3e475 Makefile fix and config radius port patches from JK 2004-07-26 00:20:41 +00:00
Brendan O'Dea
eae3c0527f - TerminateAck fix from Yuri
- Adject cli_loop args for libcli 1.8.0
- Allow for backward compatabity in C_PING packets
- Don't send RADIUS stop messages from sessionshutdown when called from
  sessionkill.
2004-07-11 07:57:33 +00:00
Brendan O'Dea
4ad7536258 - set hostname in CLI prompt
- add assertions to help identify odd LASTSEEN breakage
- make cluster_hb_interval work; include interval/timeout in heartbeats
  so that a change on the master is propagated immediately to the slaves
- use fast heartbeats when there are slaves not up to date
- ensure basetime of shut down master is set to zero (prevent delayed election)
- fix radius session leak on IPCP timeout
- fix some off-by-one errors in tunnel/session loops
2004-07-07 09:09:53 +00:00
Brendan O'Dea
a5848e393c fluff to simplify diffs 2004-07-02 07:31:23 +00:00
David Parrish
7aa420ce9f * Update cli callbacks to work with libcli 1.6.
This supports privileged and unprivileged commands, as well as a configuration
  mode
* Add help for all cli commands
* Add "show version" command
* Fix uptime counter display
* Fix nasty bug where cluster basetime can be set to 0 when sending initial
  heartbeat
* Don't rmmod ip_conntrack, as this can take a lot of time
* Re-order logging in routeset such that the action is given before any error
* Use the correct gateway address when deleting routes
* Remove any routes when address changes
* Require authentication if telnet from remote ip
* Require enable password always
* Return error if show pool done on slave
* We MUST immediately exit if we're the wrong master!
2004-06-28 02:43:13 +00:00
David Parrish
c239d4b228 * Wed Jun 23 2004 David Parrish <david@dparrish.com> 2.0.0
- Major release
- Completely replace active/standby clustering with a new peer-to-peer
  clustering method which allows much greater throughput and is a lot more fault
  tolerant
- Add internal tbf implementation for throttling without relying on tc and
  kernel HTB
- Add support for iBGP and eBGP to advertise routes
- Add cli commands "show cluster", "show bgp", "show ipcache", "show throttle",
  "show tbf", "suspend bgp", "restart bgp", "show user"
- Interception destination must be set per-user
- If SMP machine, allow use of SCHED_FIFO, which should improve performance
- Added config option to send GARP at startup
- Added plugin_become_master and plugin_new_session_master plugin hooks
- Remove useless sessionsendarp(). This isn't needed now that we are using TUN
  instead of TAP.
- ICMP rate limiting so not every unreachable packet is replied with an ICMP
  unreachable message
- mangle table is not required on anything but the cluster master, so slaves
  will drop the mangle table and attempt to unload the ip_conntrack module
- Statically assigned IP addresses (by Radius) work now
- Add -d command-line flag to detach and become a daemon
- Configuration file is now "/etc/l2tpns/startup-config"
- Reduced MIN_IP_SIZE to 0x19 to stop a pile of Short IP warnings
- Resend initial IPCP request until it's acknowleged by the client
- Better radius session cleanup logic
- Many miscellaenous bugfixes and performance enhancements
- Thanks to Michael O'Reilly and Brendan O'Dea for most of these new features
2004-06-23 03:52:24 +00:00
David Parrish
f764cfffe6 Use multiple radius sockets to allow more concurrent authentication requests 2004-05-24 04:24:41 +00:00
David Parrish
fc0a363208 * Fri Mar 5 2004 David Parrish <david@dparrish.com> 1.1.0
- Change all strcpy() calls to strncpy() to avoid buffer overflow potential
- Add ICMP host unreachable support
- Logging to syslog if log_file = "syslog:facility"
- Now requires libcli 1.5
- All configuration moves to a config structure
- Ability to modify and write config on the fly through command-line interface
- Config file support is removed, and now handled by the cli
- Show hostname in cli prompt
- Keep current state type for tunnels
- Add uptime command do CLI, which also shows real-time bandwidth utilisation
- Add goodbye command to cluster master, which forces droppping a slave
- Cache IP address allocation, so that reconnecting users get the same address
- Fix tunnel resend timeouts, so that dead tunnels will be cleaned up
- Allocate tunnels and radius without using a linked list which had issues
- Fix some off-by-one errors in tunnel and session and radius arrays
- Save and reload ip address pool when dieing
- Check version and size of reloaded data when restarting
- Remove plugin_config support
- Remove old support for TBF which didn't work anyway. HTB is required to do throttling now.
- Add COPYING and Changes files
2004-03-05 00:09:03 +00:00
David Parrish
c5e4c2cfc0 Initial revision 2003-12-16 07:07:39 +00:00