Commit graph

79 commits

Author SHA1 Message Date
bodea
12f16f60c1 - 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
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
e488285fbf *** empty log message *** 2004-11-11 06:13:29 +00:00
bodea
41ce5a53bb new libcli required 2004-11-11 05:38:01 +00:00
bodea
74967abeca make BGP keepalive/hold time configurable, revise config syntax 2004-11-11 03:07:42 +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
cb0e9aa9f3 values not set yet 2004-11-04 23:41:54 +00:00
bodea
2a11e02653 fix output format for TBFs 2004-11-02 06:45:36 +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
91ea0d697d merge 2004-10-30 07:35:31 +00:00
bodea
cb6bbd1db1 unfsck 4->8 indenting change
hostname set via command line not config
2004-10-28 03:31:11 +00:00
fred_nerk
41de03f89f Add mac address config option handling 2004-09-21 05:09:09 +00:00
fred_nerk
b183ede15d Add configurable hostname 2004-09-19 23:26:46 +00:00
fred_nerk
272e831e80 Cleanups and sync 2004-09-02 04:18:07 +00:00
fred_nerk
2bbbe1c31b Make throttle without a username not crash 2004-08-26 06:24:12 +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
fd82089835 Show full radius id in show radius 2004-08-26 04:38:40 +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
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
a8434db159 fold back in changes from production 2004-07-02 07:30:43 +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
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
fred_nerk
8e8ea0e534 Don't use configure it's a waste of time 2004-03-05 00:22:06 +00:00
fred_nerk
b43583c01d * 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
fred_nerk
3aa4eda8b1 Initial revision 2003-12-16 07:07:39 +00:00