Commit graph

52 commits

Author SHA1 Message Date
bodea
f5071c422d - Add startup-config(5) manpage.
- Add snoopctl, throttlectl plugins.
- Update documentation.
2004-11-17 15:08:19 +00:00
bodea
bf0a00f106 - Add startup-config(5) manpage [FIXME].
- Revise nsctl to allow arbitrary strings/args to be passed to plugins.
2004-11-17 08:23:34 +00:00
fred_nerk
9f5e93e3cd Add manpages from Jonathan McDowell
Remove reference to old -a command line argument
2004-11-16 21:54:46 +00:00
bodea
27329d23aa - 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
bodea
74967abeca make BGP keepalive/hold time configurable, revise config syntax 2004-11-11 03:07:42 +00:00
bodea
72346a7226 add a callback to allow plugins to fetch values from the running config 2004-11-09 08:05:01 +00:00
bodea
1be4c47f88 Fix intercepts: don't double-snoop throttled customers, ensure
byte/packet counts are only updated once
2004-11-09 05:42:53 +00:00
bodea
514606fde0 setsid 2004-11-05 07:50:05 +00:00
bodea
d2c470fb4e use LOG for logging macro
clean up initlcp handling
2004-11-05 04:55:25 +00:00
bodea
91b978f4a8 add peer_address config option 2004-11-05 02:47:47 +00:00
bodea
5acef8bb78 add length checks and comments to proxy LCP parsing 2004-11-05 02:25:25 +00:00
bodea
c162b9058d byte counters are sent to the master frequently which resets the idle
counter, don't bother forwarding packets for this reason
2004-11-04 06:05:55 +00:00
bodea
98a1193817 retain subdomain of hostname if any 2004-11-04 05:08:36 +00:00
bodea
90f31e7f71 make log a conditional macro for _log 2004-11-03 13:23:58 +00:00
bodea
fe347137ce fix cut-n-paste error 2004-11-02 06:45:03 +00:00
bodea
c34bfa1cfc - Use 2 seperate u16 values for throttle rate in/out
- Defer adding radius fds to the select loop until become_master
2004-11-02 04:35:03 +00:00
bodea
455e310268 merge 2004-10-30 07:17:41 +00:00
bodea
9eb3125681 need to init_cli before loading config 2004-10-30 06:58:55 +00:00
bodea
2f1b71cd74 make number of throttle buckets configurable 2004-10-29 04:01:11 +00:00
bodea
b77ee80fe8 unused 2004-10-28 03:58:38 +00:00
bodea
15086a9ad9 hostname set via command line not config 2004-10-28 03:31:39 +00:00
bodea
5386106aa5 fix command line args 2004-10-25 15:07:51 +00:00
fred_nerk
f6f9bebeaa Don't continue creating session if no IP addresses are free 2004-10-05 02:50:03 +00:00
fred_nerk
bf78c77b22 Don't write accounting files if not required.
Fix checking for mmap success
2004-09-23 03:59:09 +00:00
fred_nerk
f5b355dc9f l2tpns-dont-timeshift-unidirectional-traffic.patch 2004-09-20 23:34:35 +00:00
fred_nerk
b183ede15d Add configurable hostname 2004-09-19 23:26:46 +00:00
fred_nerk
7f13b85569 Add support for Hidden AVPs and chap-response 2004-09-19 23:19:23 +00:00
fred_nerk
272e831e80 Cleanups and sync 2004-09-02 04:18:07 +00:00
fred_nerk
90ebb19a3d Per-user upload and download throttle rates - Yuri
Make autothrottle.so understand cisco lcp:interface-config - Yuri
Show filter stats in show session - Yuri
2004-08-26 06:22:37 +00:00
fred_nerk
32febcb0c7 Set a maximum time to wait for radius to be ready on shutdown 2004-08-26 04:43:52 +00:00
fred_nerk
43d0275f6d Add renegotiation patch from Yuri (ppp-aug10-patch)
Indentation and style cleanups
Make md5.c use standard memcpy and memset
2004-08-13 00:02:50 +00:00
fred_nerk
4b16fcbdfd Allow cli session changes to happen if the session is timing out 2004-08-02 06:06:28 +00:00
fred_nerk
6e3d21bbdc - Add support for LCP Ident and CallBack (rejection only) from Yuri
- Initiate LCP if not attempted by the client
2004-08-02 05:40:21 +00:00
fred_nerk
8c861521ae - Write pid file if filename is set
- Add startup script and monitor script from Yuri
- Some logging correctness fixes from Iain Wade
- Combined LCP patches from Iain and Yuri. This should allow Windows 2k/XP
  clients to connect, as well Linksys DSL modems.
2004-08-02 03:38:01 +00:00
fred_nerk
1aa6a3a96d Send my address if no bind_address on IPCP 2004-07-28 06:12:30 +00:00
fred_nerk
7484eaf31b Don't warn about unknown subtype attribute 2004-07-28 04:01:12 +00:00
fred_nerk
ba1abbbd05 Makefile fix and config radius port patches from JK 2004-07-26 00:20:41 +00:00
bodea
4b259db0af fix for -v from Juergen Kammer 2004-07-12 15:16:27 +00:00
bodea
74ee338c37 add lock_pages option 2004-07-12 08:21:45 +00:00
bodea
3ef237977d - 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
bodea
570d0d5385 - s/tap/tun/
- fix for LASTSEEN breakage:  don't do anything in the CLI other than
  flag changes to be made by the parent
- split out master parts from cluster_check_master() into cluster_check_slaves()
2004-07-08 16:54:35 +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
bodea
dff555697a fluff to simplify diffs 2004-07-02 07:31:23 +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
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
fred_nerk
67fb382676 Add -d detach option 2004-05-24 04:42:50 +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
fred_nerk
42144d4027 Init data before trying to use it 2004-05-10 00:39:34 +00:00
fred_nerk
a2b74c9f3c . 2004-03-05 00:22:45 +00:00
fred_nerk
8e8ea0e534 Don't use configure it's a waste of time 2004-03-05 00:22:06 +00:00