-
Notifications
You must be signed in to change notification settings - Fork 168
API
Daniel Perna edited this page Mar 7, 2019
·
1 revision
Since 0.2.5 you can add / remove IP addresses and networks from and to the ALLOWED_NETWORKS
and BANNED_IPS
lists at runtime. Keep in mind though, that these changes are not persistent and will be lost when the service is restarted. The API can be used through the UI in the Network status menu or by sending POST requests. A possible use case could be programmatically allowing access from your dynamic public IP, which can be required for some setups involving SSL.
-
api/allowed_networks
add
remove
curl -d "method=add&network=1.2.3.4" -X POST http://127.0.0.1:3218/api/allowed_networks
-
api/banned_ips
ban
unban
- Example:
curl -d "method=ban&ip=9.9.9.9" -X POST http://127.0.0.1:3218/api/banned_ips