Project 2 - Web and Proxy Redundancy
Plan of Attack
- OPT Network set
- 10.0.6 Going
- NAT, DNS
- VRRP
- Web02 Setup
- Httpd
- All other config stuff
- Create web pages for web01 and web02
- HAproxy
- Keepalived for HAproxy
- Update nat for web server
OPT Setup
HA01 & HA02
Setup Networking HA01: 6.11 and HA02: 6.12
To apply netplan:
Set Hostname and Add Paul user
VYOS01 and 02 OPT Setup
Setup NAT for OPT to WAN
Setup DNS for OPT to WAN
WEB02 Setup
change root passwd and make paul user
Set ip using nmtui
Setup httpd
Change Firewall Rules
Setup HAproxy
Install HAproxy
Changed environment variable
Add the following line
Edit the /etc/haproxy/haproxy.cfg
Now do
Setup Keepalived
HA01 Config
HA02 Config
Change VYOS Rules:
Delete old nat rule
delete nat destination rule 20
Add new nat rule
set nat destination rule 20 destination address 10.0.17.106
set nat destination rule 20 destination port 80
set nat destination rule 20 inbound-interface eth0
set nat destination rule 20 protocol tcp
set nat destination rule 20 translation address 10.0.6.10
set nat destination rule 20 translation port 80
set nat destination rule 20 description HTTP->HAVRRP