-
Notifications
You must be signed in to change notification settings - Fork 0
/
RHEL-06-000116.sh
executable file
·83 lines (70 loc) · 2.57 KB
/
RHEL-06-000116.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
#
##########################################################################
#Red Hat Enterprise Linux 6 - DISA STIG Compliance Remediation Content
#Copyright (C) 2013
#Vincent C. Passaro ([email protected])
#
##########################################################################
#
###################### Buddha Labs LLC ################################
# By Vincent C. Passaro #
# Buddha Labs LLC. #
# vince[@]buddhalabs[.]com #
# www.buddhalabs.com #
###################### Buddha Labs LLC ################################
#_________________________________________________________________________
# Version | Change Information | Author | Date
#-------------------------------------------------------------------------
# 1.0 | Initial Script Creation | Vincent Passaro | 1-JUNE-2013
#
#
#######################DISA INFORMATION##################################
# Group ID (Vulid): RHEL-06-000116
# Group Title: SRG-OS-000145
#
# Rule ID: RHEL-06-000116_rule
# Severity: medium
# Rule Version (STIG-ID): RHEL-06-000116
# Rule Title: The operating system must connect to external networks or
# information systems only through managed IPv4 interfaces consisting of
# boundary protection devices arranged in accordance with an organizational
# security architecture.
#
# Vulnerability Discussion: The "iptables" service provides the system's
# host-based firewalling capability for IPv4 and ICMP.
#
# Responsibility:
# IAControls:
#
# Check Content:
#
# If the system is a cross-domain system, this is not applicable.
# Run the following command to determine the current status of the
# "iptables" service:
# service iptables status
# If the service is enabled, it should return the following:
# iptables is running...
# If the service is not running, this is a finding.
#
# Fix Text:
#
# The "iptables" service can be enabled with the following command:
# chkconfig iptables on
#######################DISA INFORMATION##################################
#
# Global Variables
PDI=RHEL-06-000116
#BEGIN_CHECK
. ./aqueduct_functions
MOD_MSG="iptables running"
if service iptables status >/dev/null; then
show_message $PDI "$MOD_MSG" pass
else
chkconfig iptables on
service iptables start >/dev/null
show_message $PDI "$MOD_MSG" fixed
fi
#END_CHECK
#BEGIN_REMEDY
#END_REMEDY