Commit graph

1276 commits

Author SHA1 Message Date
bodea
c36ba9e38f update for new clustering 2004-07-08 16:14:12 +00:00
Brendan O'Dea
44b941b89c update for new clustering 2004-07-08 16:14:12 +00:00
bodea
def1dfd3cc - 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
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
bodea
52e205c75e roll in Michael's "limp along" fix for when a slave drops temporarily from the mcast group 2004-07-05 06:54:01 +00:00
Brendan O'Dea
d78201b5d7 roll in Michael's "limp along" fix for when a slave drops temporarily from the mcast group 2004-07-05 06:54:01 +00:00
bodea
dff555697a fluff to simplify diffs 2004-07-02 07:31:23 +00:00
Brendan O'Dea
a5848e393c fluff to simplify diffs 2004-07-02 07:31:23 +00:00
bodea
a8434db159 fold back in changes from production 2004-07-02 07:30:43 +00:00
Brendan O'Dea
f4ff96a03e fold back in changes from production 2004-07-02 07:30:43 +00:00
bodea
75f862cde9 rename l2tpns.cfg as startup-config to match CONFIGFILE 2004-07-02 07:29:07 +00:00
Brendan O'Dea
e5a7980770 rename l2tpns.cfg as startup-config to match CONFIGFILE 2004-07-02 07:29:07 +00:00
bodea
6069adbcfc rename l2tpns.cfg to startup-config
fix installation of plugins
use DESTDIR rather than PREFIX
2004-07-02 07:26:18 +00:00
Brendan O'Dea
f706b16ca1 rename l2tpns.cfg to startup-config
fix installation of plugins
use DESTDIR rather than PREFIX
2004-07-02 07:26:18 +00:00
fred_nerk
eb3a6cd62d * 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
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
fred_nerk
307a34d625 Add INTERNALS file 2004-06-28 02:21:20 +00:00
David Parrish
df561af44e Add INTERNALS file 2004-06-28 02:21:20 +00:00
fred_nerk
ed90ea49e0 * 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
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
fred_nerk
67fb382676 Add -d detach option 2004-05-24 04:42:50 +00:00
David Parrish
b4451ee1a4 Add -d detach option 2004-05-24 04:42:50 +00:00
fred_nerk
7285c3e91c Foo 2004-05-24 04:33:35 +00:00
David Parrish
e98737a168 Foo 2004-05-24 04:33:35 +00:00
fred_nerk
6528c2f3b6 Version 1.2.0 2004-05-24 04:33:31 +00:00
David Parrish
144bd8fb6b Version 1.2.0 2004-05-24 04:33:31 +00:00
fred_nerk
b5fc98195b Optimisations 2004-05-24 04:29:38 +00:00
David Parrish
3bfd1c4e87 Optimisations 2004-05-24 04:29:38 +00:00
fred_nerk
010ee3abba Check return code when throttling users 2004-05-24 04:28:41 +00:00
David Parrish
503df19134 Check return code when throttling users 2004-05-24 04:28:41 +00:00
fred_nerk
1af4c16721 Use multiple radius sockets to allow more concurrent authentication requests
Remove per-packet plugin hooks (they are slow)
2004-05-24 04:26:01 +00:00
David Parrish
546f970452 Use multiple radius sockets to allow more concurrent authentication requests
Remove per-packet plugin hooks (they are slow)
2004-05-24 04:26:01 +00:00
fred_nerk
d305da84f4 Use multiple radius sockets to allow more concurrent authentication requests 2004-05-24 04:24:41 +00:00
David Parrish
f764cfffe6 Use multiple radius sockets to allow more concurrent authentication requests 2004-05-24 04:24:41 +00:00
fred_nerk
98efdea254 Add log_backtrace
Use multiple radius sockets to allow more concurrent authentication requests
Fix minimum length of IP packets
Add support for reading more than one packet per fd in each processing loop
Add variable cleanup_interval for changing cleanup interval
Bump version to 1.2.0
2004-05-24 04:24:06 +00:00
David Parrish
11627344e7 Add log_backtrace
Use multiple radius sockets to allow more concurrent authentication requests
Fix minimum length of IP packets
Add support for reading more than one packet per fd in each processing loop
Add variable cleanup_interval for changing cleanup interval
Bump version to 1.2.0
2004-05-24 04:24:06 +00:00
fred_nerk
8512f6d924 - Use multiple radius sockets to allow more concurrent authentication requests
- Add gcc __attribute__ to logging functions
- Fix warnings shown by __attribute__
- Make sure regular cleanup happens regularly under high load
- Add variable cleanup_interval for changing cleanup interval
- Add support for reading more than one packet per fd in each processing loop
- This is configurable with the multi_read_count variable
- Remove segv handler so core dumps can happen
- Use nonblocking sockets
- Increase tun queue length
- Fix minimum length of IP packets
- Remove per-packet plugin hooks (they are slow)
- Don't drop session if no free RADIUS
- Don't expire more than 1000 sessions per cleanup interval
- Remove -a and -c command-line options. They don't work anyway
- Don't require file: in log_filename
2004-05-24 04:20:28 +00:00
David Parrish
c861a50b72 - Use multiple radius sockets to allow more concurrent authentication requests
- Add gcc __attribute__ to logging functions
- Fix warnings shown by __attribute__
- Make sure regular cleanup happens regularly under high load
- Add variable cleanup_interval for changing cleanup interval
- Add support for reading more than one packet per fd in each processing loop
- This is configurable with the multi_read_count variable
- Remove segv handler so core dumps can happen
- Use nonblocking sockets
- Increase tun queue length
- Fix minimum length of IP packets
- Remove per-packet plugin hooks (they are slow)
- Don't drop session if no free RADIUS
- Don't expire more than 1000 sessions per cleanup interval
- Remove -a and -c command-line options. They don't work anyway
- Don't require file: in log_filename
2004-05-24 04:20:28 +00:00
fred_nerk
fa7f80895b Fix SEGFAULT 2004-05-24 04:18:23 +00:00
David Parrish
69a383f460 Fix SEGFAULT 2004-05-24 04:18:23 +00:00
fred_nerk
00bb6daab4 Use multiple radius sockets to allow more concurrent authentication requests 2004-05-24 04:13:06 +00:00
David Parrish
2957bcf7b0 Use multiple radius sockets to allow more concurrent authentication requests 2004-05-24 04:13:06 +00:00
fred_nerk
6788d5ac3a Fix logging parameter errors 2004-05-24 04:12:48 +00:00
David Parrish
b1087392f5 Fix logging parameter errors 2004-05-24 04:12:48 +00:00
fred_nerk
b2fdec2286 Add gcc __attribute__ to logging functions 2004-05-24 04:12:34 +00:00
David Parrish
ebd407a833 Add gcc __attribute__ to logging functions 2004-05-24 04:12:34 +00:00
fred_nerk
6ab5516f1b Add username parameter to "show users" command
Fix counting tunnel rx errors as tunnel tx errors
Add "show throttle" command
2004-05-24 04:12:02 +00:00
David Parrish
7a9ca73727 Add username parameter to "show users" command
Fix counting tunnel rx errors as tunnel tx errors
Add "show throttle" command
2004-05-24 04:12:02 +00:00
fred_nerk
42144d4027 Init data before trying to use it 2004-05-10 00:39:34 +00:00
David Parrish
8a8b45c174 Init data before trying to use it 2004-05-10 00:39:34 +00:00