Compare commits

...

6 commits

4 changed files with 44 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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