mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-30 03:52:54 +00:00
Compare commits
6 commits
80f2dc4904
...
d2fe64be19
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2fe64be19 | ||
|
|
6faf600d40 | ||
|
|
36b2e47d0d | ||
|
|
322b025371 | ||
|
|
afecbdb6a1 | ||
|
|
0175f6c8c6 |
4 changed files with 44 additions and 8 deletions
11
docker/elk/logstash/dist/http_output.conf
vendored
11
docker/elk/logstash/dist/http_output.conf
vendored
|
|
@ -698,12 +698,15 @@ filter {
|
||||||
remove_field => ["event_timestamp"]
|
remove_field => ["event_timestamp"]
|
||||||
}
|
}
|
||||||
mutate {
|
mutate {
|
||||||
rename => {
|
split => ["source_ip", ":"]
|
||||||
"source_ip" => "src_ip"
|
rename => { "destination_ip" => "dest_ip" }
|
||||||
"destination_ip" => "dest_ip"
|
|
||||||
}
|
|
||||||
add_field => { "dest_port" => "5060" }
|
add_field => { "dest_port" => "5060" }
|
||||||
}
|
}
|
||||||
|
mutate {
|
||||||
|
add_field => { "src_ip" => "%{[source_ip][0]}" }
|
||||||
|
add_field => { "src_port" => "%{[source_ip][1]}" }
|
||||||
|
remove_field => ["source_ip"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tanner
|
# Tanner
|
||||||
|
|
|
||||||
11
docker/elk/logstash/dist/logstash.conf
vendored
11
docker/elk/logstash/dist/logstash.conf
vendored
|
|
@ -698,12 +698,15 @@ filter {
|
||||||
remove_field => ["event_timestamp"]
|
remove_field => ["event_timestamp"]
|
||||||
}
|
}
|
||||||
mutate {
|
mutate {
|
||||||
rename => {
|
split => ["source_ip", ":"]
|
||||||
"source_ip" => "src_ip"
|
rename => { "destination_ip" => "dest_ip" }
|
||||||
"destination_ip" => "dest_ip"
|
|
||||||
}
|
|
||||||
add_field => { "dest_port" => "5060" }
|
add_field => { "dest_port" => "5060" }
|
||||||
}
|
}
|
||||||
|
mutate {
|
||||||
|
add_field => { "src_ip" => "%{[source_ip][0]}" }
|
||||||
|
add_field => { "src_port" => "%{[source_ip][1]}" }
|
||||||
|
remove_field => ["source_ip"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tanner
|
# Tanner
|
||||||
|
|
|
||||||
|
|
@ -478,6 +478,21 @@
|
||||||
tags:
|
tags:
|
||||||
- "Ubuntu"
|
- "Ubuntu"
|
||||||
|
|
||||||
|
- name: Comment out Port(s) in sshd_config, can cause port conflicts on deploy (AlmaLinux, Debian, Fedora, openSUSE Tumbleweed, Raspbian, Rocky, Ubuntu)
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: /etc/ssh/sshd_config
|
||||||
|
regexp: "^(Port [0-9]+)"
|
||||||
|
replace: '# \1'
|
||||||
|
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||||
|
tags:
|
||||||
|
- "AlmaLinux"
|
||||||
|
- "Debian"
|
||||||
|
- "Fedora"
|
||||||
|
- "openSUSE Tumbleweed"
|
||||||
|
- "Raspbian"
|
||||||
|
- "Rocky"
|
||||||
|
- "Ubuntu"
|
||||||
|
|
||||||
- name: Change SSH Port to 64295 (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)
|
- name: Change SSH Port to 64295 (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,21 @@
|
||||||
- "Rocky"
|
- "Rocky"
|
||||||
- "Ubuntu"
|
- "Ubuntu"
|
||||||
|
|
||||||
|
- name: Revert Comment out Port(s) in sshd_config, can cause port conflicts on deploy (AlmaLinux, Debian, Fedora, openSUSE Tumbleweed, Raspbian, Rocky, Ubuntu)
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: /etc/ssh/sshd_config
|
||||||
|
regexp: "^# (Port [0-9]+)"
|
||||||
|
replace: '\1'
|
||||||
|
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||||
|
tags:
|
||||||
|
- "AlmaLinux"
|
||||||
|
- "Debian"
|
||||||
|
- "Fedora"
|
||||||
|
- "openSUSE Tumbleweed"
|
||||||
|
- "Raspbian"
|
||||||
|
- "Rocky"
|
||||||
|
- "Ubuntu"
|
||||||
|
|
||||||
- name: Remove vm.max_map_count setting (All)
|
- name: Remove vm.max_map_count setting (All)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/sysctl.conf
|
path: /etc/sysctl.conf
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue