-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Added openwisp_radius installation #223
Closed
Closed
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b1333c0
[feature] Added openwisp_radius installation
atb00ker 4640bdc
Commented out mysql and postgres install.
nemesifier c36f1c8
Do not remove eap
nemesifier e989b1d
Do not modify clients (we'll configure sql module to read from DB)
nemesifier 761a006
Avoid modifying the main radius config file since it shouldn't be needed
nemesifier 055e443
Added possibility of turning off installation of freeradius
nemesifier ad13152
Add way to disable radius URLs if deployd on a different VM
nemesifier 761327e
Simplified sql configuration
nemesifier 31940d3
SQL: added read_clients = yes
nemesifier b6f9b3d
django-freeradius > openwisp-radius
nemesifier 03156ab
Moved OPENWISP_USERS_AUTH_API out of the if openwisp_radius block
nemesifier a1e154e
Removed redundant urls
nemesifier c4b956b
Fixed redundant PRIVATE_STORAGE_ROOT definition
nemesifier 21b2720
[chores] Install libpq-dev if using postgres
nemesifier c65d2bd
[feature] Added openwisp_radius installation
atb00ker fed2967
[radius] Removed database setup + minor
atb00ker 6136f07
[chores] Import freeradius.yml only when openwisp2_radius is true
nemesifier 6ea3bbe
[fix] Schedule openwisp-radius tasks only if radius enabled
nemesifier 797e868
[radius] Removed database setup + minor
atb00ker 69fad3e
[freeradius] Fix eap error
atb00ker 37703eb
[fix] Fixed SQL parameters: host > server, user > login
nemesifier 1332b1d
[chores] Added missing modules in authorize section
nemesifier c98e6c1
[chores] Fixed indentation of sql module
nemesifier b63c337
[fix] Fixed sql counter
nemesifier 325ac68
[fix] Added patched postgresql counters
nemesifier 7db00ab
[chores] Minor improvements
nemesifier f7f3468
[chores] Removed duplicated noresetcounter
nemesifier 9c6ff64
[change] Adjusted interval of cron tasks
nemesifier 3b035c5
[chores] Allow disabling openwisp_radius.tasks.delete_old_radacct
nemesifier 1255daf
[chores] Added more notes to variables
nemesifier 6680a18
[openwisp-radius] Add test to ensure freeradius is working
atb00ker ef14796
[chores] Added basic inner-tunnel
nemesifier 8c0bbc8
[freeradius] Fixed problems prohibiting start
atb00ker 9ab2950
Merge branch 'master' into openwisp_radius
nemesifier cd2eb08
Merge branch 'master' into openwisp_radius
nemesifier 8bebc28
[fix] Added safe_characters to freeradius SQL conf
nemesifier 2b717b1
Merge branch 'master' into openwisp_radius
nemesifier 88c9acc
Merge branch 'master' into openwisp_radius
nemesifier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
server inner-tunnel { | ||
listen { | ||
ipaddr = 127.0.0.1 | ||
port = 18120 | ||
type = auth | ||
} | ||
|
||
authorize { | ||
filter_username | ||
rest | ||
|
||
chap | ||
mschap | ||
suffix | ||
|
||
update control { | ||
&Proxy-To-Realm := LOCAL | ||
} | ||
|
||
eap { | ||
ok = return | ||
} | ||
|
||
-ldap | ||
|
||
pap | ||
|
||
dailycounter | ||
dailybandwidthcounter | ||
noresetcounter | ||
expiration | ||
logintime | ||
} | ||
|
||
authenticate { | ||
Auth-Type PAP { | ||
pap | ||
} | ||
|
||
Auth-Type CHAP { | ||
chap | ||
} | ||
|
||
Auth-Type MS-CHAP { | ||
mschap | ||
} | ||
eap | ||
} | ||
|
||
session {} | ||
|
||
post-auth { | ||
if (0) { | ||
update reply { | ||
User-Name !* ANY | ||
Message-Authenticator !* ANY | ||
EAP-Message !* ANY | ||
Proxy-State !* ANY | ||
MS-MPPE-Encryption-Types !* ANY | ||
MS-MPPE-Encryption-Policy !* ANY | ||
MS-MPPE-Send-Key !* ANY | ||
MS-MPPE-Recv-Key !* ANY | ||
} | ||
update { | ||
&outer.session-state: += &reply: | ||
} | ||
} | ||
|
||
Post-Auth-Type REJECT { | ||
attr_filter.access_reject | ||
update outer.session-state { | ||
&Module-Failure-Message := &request:Module-Failure-Message | ||
} | ||
} | ||
} | ||
|
||
pre-proxy {} | ||
post-proxy { | ||
eap | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atb00ker isn't this wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was one of the causes of build failure,fixed it in the latest commit! 😄