https://github.com/nextcloud/limit_login_to_ip
Nextcloud app that lets you Limit login to IP ranges
https://github.com/nextcloud/limit_login_to_ip
allowlist nextcloud open-source security
Last synced: 3 months ago
JSON representation
Nextcloud app that lets you Limit login to IP ranges
- Host: GitHub
- URL: https://github.com/nextcloud/limit_login_to_ip
- Owner: nextcloud
- License: agpl-3.0
- Created: 2017-08-22T16:45:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T14:05:06.000Z (over 1 year ago)
- Last Synced: 2025-01-30T08:43:07.398Z (over 1 year ago)
- Topics: allowlist, nextcloud, open-source, security
- Language: JavaScript
- Homepage: https://apps.nextcloud.com/apps/limit_login_to_ip
- Size: 2.48 MB
- Stars: 24
- Watchers: 9
- Forks: 17
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING
- Codeowners: .github/CODEOWNERS
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Limit login to IP ranges
[](https://api.reuse.software/info/github.com/nextcloud/limit_login_to_ip)
This app modifies the login logic to only allow logins from specified ip address ranges.
The allowed IP addresses have to be passed via `occ app:config` as a string
separated by comma.
For example:
To allow `127.0.0.0/24`:
- `occ config:app:set limit_login_to_ip whitelisted.ranges --value 127.0.0.0/24`
To allow `127.0.0.0/24` and `192.168.0.0/24`:
- `occ config:app:set limit_login_to_ip whitelisted.ranges --value 127.0.0.0/24,192.168.0.0/24`
To allow `127.0.0.0/24` and also `192.168.0.0/24` as well as `2001:db8::/32`:
- `occ config:app:set limit_login_to_ip whitelisted.ranges --value 127.0.0.0/24,192.168.0.0/24,2001:db8::/32`
Alternatively, you can use admin settings to restrict logins to specific ip address ranges.