Skip to content
Snippets Groups Projects
Verified Commit a588e8b9 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

export_fake: Add local ssh IP address

The ssh honeypot now provides local IP addresses. Use them in the
export.
parent 6bcd6d46
No related branches found
No related tags found
1 merge request!6Ssh blacklist
...@@ -562,7 +562,7 @@ CREATE OR REPLACE VIEW fake_bad_connections_ssh_honey AS SELECT ...@@ -562,7 +562,7 @@ CREATE OR REPLACE VIEW fake_bad_connections_ssh_honey AS SELECT
'ssh_honey'::fake_server, 'ssh_honey'::fake_server,
ssh_sessions.remote, ssh_sessions.remote,
NULL::INT AS remote_port, NULL::INT AS remote_port,
NULL::INET AS local, ssh_sessions.local,
22 AS local_port, 22 AS local_port,
start_time AS start_time_utc, start_time AS start_time_utc,
end_time AS end_time_utc, end_time AS end_time_utc,
...@@ -637,7 +637,8 @@ CREATE TABLE ssh_sessions ( ...@@ -637,7 +637,8 @@ CREATE TABLE ssh_sessions (
end_time TIMESTAMP WITH TIME ZONE DEFAULT NULL, end_time TIMESTAMP WITH TIME ZONE DEFAULT NULL,
login TEXT NOT NULL, login TEXT NOT NULL,
password TEXT NOT NULL, password TEXT NOT NULL,
remote INET NOT NULL remote INET NOT NULL,
local INET NOT NULL
); );
CREATE SEQUENCE ssh_session_ids OWNED BY ssh_sessions.id; CREATE SEQUENCE ssh_session_ids OWNED BY ssh_sessions.id;
ALTER TABLE ssh_sessions ALTER COLUMN id SET DEFAULT NEXTVAL('ssh_session_ids'); ALTER TABLE ssh_sessions ALTER COLUMN id SET DEFAULT NEXTVAL('ssh_session_ids');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment