Commit graph

76 commits

Author SHA1 Message Date
Samuel Thibault
e442a69fc1 cluster: try make the cluster socket high-priority
The heartbeat messages, notably, should really not be lost, otherwise the
cluster will dismantle itself if some very-high trafic is filling packet
queues.
2024-01-26 01:51:54 +01:00
Samuel Thibault
9daccab8ba shutdown_handler: really shutdown when we are last
If we are a master and we don't have peers, there is no use keeping the
sessions alive, when we'll restart we will have forgotten them all.
Better gracefully close them, so they can be quickly respawn on restart,
instead of having to wait for timeouts.
2024-01-21 00:36:39 +01:00
Samuel Thibault
1f1b8d7b99 Enforce assumption 2024-01-17 00:48:14 +01:00
Samuel Thibault
3be9b1657a Note what changed in versions 8, 9 and 10 2023-12-03 21:24:54 +01:00
Samuel Thibault
31dedbbe66 Use 64bit counters for accounting
Otherwise with 5-minute reporting we overflow with >= ~100Mbps.

Fixes #12
2022-01-24 00:40:26 +01:00
fendo
0f20bfda6a Add cluster_port parameter for Multiple clusters 2017-05-27 00:09:19 +02:00
fendo
e98fe68174 Added ability to define up to 5 IPv6 prefix delegation by user 2014-09-16 17:34:39 +02:00
fendo
40c19d29ab Fix cluster slave; reset to 0, the end of the session when the master version < slave version. 2014-09-12 18:20:18 +02:00
fendo
b3f40f41f7 Add DHCPv6 functionality. 2014-09-11 16:19:57 +02:00
fendo
26a2025a1b Fix: wheezy warning compilation 2013-09-16 15:01:04 +02:00
fendo
137bcc9981 Adding the possibility to listening multiple IP L2TP tunnels. 2013-03-06 22:18:32 +01:00
fendo
caa9662496 Fix: inverted delete/add routes in cluster mode 2013-01-13 23:08:38 +01:00
fendo
11996ba414 Add PPPOE-SERVER functionality 2013-01-08 10:50:57 +01:00
fendo
0e8cec8fc1 Fix routes inverted delete/add in cluster mode 2012-12-18 19:18:05 +01:00
fendo
5e65215ed4 Following development LAC functionality 2012-12-06 01:40:12 +01:00
fendo
7fd68b1dae Fix the inverted "delete/add" of the routes, in cluster mode. 2012-11-18 16:04:06 +01:00
fendo
ce928583b4 MLPPP not working in cluster mode. 2012-10-28 22:39:23 +01:00
Benjamin Cama
152b5b67a4 Fix whitespaces errors introduced by commit d2848ce
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2012-02-02 00:45:55 +01:00
Brendan O'Dea
b939b00afd clean up some compiler errors 2011-09-12 20:46:07 +10:00
Brendan O'Dea
d2848cebc4 Apply patch from Geoffrey D. Bennett to fix handle RADIUS Class attribute.
Bump heartbeat version to handle Class entry in session (v6).
Re-arrange session struct to remove padding.
Update cluster code to handle v6 packets.  Drop compatability for pre-v5.
2011-09-11 21:54:45 +10:00
Brendan O'Dea
d5c6f84271 Import to git from cvs. Remove keywords. 2011-01-27 17:36:01 +11:00
Brendan O'Dea
845bb1f376 Apply MLPPP patch from Muhammad Tayseer Alquoatli, very belatedly, with
thanks.  Changes:
- Handle session shutdown gracefully regarding leaving the bundle (bug that is
  caused when a all session leaves a bundle then another join)
- IP assignment is done only for the first session in the bundle (save IP
  waste for multiple MLPPP sessions)
- Route is being added only for the first session in the bundle (less routes
  on l2tpns system)
- Fix route deletion problem for MLPPP sessions (bug that caused when a
  session leaves a bundle)
- Uniformity of sequence number space satisfied (according to RFC1990)
- Fix reassembling fragmented packets and handling lost fragments (according
  to RFC 1990)
