updated project 1

This commit is contained in:
Hugh Ratsch
2025-02-08 23:27:46 -06:00
parent 8cd21899e4
commit b5a57c1cf6
6 changed files with 450 additions and 66 deletions
+117 -49
View File
@@ -28,68 +28,136 @@ This project documents the setup of a basic home lab environment using VirtualBo
- [x] Basic system configuration
- [x] Network setup
### 3. Network Configuration (In Progress)
- [ ] Configure NAT adapter for internet access
1. Verify IP address configuration:
### 3. Network Configuration
- [x] Configure NAT adapter for internet access
1. Verify IP address configuration
2. Test internet connectivity ✅
```bash
ip addr show
```
2. Test internet connectivity:
```bash
ping 8.8.8.8
ping google.com
ping 8.8.8.8 # Success
ping google.com # Success
```
- [ ] Configure Host-only adapter for direct host communication
1. Verify second network interface:
- [x] Configure Host-only adapter for direct host communication
1. Verify second network interface
```bash
ip addr show
ip addr show enp0s8
# Output shows:
# inet 169.254.0.2/16 brd 169.254.255.255 scope global enp0s8
```
2. Test host connectivity:
2. Test host connectivity
```bash
# From Ubuntu VM - ping your Windows host IP
ping <windows-host-ip>
# From Windows host - ping your Ubuntu VM IP
ping <ubuntu-vm-ip>
# Successfully pinged host (169.254.167.242)
# Round-trip time (RTT) avg: 2.846ms
```
- [ ] Document network configuration:
- NAT adapter IP: _____________
- Host-only adapter IP: _____________
- Default gateway: _____________
- DNS servers: _____________
- [x] Document network configuration:
- NAT adapter IP (enp0s3): 10.0.2.15/24
- Host-only adapter IP (enp0s8): 169.254.0.2/16
- Default gateway: 10.0.2.2
- Host IP: 169.254.167.242
### 4. Basic Security Setup (Pending)
- [ ] Create non-root user with sudo privileges
- [ ] Configure SSH access
- [ ] Set up UFW firewall
- [ ] Implement basic security hardening
### Current Status
- ✅ NAT adapter: Working (Internet access)
- ✅ Host-only adapter: Working (Host communication)
- ✅ Network connectivity: Verified
### Next Steps
Now that networking is configured, we can proceed to:
1. Basic Security Setup
- [ ] Create non-root user with sudo privileges
- [ ] Configure SSH access
- [ ] Set up UFW firewall
### 4. Basic Security Setup ✅
- [x] User Management ✅
- Created sysadmin user with sudo privileges
- Enhanced hugh user security
- [x] SSH Configuration ✅
- Installed and configured OpenSSH server
- Implemented key-based authentication
- Disabled password authentication
- Applied security hardening settings
- [x] UFW Firewall Setup ✅
- Installed and configured UFW
- Set default policies (deny incoming, allow outgoing)
- Allowed required services:
- SSH (port 22)
- HTTP (port 80)
- HTTPS (port 443)
- Host machine access (169.254.167.242)
- Verified connectivity
### 5. System Monitoring Setup (Next Phase)
- [ ] Monitoring Tools
- [ ] Install and configure htop
- [ ] Set up netdata for system metrics
- [ ] Configure log monitoring
- [ ] Maintenance Planning
- [ ] Create backup strategy
- [ ] Set up automated updates
- [ ] Implement log rotation
- [ ] Configure system alerts
### Current Status
- ✅ Basic VM Setup: Complete
- ✅ Network Configuration: Complete
- ✅ Security Measures: Complete
- ⏳ System Monitoring: Not Started
### Next Steps
1. System Monitoring Implementation
- Research and select monitoring tools
- Plan monitoring strategy
- Document monitoring requirements
2. Maintenance Procedures
- Design backup strategy
- Create maintenance schedule
- Document procedures
3. Future Enhancements
- Service deployment
- Automation implementation
- Advanced networking features
## Security Configuration Status
- [x] User Management
- [x] Admin user created
- [x] Sudo privileges configured
- [x] SSH Access
- [x] SSH server installed
- [x] Key-based authentication configured
- [x] Root login disabled
- [x] Firewall
- [x] UFW installed
- [x] Basic rules configured
- [x] SSH access allowed
## Commands and Configurations
### Network Configuration Commands
```bash
# View network interfaces
ip addr show
# View routing table
ip route show
# View DNS configuration
cat /etc/resolv.conf
# Test connectivity
ping -c 4 8.8.8.8 # Test internet connectivity
ping -c 4 google.com # Test DNS resolution
# If needed, restart networking
sudo systemctl restart systemd-networkd
```
## Issues and Solutions
Any issues encountered and their solutions will be documented here.
### SSH Configuration
```conf
# Key SSH configuration settings (/etc/ssh/sshd_config)
PermitRootLogin no
PasswordAuthentication no
AllowUsers admin
```
## Resources
- [Ubuntu Server Download Page](https://ubuntu.com/download/server)
- [VirtualBox Documentation](https://www.virtualbox.org/wiki/Documentation)
### UFW Rules
```bash
# View UFW status
sudo ufw status verbose
# Basic allowed services
sudo ufw status numbered
```
## Additional Documentation
- [Security Setup Details](security-setup.md)
- [Lessons Learned & Challenges](lessons-learned.md)