Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.41 KB

File metadata and controls

84 lines (58 loc) · 2.41 KB

Setup Guide

/*                                                          
                                                         
```                      INTERNET                           
```                          |                              
```                          |                              
                    +----------------+                      
                    |   Router VM    |                      
                    | firewall + NAT |                      
                    | 192.168.100.1  |                      
                    +----------------+                      
                             |                              
                             |                              
                    Network: 192.168.100.0/24               
                             |                              
        +--------------------+--------------------+         
        |                    |                    |         
+----------------+   +----------------+   +----------------+
|     DNS VM     |   |     Web VM     |   |   Backup VM    |
|     bind9      |   |     nginx      |   |      rsync     |
| 192.168.100.10 |   | 192.168.100.20 |   | 192.168.100.30 |
+----------------+   +----------------+   +----------------+
                                                            
Services                                                    
--------                                                    
DNS VM     : DNS resolution for labnet                      
Web VM     : nginx virtual hosts + fail2ban                 
Backup VM  : rsync backups + systemd timer                  
Router VM  : NAT + firewall + network gateway               



## 1. Create virtual machines

Router VM  

DNS VM  

Web VM  

Backup VM  


## 2. Configure network

Network: 192.168.100.0/24

Router: 192.168.100.1  

DNS: 192.168.100.10  

Web: 192.168.100.20  

Backup: 192.168.100.30  


## 3. Configure Router

Enable IP forwarding
Configure NAT
Configure firewall

## 4. Configure DNS server

Install bind9
Create labnet zone
Configure forwarders

## 5. Deploy Web server

Install nginx
Create virtual hosts
Configure firewall
Enable fail2ban

## 6. Configure backup

Install rsync
Create backup script
Enable systemd timer