Project 2 - Web and Proxy Redundancy

Plan of Attack

  1. OPT Network set

    • 10.0.6 Going

    • NAT, DNS

    • VRRP

  2. Web02 Setup

    • Httpd

    • All other config stuff

    • Create web pages for web01 and web02

  3. 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

Guide: https://www.questioncomputer.com/how-to-install-and-lab-keepalived-on-ubuntu-20-04-and-rocky-linux-8-5/

HA01 Config

HA02 Config

Change VYOS Rules:

Delete old nat rule

Add new nat rule

Last updated