- FragmentatConnection to l2tpns.cvs.sourceforge.net closed by remote host.n
  across N session rather than two)
- Sequence numbers extraction mask has been corrected (bug in extracting
  sequence numbers)
- some clustering support fixes
- Upload/Download statistics has been corrected
- add "kill_timedout_sessions" config option
2009-12-08 14:49:28 +00:00
Brendan O'Dea
dbaf3410c4 Security: Rhys Kidd identified a vulnerability in the handling of
heartbeat packets.  Drop oversize heartbeat packets.
2006-12-04 20:50:02 +00:00
Brendan O'Dea
082e3baf90 fix log message 2006-07-17 07:53:08 +00:00
Brendan O'Dea
65270c4bd2 add session/idle timeouts 2006-06-11 12:46:18 +00:00
Brendan O'Dea
5faf075c8d add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
Brendan O'Dea
0251304ce2 set source address for DAE responses 2006-04-05 02:13:48 +00:00
Brendan O'Dea
b3eeda4574 unused: sessiont.{ns,nr} 2005-12-05 14:10:42 +00:00
Brendan O'Dea
57cf90e184 fix CTUNNEL decompress error message 2005-12-05 12:47:12 +00:00
Brendan O'Dea
10c35633a5 - Reset restart counters correctly.
- Reset timers on sending ConfigReq.
- Only send one RADIUS Start record, even if IPCP is restarted.
2005-11-04 14:41:50 +00:00
Brendan O'Dea
2b05f31dc7 add cluster_mcast_ttl option 2005-09-02 23:59:56 +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
a685501f64 add DAE support (PoD/CoA) from Vladislav Bjelic 2005-06-28 14:48:17 +00:00
Brendan O'Dea
e5695ec41c clear cluster_master on election so that slaves will accept a new master 2005-06-27 04:52:54 +00:00
Brendan O'Dea
973c5fd008 Ping new master when we get C_MASTER and delay next election to allow
the unicast limp-along code to kick in if required.
2005-06-14 05:37:09 +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
83699acac6 merge cluster fixes from release_2_0 branch 2005-05-26 12:17:30 +00:00
Brendan O'Dea
211cb9427c back out C_LASTSEEN change (to be replaced by different solution in merge from 2.0) 2005-05-24 07:45:13 +00:00
Brendan O'Dea
93151dffc9 session structure has changed: bump heartbeat version and convert old format heartbeats 2005-05-08 08:00:49 +00:00
Brendan O'Dea
ecd6721a85 Don't process C_LASTSEEN unless we're a master (otherwise a crashed
master kills all slaves once restarted).
2005-05-07 10:14:33 +00:00
Brendan O'Dea
8eebdb18f2 Add interim accounting support from Vladislav Bjelic 2005-05-05 10:02:06 +00:00
Brendan O'Dea
7514d053bc Update .last_packet in cluster_handle_bytes only when there have
been bytes received from the modem (dead sessions were having the
idle timeout reset by stray packets).
2005-05-02 09:06:05 +00:00
Brendan O'Dea
804d90bb98 missed merge from stable branch 2005-04-01 08:55:29 +00:00
Brendan O'Dea
d7fbaf8b70 reset .die on master takeover 2005-04-01 08:46:03 +00:00
Brendan O'Dea
983b38e12f merge back 2.0 branch changes 2005-02-14 06:58:38 +00:00
Brendan O'Dea
df834e98ff use constant 2005-02-09 02:38:51 +00:00
Brendan O'Dea
17fd46618e rename sess_count to sess_local, fiddle with packet_limit log output 2005-01-13 07:57:35 +00:00
Brendan O'Dea
5c3bc79ed4 typo 2004-12-22 05:30:58 +00:00
Brendan O'Dea
8454a49d0c sanity check that cluster_send_session is not called from a child process
throttle outgoing LASTSEEN packets to at most one per second for a given seq#
2004-12-20 07:23:41 +00:00