From 2a270dac74f976b7c4d7e3fedec8006f0fa9529a Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Fri, 13 Dec 2024 16:31:25 +0200 Subject: [PATCH] Add local and private IPs to the whitelist --- doc/jilo-web.schema | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/jilo-web.schema b/doc/jilo-web.schema index 5295905..12e6273 100644 --- a/doc/jilo-web.schema +++ b/doc/jilo-web.schema @@ -45,6 +45,13 @@ CREATE TABLE ip_whitelist ( UNIQUE (ip_address) ); +INSERT INTO ip_whitelist (ip_address, is_network, description, created_by) VALUES +('127.0.0.1', 0, 'localhost IPv4', 'system'), +('::1', 0, 'localhost IPv6', 'system'), +('10.0.0.0/8', 1, 'Private network', 'system'), +('172.16.0.0/12', 1, 'Private network', 'system'), +('192.168.0.0/16', 1, 'Private network', 'system'); + CREATE TABLE logs ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGET NOT NULL,