Pavel Loginov 2020-05-02 14:48:36 +02:00
parent 8b2004d793
commit 152741339f
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@
state: present
reload: yes
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
ignore_errors: yes
- name: net.ipv4.conf.all.rp_filter
@ -16,6 +17,7 @@
state: present
reload: yes
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
ignore_errors: yes
- name: Enable net.ipv4.tcp_max_syn_backlog
sysctl:
@ -25,6 +27,7 @@
state: present
reload: yes
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
ignore_errors: yes
- name: Enable net.ipv4.tcp_synack_retries
sysctl:
@ -33,4 +36,5 @@
sysctl_set: yes
state: present
reload: yes
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
ignore_errors: yes