summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-18ifconfig: reset the ifindex when moving namespacesSimon Chopin
If you move an interface into a namespace where there is alreay an interface with the same index, the moved interface will get a new index assigned to it. We need to update our data structure accordingly. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2020-03-18net: new function get_ifindexSimon Chopin
The index of a given interface is an operation that highly depends on the network namespace we're in. This patch simply cuts out a function to get the index for a given interface name from the session initialization code, and expose it in the ap_net structure. This function can then be used to refresh the index when moving interfaces around. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2020-03-10Merge pull request #121 from themiron/max-starting-cleanupxebd
Add global [common]max-starting option
2020-03-10Merge pull request #117 from themiron/echo-opt82xebd
ipoe: dhcpv4: echo back opt82 if sent by client/relay per rfc3046
2020-03-07sstp: fix max-sessions limit was not appliedVladislav Grishenko
2020-03-07session: add global [common]max-starting optionVladislav Grishenko
usually there's no need to have per-proto limitation, since the need of max starting limitation affects the whole server, not particular protocol only.
2020-03-07Revert "ipoe,pptp: introduced max-starting option (limit number of starting ↵Vladislav Grishenko
sessions)" This reverts commit 02008c74a19c538ff7d9ce643c8cd4c738886196.
2020-03-07Revert "pppoe: introduced max-starting option (limit number of starting ↵Vladislav Grishenko
sessions)" This reverts commit 61862862a9fa24db4f16c24db1aed1f1a5f0be19.
2020-02-17Merge pull request #115 from themiron/ipv6-poolxebd
pptp: add ip-pool & ipv6-pool config exmples
2020-02-17Merge pull request #114 from themiron/dhcp-csum-padxebd
ipoe: dhcp: implement udp csum and padding per rfc1542
2020-02-16ipoe: dhcpv4: echo back opt82 if sent by client/unknown relay per rfc3046Vladislav Grishenko
2020-02-16pptp: add ip-pool & ipv6-pool config exmplesVladislav Grishenko
2020-02-16ipoe: dhcpv4: move relay packet logging after paddingVladislav Grishenko
2020-02-16ipoe: dhcpv4: implement udp csum and padding per rfc1542Vladislav Grishenko
2020-01-28ipoe_mod: set type of IPOE_ATTR_HWADDR to NLA_BINARYDmitry Kozlov
2020-01-23Merge pull request #111 from themiron/interim-jitterxebd
radius: implement jitter of accounting update interval
2020-01-20radius: implement jitter of accounting update intervalVladislav Grishenko
2020-01-13Merge pull request #110 from themiron/ipv6-poolxebd
Add named ipv6 pools support
2020-01-11ipv6pool: add per-proto ipv6-pool and ipv6-pool-delegate optionsVladislav Grishenko
also, disable ipv6 pools via chap-secrets, need to find another syntax for it, may be with comments.
2020-01-10ipv6pool: fix config exmplesVladislav Grishenko
2020-01-10ipv6pool/radius: implement named ipv6 poolsVladislav Grishenko
default stateful ipv6 address & prefix radius attrs are per-rfc6911: 171 Delegated-IPv6-Prefix-Pool 172 Stateful-IPv6-Address-Pool the single pool name from chap-secret file pool is shared for ipv4/ipv6/ipv6 dp, new config syntax TBD. per-proto pool names are still for ipv4 only, new config syntax TBD.
2019-12-24pppoe: introduced max-starting option (limit number of starting sessions)Gavrilenkov A
2019-12-24ipoe,vlan_mon: add support for kernels 5.2+Dmitry Kozlov
2019-12-24triton: small fixesDmitry Kozlov
2019-12-23Merge pull request #108 from DmitriyEshenko/Centos8-cpackxebd
cpack: Add rules and requirements for Centos 8
2019-12-22cpack: Add rules and requirements for Centos 8DmitriyEshenko
2019-12-17Merge pull request #105 from DmitriyEshenko/patch-8xebd
Fix: build for Ubuntu 16, update required packages version
2019-12-09Fix: build for Ubuntu 16, update required packages versionEshenko Dmitriy
2019-11-19Merge pull request #102 from svlobanov/masterxebd
Added single-session-ignore-case option
2019-11-18Merge pull request #103 from themiron/masterxebd
ipv6: dhcpv6: fix pd gateway logging
2019-11-18ipv6: dhcpv6: fix pd gateway loggingVladislav Grishenko
2019-11-10Added single-session-ignore-case optionSergey V. Lobanov
If multisession behavior is managed by accel-ppp and Radius server ignores the case of the User-Name attribute, it might be required to ignore the case in accel-ppp to prevent multiple session with different letter cases.
2019-09-11ipoe: check for ipoe_create_session_dhcpv4 returns not NULLDmitry Kozlov
2019-09-04ipoe,pptp: introduced max-starting option (limit number of starting sessions)Gavrilenkov A
2019-09-02Merge pull request #99 from themiron/radius-user-namexebd
radius: add support for Access-Accept username
2019-08-30radius: dm/coa: add invalid packet loggingVladislav Grishenko
2019-08-29Merge pull request #98 from themiron/check-ip-cleanupxebd
ppp/ipoe: cleanup cleck-ip support
2019-08-29radius: add support for Access-Accept usernameVladislav Grishenko
once radius server has returned User-Name attribute in Access-Accept packet, it'll be used for any subsequent Accounting-Request packets instead of internal username per RFC2865 5.1 other way of just replacing session username is possible, but not desired at the moment due potential issues with single-session modes in case of different ppp logins / ipoe macs and same contract number returned by radius for that accounts.
2019-08-29ppp/ipoe: cleanup cleck-ip supportVladislav Grishenko
let check-ip setting from [ppp]/[ipoe] sections has prio over [common] for compatibility with older configs.
2019-08-28Merge pull request #93 from tugik/patch-1xebd
Added protocol IPoE and SSTP to init.d description
2019-08-28ipv6: implemented DHCPv6 relay supportDmitry Kozlov
2019-08-27Merge pull request #92 from themiron/sstpxebd
sstp: implement ssl-protocol option and add unsupported features logging
2019-08-27Merge pull request #97 from mad4321/masterxebd
[Fix] - Increment Accounting-Request id for Acct-Status-Type Stop
2019-08-26[Fix] - Increment Accounting-Request id for Acct-Status-Type Stoproot
2019-08-26Merge pull request #96 from DmitriyEshenko/rate-limitxebd
shaper: adding default rate-limit
2019-08-25shaper: adding default rate-limitDmitriyEshenko
2019-08-20Merge pull request #95 from DmitriyEshenko/common_check_ipxebd
Prepared check-ip and for ipoe, migrate to [common]check-ip
2019-08-20Prepared check-ip and for ipoe, migrate to [common]check-ipDmitriyEshenko
2019-08-16Merge pull request #94 from DmitriyEshenko/onw_br1xebd
Make gcc8 happy
2019-08-15Make gcc8 happyDmitriyEshenko