updated solutions for practice scenerios

This commit is contained in:
Hugh Ratsch
2025-02-23 12:01:29 -06:00
parent 26c6a527c1
commit 80788d7ae2
4 changed files with 251 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
# Network Solutions
This section documents my solutions to networking scenarios, including network configuration, troubleshooting, and security.
## Scenario: Network Interface Configuration
### Original Problem
[To be filled with actual scenario]
### Environment
- OS Version: RHEL/Rocky Linux
- Initial State: [Initial network configuration]
- Required Outcome: [Desired network setup]
### Solution Steps
1. Check Current Network Configuration
```bash
# Check network interfaces
ip addr show
# Check routing
ip route show
```
[Explanation of current state]
2. Configure Network Interface
```bash
# Network configuration commands
nmcli connection modify ...
```
[Explanation of configuration]
3. Apply and Verify Changes
```bash
# Apply changes
nmcli connection up ...
```
[Explanation of changes]
### Verification
```bash
# Test connectivity
ping -c 4 gateway_ip
ping -c 4 8.8.8.8
# Check DNS resolution
nslookup example.com
```
### Key Learnings
- Understanding of network configuration
- Troubleshooting methodology
- NetworkManager usage
## Skills Demonstrated
- Network Configuration
- DNS Management
- Network Troubleshooting
- Network Security
[Additional scenarios will be documented here as completed]
+66
View File
@@ -0,0 +1,66 @@
# Security Solutions
This section documents my solutions to security-related scenarios, including SELinux, firewall configuration, and security hardening.
## Scenario: SELinux Configuration
### Original Problem
[To be filled with actual scenario]
### Environment
- OS Version: RHEL/Rocky Linux
- Initial State: [Initial security configuration]
- Required Outcome: [Desired security setup]
### Solution Steps
1. Check Current SELinux Status
```bash
# Check SELinux status
getenforce
# Check SELinux contexts
ls -Z /var/www/html
```
[Explanation of current state]
2. Configure SELinux Policies
```bash
# Set SELinux boolean
setsebool -P httpd_can_network_connect on
# Modify context
semanage fcontext -a -t httpd_sys_content_t "/custom/path(/.*)?"
```
[Explanation of configuration]
3. Apply Changes
```bash
# Restore contexts
restorecon -Rv /custom/path
```
[Explanation of changes]
### Verification
```bash
# Verify SELinux status
sestatus
# Check audit logs
ausearch -m AVC -ts recent
# Test functionality
curl localhost/custom/path
```
### Key Learnings
- Understanding of SELinux concepts
- Security best practices
- Troubleshooting methodology
## Skills Demonstrated
- SELinux Management
- Firewall Configuration
- Security Auditing
- System Hardening
[Additional scenarios will be documented here as completed]
+66
View File
@@ -0,0 +1,66 @@
# Service Management Solutions
This section documents my solutions to service management scenarios, including systemd services, process management, and service configuration.
## Scenario: Web Server Configuration
### Original Problem
[To be filled with actual scenario]
### Environment
- OS Version: RHEL/Rocky Linux
- Initial State: [Initial service state]
- Required Outcome: [Desired service configuration]
### Solution Steps
1. Install and Enable Service
```bash
# Install service
sudo dnf install httpd
# Enable and start service
sudo systemctl enable --now httpd
```
[Explanation of installation]
2. Configure Service
```bash
# Configuration commands
sudo vi /etc/httpd/conf/httpd.conf
```
[Explanation of configuration]
3. Manage Service State
```bash
# Restart service
sudo systemctl restart httpd
# Check status
sudo systemctl status httpd
```
[Explanation of management]
### Verification
```bash
# Check service status
systemctl status httpd
# Check port listening
ss -tunlp | grep httpd
# Test service
curl localhost
```
### Key Learnings
- Understanding of systemd
- Service configuration best practices
- Troubleshooting methodology
## Skills Demonstrated
- Service Management
- Process Control
- Log Analysis
- Security Configuration
[Additional scenarios will be documented here as completed]
+58
View File
@@ -0,0 +1,58 @@
# Storage Management Solutions
This section documents my solutions to storage management scenarios, including partitioning, LVM, filesystem management, and storage troubleshooting.
## Scenario: LVM Configuration and Management
### Original Problem
[To be filled with actual scenario]
### Environment
- OS Version: RHEL/Rocky Linux
- Initial State: [Initial disk/storage configuration]
- Required Outcome: [Desired storage setup]
### Solution Steps
1. Check Current Storage Configuration
```bash
# List block devices
lsblk
# Check existing volume groups
vgs
```
[Explanation of current state]
2. Create Physical Volumes
```bash
# Commands for PV creation
```
[Explanation of steps]
3. Configure Volume Groups
```bash
# Commands for VG management
```
[Explanation of configuration]
### Verification
```bash
# Verification commands
pvs
vgs
lvs
df -h
```
### Key Learnings
- Understanding of LVM concepts
- Storage management best practices
- Importance of verification
## Skills Demonstrated
- LVM Management
- Disk Partitioning
- Filesystem Management
- Storage Troubleshooting
[Additional scenarios will be documented here as completed]