summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-18implemented session count limitingDmitry Kozlov
new config option: [common] max-sessions=N If set then accel-pppd stops reply to new connection requests if total number of sessions (active and starting) is reached specified limit.
2017-04-04ipoe: included lua bitop libraryDmitry Kozlov
Included bitop library http://bitop.luajit.org/index.html It may be used to extract vlan components in username function: function username(ses) vid=ses:vlan() svid=bit.rshift(vid,16) cvid=bit.band(vid,0xffff) ... end
2017-04-04ipoe: implemented ability to change ipset by CoADmitry Kozlov
For this need to send 2 attributes: L4-Redirect=1,L4-Redirect-Ipset=new-set
2017-03-28Revert "ipoe: fix lua 5.3 support"Dmitry Kozlov
This reverts commit b72efa378b32980f2114bcb8081fafbd93096aa0.
2017-03-27ipoe: fixed bug (unexpected session start in UP mode)Dmitry Kozlov
2017-03-27cmake: check for pcre and openssl headers are presentDmitry Kozlov
2017-03-27ipoe: fix lua 5.3 supportDmitry Kozlov
2017-03-27net-snmp: add definition for U64 (if not set)Dmitry Kozlov
2017-03-27ipoe: fixed prefix calculation from ipaddrDmitry Kozlov
2017-02-15ipoe: fixed conditions to turn on arp handlingDmitry Kozlov
2017-01-21default value for renew-time fixed Oleksandr Martsyniuk
To keep clients from losing adresses, T1 should be set less that lease time.
2016-12-10ipoe: implemented support for freeradius dhcp attributesDmitry Kozlov
2016-12-10radius: extended support for freeradius dictionariesDmitry Kozlov
2016-12-09shaper: fixed conditions to install limiter (may install only up or only ↵Dmitry Kozlov
down limiter)
2016-12-09ipoe: assign 2 ptp address to interface for sessions with natDmitry Kozlov
2016-12-08ipoe: fixed nat supportDmitry Kozlov
2016-12-07ipoe: lua: add "vlan" field to session objectDmitry Kozlov
resulting value is vlan | (parent_vlan << 16)
2016-12-06ipoe,pppoe: do not check for vlan-mon module is loadedDmitry Kozlov
2016-12-05Merge pull request #7 from nuclearcat/masterxebd
Multiple service-name, compatibility with old accel-ppp with service name specified
2016-11-29ipoe: apply offer-delay rules to arp initiated sessionsDmitry Kozlov
2016-11-29ipoe: do not start UP session by arp request immediately (wait for IP packet)Dmitry Kozlov
2016-11-29ipoe: assign point-to-point addresses to non-shared physical interface ↵Dmitry Kozlov
(prevents route cleaning by interface renaming)
2016-11-28ipoe: swtich netlink context to default netDmitry Kozlov
2016-11-28ipoe: fixed typo (incorrect assignment)Dmitry Kozlov
2016-11-28ipoe: bug fixDmitry Kozlov
2016-11-28vlan_mon: switch context to default netDmitry Kozlov
2016-11-13Bugfix for sending service name tagsroot
2016-11-13Add possibility to specify multiple service names, add option ↵root
accept-any-service to provide backward compatibility with old accel-ppp
2016-11-12ipoe: add support for peer-to-peer client interfacesMichael Furmur
2016-11-12pppd-compat: move computation of tx_bytes and rx_bytesGuillaume Nault
tx_bytes and rx_bytes are only used in the ->stop_time branch, so let's compute them here rather than at the top of the function. Also, let's replace '4294967296llu' by 'UINT32_MAX + 1', to make it clear that a gigaword equals 2^32 bytes and is used to keep track of how many times the 32 bits tx and rx counters have overflowed. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2016-11-12pppd-compat: check available memory before setting environment variablesGuillaume Nault
Use snprintf() to ensure fill_env() isn't going to overflow 'mem'. Environment variables are either completely set or not defined at all (but are never truncated). For the ipv6 and ipv6_dp cases, the environment variable is now fully generated with a single format string for simplicity. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2016-11-12l2tp: fix l2tp_ctx_switch()Guillaume Nault
There are three different triton contexts that use l2tp_ctx_switch() as their ->before_switch callback (main UDP server, L2TP control and L2TP data). In UDP server and L2TP control contexts, l2tp_ctx_switch() is called with 'arg' == NULL. Only L2TP data contexts pass an ap_session pointer. So we have to check 'arg' before setting 'net' or accel-ppp would segfaults. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2016-07-19ipoe: switch session netDmitry Kozlov
2016-07-19check for setns availabilityDmitry Kozlov
2016-07-14ppp: code simplificationDmitry Kozlov
2016-07-14ppp: fix bug when using unit cache with interfaces in another netnsFrançois Cachereul
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2016-07-14Revert "ppp: futher improvement of distablish_ppp function"François Cachereul
This reverts commit 07ca3acb40df7668cfd0c6abbdcefc21d944d993. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2016-07-14net: code cleanupDmitry Kozlov
2016-07-14fix def_move_linkFrançois Cachereul
Do not know how this could work. It make more sense to move an interface from its original namespace not from its destination. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2016-07-11implemented support for network namespaceDmitry Kozlov
This is done using radius attribute NAS-Port-Id. The new format of this attribute is NAS-Port-Id=[ns/][name]. Namespaces must be created malually by "ip netns add ..." command
2016-07-091.11.0 releaseDmitry Kozlov
* general rewrite and improve ipoe/vlan_mon drivers * ipoe: generate EUI-64 interface identifier for ipv6 addresses * ipoe: log warning if interface was not started by vlan_mon notification * ipoe: introduced option "start=auto" * ipoe: translate UP session to dhcp session when dhcp request received (for shared=0 interfaces) * ipoe: implemented starting UP session by arp request * ipoe: log interface renaming * pppoe: add interface name to log messages * pppoe: implemented vlan_mon support * pppd_compat: change mode of radattr files to 0644 * pppd_compat: check for script existance before fork * radius: implemented handling of Framed-Route attribute * radius: do not send NAS-Port and NAS-Port-Id if they are undefined * radius: add Delegated-IPv6-Prefix to accounting packets * radius: update Session-Timeout by CoA * shaper: implemented internal class id map * ppp: introduced unit-preallocate option * ipv6: remove ipv6 address and routes on session termination * vlan_mon: introduced autoclean module parameter * iprange: implement config reload * make termination caused by SIGTERM soft * remove pid file on exit * for single-session=deny make early check for duplicate username (before calling radius) * fixed broken "noauth" mode
2016-07-09removed accel-dp related filesDmitry Kozlov
accel-dp will be continued in separated branch
2016-07-09radius: do not execute interface rename immediately, store new name for ↵Dmitry Kozlov
later use Bacause interface may not still exists in authentication phase
2016-07-09ppp: ignore zero read on chan fdDmitry Kozlov
2016-07-04ppp: ignore zero read on unit fdDmitry Kozlov
2016-06-25radius: do not send NAS-Port and NAS-Port-Id if they are undefinedDmitry Kozlov
2016-06-25ppp: introduced unit-preallocate optionDmitry Kozlov
If set to 1 then allocate unit (interface) before authorization, so Nas-Port and Nas-Port-Id would be defined in Access-Request phase
2016-06-08ipoe: fixed incorrect arp reply (reply for request which started session)Dmitry Kozlov
2016-06-08ipoe: fixed incorrect initialization of interface's hwaddr in internal structureDmitry Kozlov
2016-06-07Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/codeDmitry Kozlov