SV-219340r610963_rule
V-219340
SRG-OS-000420-GPOS-00186
UBTU-18-010512
CAT II
10
Configure the application firewall to protect against or limit the effects of Denial of Service (DoS) attacks by ensuring the Ubuntu operating system is implementing rate-limiting measures on impacted network interfaces.
Run the following command replacing "[service]" with the service that needs to be rate limited.
# sudo ufw limit [service]
Or rate-limiting can be done on an interface. An example of adding a rate-limit on the eth0 interface:
# sudo ufw limit in on eth0
Verify an application firewall is configured to rate limit any connection to the system.
Check that the Uncomplicated Firewall is configured to rate limit any connection to the system with the following command:
# sudo ufw show raw
Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-user-limit all -- eth0 * 0.0.0.0/0 0.0.0.0/0
ctstate NEW recent: UPDATE seconds: 30 hit_count: 6 name: DEFAULT side:
source mask: 255.255.255.255
0 0 ufw-user-limit-accept all -- eth0 * 0.0.0.0/0 0.0.0.0/0
If any service is not rate limited by the Uncomplicated Firewall, this is a finding.
V-219340
False
UBTU-18-010512
Verify an application firewall is configured to rate limit any connection to the system.
Check that the Uncomplicated Firewall is configured to rate limit any connection to the system with the following command:
# sudo ufw show raw
Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-user-limit all -- eth0 * 0.0.0.0/0 0.0.0.0/0
ctstate NEW recent: UPDATE seconds: 30 hit_count: 6 name: DEFAULT side:
source mask: 255.255.255.255
0 0 ufw-user-limit-accept all -- eth0 * 0.0.0.0/0 0.0.0.0/0
If any service is not rate limited by the Uncomplicated Firewall, this is a finding.
M
4055